Sdk/Widgets: Make the canvas aware of itself as a widget

This commit is contained in:
Lynix
2017-01-18 23:35:43 +01:00
parent c1dfc5c4b8
commit 36bcdcdb8c
5 changed files with 35 additions and 14 deletions

View File

@@ -14,14 +14,6 @@ namespace Ndk
{
}
void Canvas::Layout()
{
if (m_backgroundEntity)
{
m_backgroundSprite->SetSize(m_contentSize.x + m_padding.left + m_padding.right, m_contentSize.y + m_padding.top + m_padding.bottom);
}
}
void Canvas::NotifyWidgetUpdate(std::size_t index)
{
WidgetBox& entry = m_widgetBoxes[index];