#ifndef GODOT_CPP_TEXTUREBUTTON_HPP #define GODOT_CPP_TEXTUREBUTTON_HPP #include #include #include #include #include "TextureButton.hpp" #include "BaseButton.hpp" namespace godot { class Texture; class BitMap; class TextureButton : public BaseButton { public: static void *___get_type_tag(); static void *___get_base_type_tag(); static inline const char *___get_class_name() { return (const char *) "TextureButton"; } static inline Object *___get_from_variant(Variant a) { godot_object *o = (godot_object*) a; return (Object *) godot::nativescript_1_1_api->godot_nativescript_get_instance_binding_data(godot::_RegisterState::language_index, o); } // enums enum StretchMode { STRETCH_SCALE = 0, STRETCH_KEEP = 2, STRETCH_KEEP_ASPECT = 4, STRETCH_KEEP_CENTERED = 3, STRETCH_TILE = 1, STRETCH_KEEP_ASPECT_CENTERED = 5, STRETCH_KEEP_ASPECT_COVERED = 6, }; // constants static TextureButton *_new(); // methods void set_normal_texture(const Ref texture); void set_pressed_texture(const Ref texture); void set_hover_texture(const Ref texture); void set_disabled_texture(const Ref texture); void set_focused_texture(const Ref texture); void set_click_mask(const Ref mask); void set_expand(const bool p_expand); void set_stretch_mode(const int64_t p_mode); Ref get_normal_texture() const; Ref get_pressed_texture() const; Ref get_hover_texture() const; Ref get_disabled_texture() const; Ref get_focused_texture() const; Ref get_click_mask() const; bool get_expand() const; TextureButton::StretchMode get_stretch_mode() const; }; } #endif