diff options
| author | Matthias Melcher <github@matthiasm.com> | 2025-11-19 16:57:02 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2025-11-19 16:58:08 +0100 |
| commit | 94008f57c30eadff13217e3de733cb9895ee41e8 (patch) | |
| tree | 905b8557229266ea825ae4959a96ed04ecfeecf1 /fluid/nodes/Widget_Node.h | |
| parent | 2182bd60c0cabbb6cf65ca953d4643ec03006725 (diff) | |
Add headline menu item style (#1059)
A menu item can be designated as a headline.
Fully integrated and used in Fluid.
Diffstat (limited to 'fluid/nodes/Widget_Node.h')
| -rw-r--r-- | fluid/nodes/Widget_Node.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fluid/nodes/Widget_Node.h b/fluid/nodes/Widget_Node.h index 261005590..fd0b7ddbe 100644 --- a/fluid/nodes/Widget_Node.h +++ b/fluid/nodes/Widget_Node.h @@ -51,6 +51,8 @@ class Widget_Node : public Node const char *inactive_name_; uchar hotspot_; + bool menu_headline_ { false }; + protected: /// This variable is set for visible windows in batch mode. @@ -97,11 +99,15 @@ public: void image_name(const char *); const char *inactive_name() const {return inactive_name_;} void inactive_name(const char *); + // Note: hotspot is misused by menu items to indicate a divider uchar hotspot() const {return hotspot_;} void hotspot(uchar v) {hotspot_ = v;} uchar resizable() const; void resizable(uchar v); + bool menu_headline() const { return menu_headline_; } + void menu_headline(bool v) { menu_headline_ = v; } + virtual int textstuff(int what, Fl_Font &, int &, Fl_Color &); virtual Fl_Menu_Item *subtypes(); |
