Sdk/BaseWidget: Add Destroy method

This commit is contained in:
Lynix
2017-01-11 19:14:32 +01:00
parent 6acf101d77
commit fd923ed58b
2 changed files with 24 additions and 1 deletions

View File

@@ -37,6 +37,8 @@ namespace Ndk
inline void Center();
inline void Destroy();
void EnableBackground(bool enable);
//virtual BaseWidget* Clone() const = 0;
@@ -84,6 +86,7 @@ namespace Ndk
private:
inline BaseWidget();
inline void DestroyChild(BaseWidget* widget);
inline void NotifyParentResized(const Nz::Vector2f& newSize);
inline void UpdateCanvasIndex(std::size_t index);