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:
@@ -27,6 +27,11 @@ namespace Ndk
|
||||
return m_padding;
|
||||
}
|
||||
|
||||
inline const Nz::Vector2f& BaseWidget::GetContentSize() const
|
||||
{
|
||||
return m_contentSize;
|
||||
}
|
||||
|
||||
inline Nz::Vector2f BaseWidget::GetSize() const
|
||||
{
|
||||
return Nz::Vector2f(m_contentSize.x + m_padding.left + m_padding.right, m_contentSize.y + m_padding.top + m_padding.bottom);
|
||||
@@ -35,7 +40,8 @@ namespace Ndk
|
||||
inline void BaseWidget::SetContentSize(const Nz::Vector2f& size)
|
||||
{
|
||||
m_contentSize = size;
|
||||
UpdateBackground();
|
||||
|
||||
Layout();
|
||||
}
|
||||
|
||||
inline void BaseWidget::SetPadding(float left, float top, float right, float bottom)
|
||||
@@ -45,6 +51,6 @@ namespace Ndk
|
||||
m_padding.bottom = bottom;
|
||||
m_padding.right = right;
|
||||
|
||||
UpdateBackground();
|
||||
Layout();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user