minor refactor Button

This commit is contained in:
MihailRis
2025-06-27 22:50:47 +03:00
parent ead46158d9
commit f473df33fb
4 changed files with 29 additions and 17 deletions
+6
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;