4 #include "scene/gui/container.h" 21 Slot() { enable_left=
false; type_left=0; color_left=
Color(1,1,1,1); enable_right=
false; type_right=0; color_right=
Color(1,1,1,1); }
45 void _connpos_update();
54 void _notification(
int p_what);
55 static void _bind_methods();
66 void set_slot(
int p_idx,
bool p_enable_left,
int p_type_left,
const Color& p_color_left,
bool p_enable_right,
int p_type_right,
const Color& p_color_right);
67 void clear_slot(
int p_idx);
68 void clear_all_slots();
69 bool is_slot_enabled_left(
int p_idx)
const;
70 int get_slot_type_left(
int p_idx)
const;
71 Color get_slot_color_left(
int p_idx)
const;
72 bool is_slot_enabled_right(
int p_idx)
const;
73 int get_slot_type_right(
int p_idx)
const;
74 Color get_slot_color_right(
int p_idx)
const;
76 void set_title(
const String& p_title);
79 void set_offset(
const Vector2& p_offset);
82 void set_selected(
bool p_selected);
85 void set_drag(
bool p_drag);
88 void set_show_close_button(
bool p_enable);
89 bool is_close_button_visible()
const;
91 int get_connection_input_count() ;
92 int get_connection_output_count() ;
93 Vector2 get_connection_input_pos(
int p_idx);
94 int get_connection_input_type(
int p_idx);
95 Color get_connection_input_color(
int p_idx);
96 Vector2 get_connection_output_pos(
int p_idx);
97 int get_connection_output_type(
int p_idx);
98 Color get_connection_output_color(
int p_idx);
101 virtual Size2 get_minimum_size()
const;
107 #endif // GRAPH_NODE_H
Definition: container.h:34
Definition: math_2d.h:204
Definition: string_db.h:48
Definition: graph_node.h:6