aboutsummaryrefslogtreecommitdiff
path: root/guilib/GUIControlGroup.h
diff options
context:
space:
mode:
authorjmarshallnz <jmarshallnz@svn>2009-10-15 22:59:31 +0000
committerjmarshallnz <jmarshallnz@svn>2009-10-15 22:59:31 +0000
commit3e95d0f0a3814cc74ae6fff067c78b99b9eabbba (patch)
treef4dad453d16cd85aaaf704356df2b1564f001afb /guilib/GUIControlGroup.h
parent3bb2f1096789e377b55c9d90ae76cdb948b17054 (diff)
changed: Better exclusive access control tracking for the mouse - should help with multiple scrollbars with the same id (which is highly discouraged)
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@23755 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/GUIControlGroup.h')
-rw-r--r--guilib/GUIControlGroup.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/guilib/GUIControlGroup.h b/guilib/GUIControlGroup.h
index e0458d6055..1567fe4b33 100644
--- a/guilib/GUIControlGroup.h
+++ b/guilib/GUIControlGroup.h
@@ -89,6 +89,15 @@ public:
virtual void DumpTextureUse();
#endif
protected:
+ /*!
+ \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.
+ \param control to check
+ \return true if the control is valid, false otherwise.
+ */
+ bool IsValidControl(const CGUIControl *control) const;
+
// sub controls
std::vector<CGUIControl *> m_children;
typedef std::vector<CGUIControl *>::iterator iControls;