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

@@ -95,8 +95,10 @@ namespace Ndk
inline void DestroyChild(BaseWidget* widget);
void DestroyChildren();
void RegisterToCanvas();
inline void NotifyParentResized(const Nz::Vector2f& newSize);
inline void UpdateCanvasIndex(std::size_t index);
void UnregisterFromCanvas();
std::size_t m_canvasIndex;
std::vector<EntityOwner> m_entities;