29 #ifndef SCREEN_BUTTON_H 30 #define SCREEN_BUTTON_H 32 #include "scene/2d/node_2d.h" 33 #include "scene/resources/texture.h" 34 #include "scene/resources/bit_mask.h" 43 VISIBILITY_TOUCHSCREEN_ONLY
56 VisibilityMode visibility;
62 void _notification(
int p_what);
63 static void _bind_methods();
70 void set_texture_pressed(
const Ref<Texture>& p_texture_pressed);
76 void set_action(
const String& p_action);
79 void set_passby_press(
bool p_enable);
80 bool is_passby_press_enabled()
const;
82 void set_visibility_mode(VisibilityMode p_mode);
83 VisibilityMode get_visibility_mode()
const;
85 bool is_pressed()
const;
87 Rect2 get_item_rect()
const;
93 VARIANT_ENUM_CAST(TouchScreenButton::VisibilityMode);
95 #endif // SCREEN_BUTTON_H
Definition: math_2d.h:204
Definition: string_db.h:48