diff options
author | Jed Barber <jjbarber@y7mail.com> | 2016-11-14 12:07:00 +1100 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2016-11-14 12:07:00 +1100 |
commit | 1e205182f6ed6a2dcae68179aadff8c4b82b5c53 (patch) | |
tree | 6f8576401552c4d2954d118897323bc017afff3c /src/fltk_binding/fltk-widgets-menus-menu_buttons.ads | |
parent | a8bebb0ece482e5e15f9178b01a4b085e52d9f1c (diff) |
Added Menu_Buttons to FLTK binding, added rightclick menu to Editor
Diffstat (limited to 'src/fltk_binding/fltk-widgets-menus-menu_buttons.ads')
-rw-r--r-- | src/fltk_binding/fltk-widgets-menus-menu_buttons.ads | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/fltk_binding/fltk-widgets-menus-menu_buttons.ads b/src/fltk_binding/fltk-widgets-menus-menu_buttons.ads new file mode 100644 index 0000000..5527abc --- /dev/null +++ b/src/fltk_binding/fltk-widgets-menus-menu_buttons.ads @@ -0,0 +1,35 @@ + + +package FLTK.Widgets.Menus.Menu_Buttons is + + + type Menu_Button is new Menu with private; + + + -- signifies which mouse buttons cause the menu to appear + type Popup_Buttons is (No_Popup, Popup1, Popup2, Popup12, Popup3, Popup13, Popup23, Popup123); + + + function Create + (X, Y, W, H : in Integer; + Text : in String) + return Menu_Button; + + + procedure Set_Popup_Kind + (This : in out Menu_Button; + Pop : in Popup_Buttons); + + +private + + + type Menu_Button is new Menu with null record; + + + overriding procedure Finalize + (This : in out Menu_Button); + + +end FLTK.Widgets.Menus.Menu_Buttons; + |