29 #ifndef VISIBILITY_NOTIFIER_2D_H 30 #define VISIBILITY_NOTIFIER_2D_H 32 #include "scene/2d/node_2d.h" 46 void _enter_viewport(
Viewport* p_viewport);
47 void _exit_viewport(
Viewport* p_viewport);
50 virtual void _screen_enter() {}
51 virtual void _screen_exit() {}
53 void _notification(
int p_what);
54 static void _bind_methods();
57 void set_rect(
const Rect2& p_rect);
58 Rect2 get_rect()
const;
60 bool is_on_screen()
const;
62 virtual Rect2 get_item_rect()
const;
74 ENABLER_PAUSE_ANIMATIONS,
75 ENABLER_FREEZE_BODIES,
76 ENABLER_PAUSE_PARTICLES,
77 ENABLER_PARENT_PROCESS,
78 ENABLER_PARENT_FIXED_PROCESS,
84 virtual void _screen_enter();
85 virtual void _screen_exit();
89 void _find_nodes(
Node* p_node);
92 void _node_removed(
Node* p_node);
93 bool enabler[ENABLER_MAX];
95 void _change_node_state(
Node* p_node,
bool p_enabled);
97 void _notification(
int p_what);
98 static void _bind_methods();
102 void set_enabler(Enabler p_enabler,
bool p_enable);
103 bool is_enabler_enabled(Enabler p_enabler)
const;
109 VARIANT_ENUM_CAST(VisibilityEnabler2D::Enabler);
112 #endif // VISIBILITY_NOTIFIER_2D_H Definition: viewport.h:75
Definition: math_2d.h:204
Definition: world_2d.cpp:39
Definition: visibility_notifier_2d.h:68
Definition: visibility_notifier_2d.h:35