summaryrefslogtreecommitdiffstats
path: root/test/src/example.h
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2021-08-19 20:03:11 -0300
committerBastiaan Olij <mux213@gmail.com>2021-09-27 23:08:08 +1000
commita0634cca3f35413baa34f5a40f48345ee8d689ff (patch)
tree77f0837e60423ef837a3bcf5777b19a08d45cdb0 /test/src/example.h
parentb3a4a2cf9360cad559d11eeab8940c1cfc0b32d0 (diff)
downloadredot-cpp-a0634cca3f35413baa34f5a40f48345ee8d689ff.tar.gz
Auto-bind virtual method overrides
Diffstat (limited to 'test/src/example.h')
-rw-r--r--test/src/example.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/src/example.h b/test/src/example.h
index 0b054e5..25c6129 100644
--- a/test/src/example.h
+++ b/test/src/example.h
@@ -29,7 +29,7 @@ public:
CONSTANT_WITHOUT_ENUM = 314,
};
- // Functions
+ // Functions.
void simple_func();
void simple_const_func() const;
String return_something(const String &base);
@@ -37,12 +37,12 @@ public:
Variant varargs_func(const Variant **args, GDNativeInt arg_count, GDNativeCallError &error);
void emit_custom_signal(const String &name, int value);
- // Property
+ // Property.
void set_custom_position(const Vector2 &pos);
Vector2 get_custom_position() const;
- // Virtual function override
- virtual bool _has_point(const Vector2 &point);
+ // Virtual function override (no need to bind manually).
+ virtual bool _has_point(const Vector2 &point) const override;
};
VARIANT_ENUM_CAST(Example, Constants);