aboutsummaryrefslogtreecommitdiff
path: root/guilib/GUIControlFactory.h
diff options
context:
space:
mode:
authorjmarshallnz <jmarshallnz@svn>2010-01-13 22:46:10 +0000
committerjmarshallnz <jmarshallnz@svn>2010-01-13 22:46:10 +0000
commit85373f1d0522c0aca3df6a45706ca4496aa45f35 (patch)
treea3e92b91a74fdcb649d4e85ab5dbced33c7014da /guilib/GUIControlFactory.h
parent9ba6dee48894c40f4c01e6d77e3c19f96039a445 (diff)
added: auto sizing for the width of a label control. Ticket #6510. Specify <width min="50" max="100">auto</width>.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@26770 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/GUIControlFactory.h')
-rw-r--r--guilib/GUIControlFactory.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/guilib/GUIControlFactory.h b/guilib/GUIControlFactory.h
index 6867e2635d..221a2b8483 100644
--- a/guilib/GUIControlFactory.h
+++ b/guilib/GUIControlFactory.h
@@ -49,6 +49,7 @@ public:
CGUIControl* Create(int parentID, const CRect &rect, TiXmlElement* pControlNode, bool insideContainer = false);
void ScaleElement(TiXmlElement *element, RESOLUTION fileRes, RESOLUTION destRes);
static bool GetFloat(const TiXmlNode* pRootNode, const char* strTag, float& value);
+ static bool GetDimension(const TiXmlNode* pRootNode, const char* strTag, float &value, float &min);
static bool GetUnsigned(const TiXmlNode* pRootNode, const char* strTag, unsigned int& value);
static bool GetAspectRatio(const TiXmlNode* pRootNode, const char* strTag, CAspectRatio &aspectRatio);
static bool GetInfoTexture(const TiXmlNode* pRootNode, const char* strTag, CTextureInfo &image, CGUIInfoLabel &info);