|
MythTV master
|
Wrapper around QPoint allowing us to handle percentage and other relative values for positioning in mythui. More...
#include <libmythui/mythrect.h>
Public Member Functions | |
| MythPoint () | |
| MythPoint (int x, int y) | |
| MythPoint (const QString &sX, const QString &sY) | |
| MythPoint (QPoint point) | |
| MythPoint & | operator= (QPoint other) |
| bool | isValid (void) const |
| void | CalculatePoint (QRect parentArea) |
| void | CalculatePoint (const MythRect &parentArea) |
| void | NormPoint (void) |
| void | setX (const QString &sX) |
| void | setX (int X) |
| void | setY (const QString &sY) |
| void | setY (int Y) |
| QString | getX (void) const |
| QString | getY (void) const |
| QString | toString (bool details=false) const |
| QPoint | toQPoint (void) const |
Static Private Member Functions | |
| static bool | parsePosition (float &percent, int &offset, int &absolute, const QString &value) |
| parse the position More... | |
Private Attributes | |
| float | m_percentX {0.0F} |
| float | m_percentY {0.0F} |
| int | m_offsetX {0} |
| int | m_offsetY {0} |
| bool | m_needsUpdate {true} |
| QRect | m_parentArea |
| bool | m_valid {true} |
Wrapper around QPoint allowing us to handle percentage and other relative values for positioning in mythui.
Definition at line 88 of file mythrect.h.
|
inline |
Definition at line 92 of file mythrect.h.
|
inline |
Definition at line 94 of file mythrect.h.
| MythPoint::MythPoint | ( | const QString & | sX, |
| const QString & | sY | ||
| ) |
Definition at line 412 of file mythrect.cpp.
|
inlineexplicit |
Definition at line 97 of file mythrect.h.
| void MythPoint::CalculatePoint | ( | const MythRect & | parentArea | ) |
Definition at line 466 of file mythrect.cpp.
| void MythPoint::CalculatePoint | ( | QRect | parentArea | ) |
Definition at line 444 of file mythrect.cpp.
Referenced by CalculatePoint(), MythUIAnimation::parsePosition(), MythUIType::SetMinSize(), and MythUIType::SetPosition().
| QString MythPoint::getX | ( | void | ) | const |
Definition at line 550 of file mythrect.cpp.
Referenced by MythRect::moveTopLeft(), and toString().
| QString MythPoint::getY | ( | void | ) | const |
Definition at line 566 of file mythrect.cpp.
Referenced by MythNotificationScreen::AdjustYPosition(), MythRect::moveTopLeft(), and toString().
|
inline |
Definition at line 102 of file mythrect.h.
Referenced by MythUIType::AdjustMinArea(), MythUIButtonList::DistributeButtons(), MythUIText::FillCutMessage(), MythUIType::GetMinSize(), MythUIType::SetMinArea(), MythUIType::SetMinAreaParent(), and MythUIType::VanishSibling().
| void MythPoint::NormPoint | ( | void | ) |
Definition at line 471 of file mythrect.cpp.
Referenced by CalcShadowOffsetPadding(), MythUIText::DrawSelf(), MythUIText::FormatTemplate(), SubtitleFormat::GetFont(), MythPainter::GetImageFromTextLayout(), and XMLParseBase::parsePoint().
| MythPoint & MythPoint::operator= | ( | QPoint | other | ) |
Definition at line 424 of file mythrect.cpp.
|
staticprivate |
| void MythPoint::setX | ( | const QString & | sX | ) |
Definition at line 530 of file mythrect.cpp.
Referenced by MythUIVirtualKeyboard::Create(), SubtitleFormat::GetFont(), MythPoint(), MythUIAnimation::parsePosition(), and MythRect::topLeft().
|
inline |
Definition at line 109 of file mythrect.h.
| void MythPoint::setY | ( | const QString & | sY | ) |
Definition at line 540 of file mythrect.cpp.
Referenced by MythNotificationScreen::AdjustYPosition(), MythUIVirtualKeyboard::Create(), SubtitleFormat::GetFont(), MythPoint(), MythUIAnimation::parsePosition(), and MythRect::topLeft().
|
inline |
Definition at line 111 of file mythrect.h.
| QPoint MythPoint::toQPoint | ( | void | ) | const |
Definition at line 594 of file mythrect.cpp.
Referenced by MythUIText::CursorPosition(), MythUIType::HandleMovementPulse(), and MythUIAnimation::parsePosition().
Definition at line 582 of file mythrect.cpp.
Definition at line 128 of file mythrect.h.
Referenced by CalculatePoint(), operator=(), setX(), and setY().
|
private |
Definition at line 125 of file mythrect.h.
Referenced by CalculatePoint(), getX(), NormPoint(), operator=(), and setX().
|
private |
Definition at line 126 of file mythrect.h.
Referenced by CalculatePoint(), getY(), NormPoint(), operator=(), and setY().
|
private |
Definition at line 130 of file mythrect.h.
Referenced by CalculatePoint(), and operator=().
|
private |
Definition at line 123 of file mythrect.h.
Referenced by CalculatePoint(), getX(), NormPoint(), operator=(), and setX().
|
private |
Definition at line 124 of file mythrect.h.
Referenced by CalculatePoint(), getY(), NormPoint(), operator=(), and setY().
Definition at line 132 of file mythrect.h.
Referenced by CalculatePoint(), and operator=().