mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 21:41:50 +00:00
minor refactor Button
This commit is contained in:
parent
ead46158d9
commit
f473df33fb
4 changed files with 29 additions and 17 deletions
|
|
@ -27,6 +27,12 @@ namespace gui {
|
|||
|
||||
virtual void setMinLength(int value);
|
||||
int getMinLength() const;
|
||||
|
||||
/// @brief .setSize wrapper automatically applying padding to size
|
||||
/// @param size element size excluding padding
|
||||
void setContentSize(const glm::ivec2& size);
|
||||
/// @return element size excluding padding
|
||||
glm::vec2 getContentSize() const;
|
||||
protected:
|
||||
int minLength = 0;
|
||||
int maxLength = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue