diff options
| author | maxim nikonov <maxim.nikonov@hqo.co> | 2026-02-05 23:48:25 +0500 |
|---|---|---|
| committer | maxim nikonov <maxim.nikonov@hqo.co> | 2026-02-05 23:48:25 +0500 |
| commit | c53067d2f6cfd6e3c6b476c51ab8c4b931e40a30 (patch) | |
| tree | 95bfab59b2d9a38a57b6aa05244cab2d0435c7d2 /fluid/nodes/Button_Node.h | |
| parent | 57860e277f2298ad6c0830b1492087cfa124c862 (diff) | |
wip
Diffstat (limited to 'fluid/nodes/Button_Node.h')
| -rw-r--r-- | fluid/nodes/Button_Node.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/fluid/nodes/Button_Node.h b/fluid/nodes/Button_Node.h index ecdc8cc24..53944d6ea 100644 --- a/fluid/nodes/Button_Node.h +++ b/fluid/nodes/Button_Node.h @@ -36,8 +36,8 @@ public: Fl_Widget *widget(int x, int y, int w, int h) override; Widget_Node *_make() override { return new Button_Node(); } int is_button() const override { return 1; } - Type type() const override { return Type::Button; } - bool is_a(Type inType) const override { return (inType==Type::Button) ? true : super::is_a(inType); } + Type type() const override { return FLD_NODE_TYPE_Button; } + bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Button) ? true : super::is_a(inType); } void write_properties(fld::io::Project_Writer &f) override; void read_property(fld::io::Project_Reader &f, const char *) override; void copy_properties() override; @@ -59,8 +59,8 @@ public: const char *alt_type_name() override { return "fltk::ReturnButton"; } Fl_Widget *widget(int x, int y, int w, int h) override; Widget_Node *_make() override { return new Return_Button_Node(); } - Type type() const override { return Type::Return_Button; } - bool is_a(Type inType) const override { return (inType==Type::Return_Button) ? true : super::is_a(inType); } + Type type() const override { return FLD_NODE_TYPE_Return_Button; } + bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Return_Button) ? true : super::is_a(inType); } }; // ---- Repeat Button ---- @@ -81,8 +81,8 @@ public: const char *alt_type_name() override { return "fltk::RepeatButton"; } Fl_Widget *widget(int x, int y, int w, int h) override; Widget_Node *_make() override { return new Repeat_Button_Node(); } - Type type() const override { return Type::Repeat_Button; } - bool is_a(Type inType) const override { return (inType==Type::Repeat_Button) ? true : super::is_a(inType); } + Type type() const override { return FLD_NODE_TYPE_Repeat_Button; } + bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Repeat_Button) ? true : super::is_a(inType); } }; // ---- Light Button ---- @@ -101,8 +101,8 @@ public: const char *alt_type_name() override { return "fltk::LightButton"; } Fl_Widget *widget(int x, int y, int w, int h) override; Widget_Node *_make() override { return new Light_Button_Node(); } - Type type() const override { return Type::Light_Button; } - bool is_a(Type inType) const override { return (inType==Type::Light_Button) ? true : super::is_a(inType); } + Type type() const override { return FLD_NODE_TYPE_Light_Button; } + bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Light_Button) ? true : super::is_a(inType); } }; // ---- Check Button ---- @@ -121,8 +121,8 @@ public: const char *alt_type_name() override { return "fltk::CheckButton"; } Fl_Widget *widget(int x, int y, int w, int h) override; Widget_Node *_make() override { return new Check_Button_Node(); } - Type type() const override { return Type::Check_Button; } - bool is_a(Type inType) const override { return (inType==Type::Check_Button) ? true : super::is_a(inType); } + Type type() const override { return FLD_NODE_TYPE_Check_Button; } + bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Check_Button) ? true : super::is_a(inType); } }; // ---- Round Button ---- @@ -141,8 +141,8 @@ public: const char *alt_type_name() override { return "fltk::RadioButton"; } Fl_Widget *widget(int x, int y, int w, int h) override; Widget_Node *_make() override { return new Round_Button_Node(); } - Type type() const override { return Type::Round_Button; } - bool is_a(Type inType) const override { return (inType==Type::Round_Button) ? true : super::is_a(inType); } + Type type() const override { return FLD_NODE_TYPE_Round_Button; } + bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Round_Button) ? true : super::is_a(inType); } }; |
