SDK/Widgets: Add buttons (not clickable atm)

Former-commit-id: 8c37250acd7bf5123674f1d83d4d55d7125f080e [formerly 6705a2a453bb8c1e441a5008beb9a4ac60847fa2] [formerly a391c49c98f003cfcb8409d67052ce7998329f9b [formerly a8440703ccade130b116dc51246cd3ec0e16e6ae]]
Former-commit-id: 7f0f4bd7353768e7e0440ef41ce24c8035d7ee83 [formerly 6d3310e1488bbea850e17257da5588f9f0d0ec03]
Former-commit-id: 1ef3f72963ba3df19e789aae2a2e263e104a2e94
This commit is contained in:
Lynix
2016-09-13 18:22:40 +02:00
parent 6e520f5ed6
commit 136fb65a6d
6 changed files with 122 additions and 7 deletions

View File

@@ -33,6 +33,7 @@ namespace Ndk
//virtual BaseWidget* Clone() const = 0;
inline const Padding& GetPadding() const;
inline const Nz::Vector2f& GetContentSize() const;
inline Nz::Vector2f GetSize() const;
virtual void ResizeToContent() = 0;
@@ -55,10 +56,9 @@ namespace Ndk
protected:
EntityHandle CreateEntity();
void DestroyEntity(Entity* entity);
virtual void Layout();
private:
void UpdateBackground();
std::vector<EntityOwner> m_entities;
std::vector<BaseWidget*> m_children;
EntityOwner m_backgroundEntity;