mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-06 22:59:53 +03:00
feat(ui): add CLayoutFrame::SetSize
This commit is contained in:
2 files changed
+8
No files matched your search
@@ -862,6 +862,13 @@ void CLayoutFrame::SetProtectFlag(uint32_t flag) {
|
||||
this->m_flags &= ~0x800;
|
||||
}
|
||||
|
||||
void CLayoutFrame::SetSize(float width, float height) {
|
||||
this->m_flags &= ~0x8;
|
||||
this->m_width = width;
|
||||
this->m_height = height;
|
||||
this->Resize(0);
|
||||
}
|
||||
|
||||
void CLayoutFrame::SetWidth(float width) {
|
||||
this->m_flags &= ~0x8;
|
||||
this->m_width = width;
|
||||
|
||||
@@ -49,6 +49,7 @@ class CLayoutFrame {
|
||||
virtual bool SetLayoutScale(float scale, bool force);
|
||||
virtual void SetWidth(float width);
|
||||
virtual void SetHeight(float height);
|
||||
virtual void SetSize(float width, float height);
|
||||
virtual float GetWidth();
|
||||
virtual float GetHeight();
|
||||
virtual void GetSize(float& width, float& height, int32_t a4);
|
||||
|
||||
Reference in new issue
Block a user