minor refactor Button

This commit is contained in:
MihailRis 2025-06-26 20:29:38 +03:00
parent ead46158d9
commit f473df33fb
4 changed files with 29 additions and 17 deletions

View file

@ -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;