summaryrefslogtreecommitdiff
path: root/core/variant
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2021-10-01 02:40:07 +0200
committerkobewi <kobewi4e@gmail.com>2021-10-04 21:41:21 +0200
commitcdac60759e931b07811025adf053b1e88495ad80 (patch)
treebc284d032b81b0adc80f079fc61db1d77fc21ad8 /core/variant
parent5b270278c869461a3dce2c0d0db71e0beaa50685 (diff)
Add support for unbinding in connection dialog
Diffstat (limited to 'core/variant')
-rw-r--r--core/variant/callable_bind.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/variant/callable_bind.h b/core/variant/callable_bind.h
index feb40d1de9..1cfb943678 100644
--- a/core/variant/callable_bind.h
+++ b/core/variant/callable_bind.h
@@ -51,6 +51,9 @@ public:
virtual void call(const Variant **p_arguments, int p_argcount, Variant &r_return_value, Callable::CallError &r_call_error) const;
virtual const Callable *get_base_comparator() const;
+ Callable get_callable() { return callable; }
+ Vector<Variant> get_binds() { return binds; }
+
CallableCustomBind(const Callable &p_callable, const Vector<Variant> &p_binds);
virtual ~CallableCustomBind();
};
@@ -72,6 +75,9 @@ public:
virtual void call(const Variant **p_arguments, int p_argcount, Variant &r_return_value, Callable::CallError &r_call_error) const;
virtual const Callable *get_base_comparator() const;
+ Callable get_callable() { return callable; }
+ int get_unbinds() { return argcount; }
+
CallableCustomUnbind(const Callable &p_callable, int p_argcount);
virtual ~CallableCustomUnbind();
};