summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-07-22 15:30:09 +0200
committerMatthias Melcher <github@matthiasm.com>2023-07-22 15:30:17 +0200
commitf0375d6213d67d585c9b8e5adc443d8c8adc280c (patch)
treed1835f88b834dc44829c6a6879355cc83206614f /FL
parentfa0aa95443689fc0d5fae2abdf16b2920faf55fa (diff)
Adds default shortcut to Fl_Shortcut_Button.
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Shortcut_Button.H6
1 files changed, 5 insertions, 1 deletions
diff --git a/FL/Fl_Shortcut_Button.H b/FL/Fl_Shortcut_Button.H
index 5fef2ccb5..f07c05283 100644
--- a/FL/Fl_Shortcut_Button.H
+++ b/FL/Fl_Shortcut_Button.H
@@ -21,8 +21,9 @@
class FL_EXPORT Fl_Shortcut_Button : public Fl_Button {
private:
- bool hot_, pre_hot_;
+ bool hot_, pre_hot_, default_set_, handle_default_button_;
Fl_Shortcut pre_esc_;
+ Fl_Shortcut default_shortcut_;
protected:
Fl_Shortcut shortcut_value;
void do_end_hot_callback();
@@ -32,6 +33,9 @@ public:
Fl_Shortcut_Button(int X,int Y,int W,int H, const char* l = 0);
void value(Fl_Shortcut shortcut);
Fl_Shortcut value();
+ void default_value(Fl_Shortcut shortcut);
+ Fl_Shortcut default_value();
+ void default_clear();
};
#endif // Fl_Shortcut_Button_H