summaryrefslogtreecommitdiff
path: root/fluid/nodes/Button_Node.h
diff options
context:
space:
mode:
authormaxim nikonov <maxim.nikonov@hqo.co>2026-02-06 13:41:26 +0500
committermaxim nikonov <maxim.nikonov@hqo.co>2026-02-06 13:41:26 +0500
commit9575eb0a1ffa8150f70f88b5f6b55f342c3c0088 (patch)
tree37f4d24696b03ab80b11c9d31b2c562be2e03ee3 /fluid/nodes/Button_Node.h
parent260dc2c8828c70b0e147ea394f38e9ee6dc69ee3 (diff)
wip
Diffstat (limited to 'fluid/nodes/Button_Node.h')
-rw-r--r--fluid/nodes/Button_Node.h92
1 files changed, 46 insertions, 46 deletions
diff --git a/fluid/nodes/Button_Node.h b/fluid/nodes/Button_Node.h
index 53944d6ea..4ee88d1e1 100644
--- a/fluid/nodes/Button_Node.h
+++ b/fluid/nodes/Button_Node.h
@@ -28,19 +28,19 @@ public:
typedef Widget_Node super;
static Button_Node prototype;
private:
- Fl_Menu_Item *subtypes() override;
+ Fl_Menu_Item *subtypes();
public:
- void ideal_size(int &w, int &h) override;
- const char *type_name() override { return "Fl_Button"; }
- const char *alt_type_name() override { return "fltk::Button"; }
- 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 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;
+ void ideal_size(int &w, int &h);
+ const char *type_name() { return "Fl_Button"; }
+ const char *alt_type_name() { return "fltk::Button"; }
+ Fl_Widget *widget(int x, int y, int w, int h);
+ Widget_Node *_make() { return new Button_Node(); }
+ int is_button() const { return 1; }
+ Type type() const { return FLD_NODE_TYPE_Button; }
+ bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Button) ? true : super::is_a(inType); }
+ void write_properties(fld::io::Project_Writer &f);
+ void read_property(fld::io::Project_Reader &f, const char *);
+ void copy_properties();
};
// ---- Return Button ----
@@ -54,13 +54,13 @@ public:
typedef Button_Node super;
static Return_Button_Node prototype;
public:
- void ideal_size(int &w, int &h) override;
- const char *type_name() override { return "Fl_Return_Button"; }
- 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 FLD_NODE_TYPE_Return_Button; }
- bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Return_Button) ? true : super::is_a(inType); }
+ void ideal_size(int &w, int &h);
+ const char *type_name() { return "Fl_Return_Button"; }
+ const char *alt_type_name() { return "fltk::ReturnButton"; }
+ Fl_Widget *widget(int x, int y, int w, int h);
+ Widget_Node *_make() { return new Return_Button_Node(); }
+ Type type() const { return FLD_NODE_TYPE_Return_Button; }
+ bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Return_Button) ? true : super::is_a(inType); }
};
// ---- Repeat Button ----
@@ -77,12 +77,12 @@ public:
typedef Button_Node super;
static Repeat_Button_Node prototype;
public:
- const char *type_name() override { return "Fl_Repeat_Button"; }
- 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 FLD_NODE_TYPE_Repeat_Button; }
- bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Repeat_Button) ? true : super::is_a(inType); }
+ const char *type_name() { return "Fl_Repeat_Button"; }
+ const char *alt_type_name() { return "fltk::RepeatButton"; }
+ Fl_Widget *widget(int x, int y, int w, int h);
+ Widget_Node *_make() { return new Repeat_Button_Node(); }
+ Type type() const { return FLD_NODE_TYPE_Repeat_Button; }
+ bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Repeat_Button) ? true : super::is_a(inType); }
};
// ---- Light Button ----
@@ -96,13 +96,13 @@ public:
typedef Button_Node super;
static Light_Button_Node prototype;
public:
- void ideal_size(int &w, int &h) override;
- const char *type_name() override { return "Fl_Light_Button"; }
- 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 FLD_NODE_TYPE_Light_Button; }
- bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Light_Button) ? true : super::is_a(inType); }
+ void ideal_size(int &w, int &h);
+ const char *type_name() { return "Fl_Light_Button"; }
+ const char *alt_type_name() { return "fltk::LightButton"; }
+ Fl_Widget *widget(int x, int y, int w, int h);
+ Widget_Node *_make() { return new Light_Button_Node(); }
+ Type type() const { return FLD_NODE_TYPE_Light_Button; }
+ bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Light_Button) ? true : super::is_a(inType); }
};
// ---- Check Button ----
@@ -116,13 +116,13 @@ public:
typedef Button_Node super;
static Check_Button_Node prototype;
public:
- void ideal_size(int &w, int &h) override;
- const char *type_name() override { return "Fl_Check_Button"; }
- 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 FLD_NODE_TYPE_Check_Button; }
- bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Check_Button) ? true : super::is_a(inType); }
+ void ideal_size(int &w, int &h);
+ const char *type_name() { return "Fl_Check_Button"; }
+ const char *alt_type_name() { return "fltk::CheckButton"; }
+ Fl_Widget *widget(int x, int y, int w, int h);
+ Widget_Node *_make() { return new Check_Button_Node(); }
+ Type type() const { return FLD_NODE_TYPE_Check_Button; }
+ bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Check_Button) ? true : super::is_a(inType); }
};
// ---- Round Button ----
@@ -136,13 +136,13 @@ public:
typedef Button_Node super;
static Round_Button_Node prototype;
public:
- void ideal_size(int &w, int &h) override;
- const char *type_name() override { return "Fl_Round_Button"; }
- 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 FLD_NODE_TYPE_Round_Button; }
- bool is_a(Type inType) const override { return (inType==FLD_NODE_TYPE_Round_Button) ? true : super::is_a(inType); }
+ void ideal_size(int &w, int &h);
+ const char *type_name() { return "Fl_Round_Button"; }
+ const char *alt_type_name() { return "fltk::RadioButton"; }
+ Fl_Widget *widget(int x, int y, int w, int h);
+ Widget_Node *_make() { return new Round_Button_Node(); }
+ Type type() const { return FLD_NODE_TYPE_Round_Button; }
+ bool is_a(Type inType) const { return (inType==FLD_NODE_TYPE_Round_Button) ? true : super::is_a(inType); }
};