aboutsummaryrefslogtreecommitdiff
path: root/guilib/GUIListItemLayout.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'guilib/GUIListItemLayout.cpp')
-rw-r--r--guilib/GUIListItemLayout.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/guilib/GUIListItemLayout.cpp b/guilib/GUIListItemLayout.cpp
index ac44392996..198b2b2a7e 100644
--- a/guilib/GUIListItemLayout.cpp
+++ b/guilib/GUIListItemLayout.cpp
@@ -103,6 +103,20 @@ unsigned int CGUIListItemLayout::GetFocusedItem() const
return m_group.GetFocusedItem();
}
+void CGUIListItemLayout::SetWidth(float width)
+{
+ m_group.EnlargeWidth(width - m_width);
+ m_width = width;
+ SetInvalid();
+}
+
+void CGUIListItemLayout::SetHeight(float height)
+{
+ m_group.EnlargeHeight(height - m_height);
+ m_height = height;
+ SetInvalid();
+}
+
void CGUIListItemLayout::SelectItemFromPoint(const CPoint &point)
{
m_group.SelectItemFromPoint(point);