godot-cpp/include/gen/TextureButton.hpp

64 lines
1.7 KiB
C++

#ifndef GODOT_CPP_TEXTUREBUTTON_HPP
#define GODOT_CPP_TEXTUREBUTTON_HPP
#include <gdnative_api_struct.gen.h>
#include <stdint.h>
#include <core/CoreTypes.hpp>
#include <core/Ref.hpp>
#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> texture);
void set_pressed_texture(const Ref<Texture> texture);
void set_hover_texture(const Ref<Texture> texture);
void set_disabled_texture(const Ref<Texture> texture);
void set_focused_texture(const Ref<Texture> texture);
void set_click_mask(const Ref<BitMap> mask);
void set_expand(const bool p_expand);
void set_stretch_mode(const int64_t p_mode);
Ref<Texture> get_normal_texture() const;
Ref<Texture> get_pressed_texture() const;
Ref<Texture> get_hover_texture() const;
Ref<Texture> get_disabled_texture() const;
Ref<Texture> get_focused_texture() const;
Ref<BitMap> get_click_mask() const;
bool get_expand() const;
TextureButton::StretchMode get_stretch_mode() const;
};
}
#endif