summaryrefslogtreecommitdiffstats
path: root/scene/gui/graph_node.h
diff options
context:
space:
mode:
authorAnilforextra <anilforextra@gmail.com>2021-05-11 13:02:47 +0545
committerAnilforextra <anilforextra@gmail.com>2021-05-13 17:45:07 +0545
commit2c3c3b282987136efbc00df220d50794cee72bfc (patch)
treea4beeaceea971a4c6a8226e80b4f6a29d22caa3a /scene/gui/graph_node.h
parent479391ef5405226fa110ac3f5823ecbc7d987b0c (diff)
downloadredot-engine-2c3c3b282987136efbc00df220d50794cee72bfc.tar.gz
-Added missing setters to GraphNode.
-Improved various GraphNode documentation.
Diffstat (limited to 'scene/gui/graph_node.h')
-rw-r--r--scene/gui/graph_node.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/scene/gui/graph_node.h b/scene/gui/graph_node.h
index 1bc54dddb7..c70f616b47 100644
--- a/scene/gui/graph_node.h
+++ b/scene/gui/graph_node.h
@@ -113,11 +113,23 @@ public:
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, const Ref<Texture2D> &p_custom_left = Ref<Texture2D>(), const Ref<Texture2D> &p_custom_right = Ref<Texture2D>());
void clear_slot(int p_idx);
void clear_all_slots();
+
bool is_slot_enabled_left(int p_idx) const;
+ void set_slot_enabled_left(int p_idx, bool p_enable_left);
+
+ void set_slot_type_left(int p_idx, int p_type_left);
int get_slot_type_left(int p_idx) const;
+
+ void set_slot_color_left(int p_idx, const Color &p_color_left);
Color get_slot_color_left(int p_idx) const;
+
bool is_slot_enabled_right(int p_idx) const;
+ void set_slot_enabled_right(int p_idx, bool p_enable_right);
+
+ void set_slot_type_right(int p_idx, int p_type_right);
int get_slot_type_right(int p_idx) const;
+
+ void set_slot_color_right(int p_idx, const Color &p_color_right);
Color get_slot_color_right(int p_idx) const;
void set_title(const String &p_title);