diff options
author | jmarshallnz <jmarshallnz@svn> | 2010-01-09 02:12:30 +0000 |
---|---|---|
committer | jmarshallnz <jmarshallnz@svn> | 2010-01-09 02:12:30 +0000 |
commit | cd1ff654231dd3016703b22d05c1ffc76d4c655c (patch) | |
tree | ea244cebb53fc827b01b13acc5000f9fd6434a3a /guilib/GUIControlGroup.h | |
parent | 2e370e36232d786c71a86802ef64c301b977b940 (diff) |
changed: CGUIWindow::GetOrigin() -> CGUIControlGroup::GetPosition() with override for window <origin> tags. Fixes possible mouse pointer location issues with dialogs using multiple <origin>'s, and provides consistency when reading these coords at the window level
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@26566 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/GUIControlGroup.h')
-rw-r--r-- | guilib/GUIControlGroup.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/guilib/GUIControlGroup.h b/guilib/GUIControlGroup.h index 8fd14fcb8f..b70557500c 100644 --- a/guilib/GUIControlGroup.h +++ b/guilib/GUIControlGroup.h @@ -90,6 +90,12 @@ public: #endif protected: /*! + \brief Return the coordinates of the top left of the group, in the group's parent coordinates + \return The top left coordinates of the group + */ + virtual CPoint GetPosition() const { return CPoint(m_posX, m_posY); }; + + /*! \brief Check whether a given control is valid Runs through controls and returns whether this control is valid. Only functional for controls with non-zero id. |