diff options
Diffstat (limited to 'scene/gui/texture_button.h')
-rw-r--r-- | scene/gui/texture_button.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/scene/gui/texture_button.h b/scene/gui/texture_button.h index e1d1079ceb..64103860bf 100644 --- a/scene/gui/texture_button.h +++ b/scene/gui/texture_button.h @@ -31,13 +31,20 @@ #include "scene/gui/base_button.h" #include "scene/resources/bit_mask.h" -#include "scene/gui/texture_rect.h" class TextureButton : public BaseButton { GDCLASS( TextureButton, BaseButton ); public: - typedef TextureRect::StretchMode StretchMode; + enum StretchMode { + STRETCH_SCALE, + STRETCH_TILE, + STRETCH_KEEP, + STRETCH_KEEP_CENTERED, + STRETCH_KEEP_ASPECT, + STRETCH_KEEP_ASPECT_CENTERED, + STRETCH_KEEP_ASPECT_COVERED, + }; private: Ref<Texture> normal; @@ -81,4 +88,6 @@ public: TextureButton(); }; + +VARIANT_ENUM_CAST( TextureButton::StretchMode ); #endif // TEXTURE_BUTTON_H |