diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-11-30 09:55:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-30 09:55:30 +0100 |
commit | 11b2700b235b3bce2ddb2be0b2bb806461ebc05c (patch) | |
tree | ed3151364b5fa2907fe4d2eb62685b81d77c521c /test/src/example.h | |
parent | f3143c7a9c592ce7fdc735b8e39631718f3df276 (diff) | |
parent | 20c4e843b09b7263078c23ec635198feae03c227 (diff) | |
download | redot-cpp-11b2700b235b3bce2ddb2be0b2bb806461ebc05c.tar.gz |
Merge pull request #1321 from dsnopek/postinitialize
Send NOTIFICATION_POSTINITIALIZE to extension classes
Diffstat (limited to 'test/src/example.h')
-rw-r--r-- | test/src/example.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/src/example.h b/test/src/example.h index 388cc8c..72f6783 100644 --- a/test/src/example.h +++ b/test/src/example.h @@ -35,16 +35,21 @@ private: static int last_id; int id; + bool post_initialized = false; protected: static void _bind_methods(); + void _notification(int p_what); + public: ExampleRef(); ~ExampleRef(); void set_id(int p_id); int get_id() const; + + bool was_post_initialized() const { return post_initialized; } }; class ExampleMin : public Control { @@ -167,6 +172,8 @@ public: Vector2 get_custom_position() const; Vector4 get_v4() const; + bool test_post_initialize() const; + // Static method. static int test_static(int p_a, int p_b); static void test_static2(); |