Add some widget layout and ability event handling.

This commit is contained in:
jmsgrogan 2020-06-20 19:00:06 +01:00
parent b99708e7d3
commit 4e85edacc8
24 changed files with 285 additions and 31 deletions

View file

@ -7,6 +7,7 @@ Widget::Widget()
: mLocation(DiscretePoint(0, 0)),
mWidth(100),
mHeight(100),
mMaxHeight(0),
mMyLayers(),
mLayers(),
mChildren(),
@ -50,6 +51,16 @@ std::vector<VisualLayer*> Widget::GetLayers() const
return mLayers;
}
unsigned Widget::GetMaxHeight() const
{
return mMaxHeight;
}
void Widget::SetMaxHeight(unsigned maxHeight)
{
mMaxHeight = maxHeight;
}
void Widget::CopyMyLayers()
{
mLayers.clear();