Use AncestralClass to speed up Object::cast_to when possible.

This commit is contained in:
Lukas Tenbrink 2025-09-22 01:30:57 +02:00
parent 149a4b4ca1
commit 96619d46a1
15 changed files with 62 additions and 8 deletions

View file

@ -50,6 +50,8 @@ class Control : public CanvasItem {
#endif //TOOLS_ENABLED
public:
static constexpr AncestralClass static_ancestral_class = AncestralClass::CONTROL;
enum Anchor {
ANCHOR_BEGIN = 0,
ANCHOR_END = 1