summaryrefslogtreecommitdiff
path: root/src/fltk-widgets-groups-windows-single-menu.adb
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-01-12 15:11:40 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-01-12 15:11:40 +1300
commite324057cbd9b02704172bb5db4163f4a0c276288 (patch)
tree35afdc681d278049acc62ae61366b6da46122128 /src/fltk-widgets-groups-windows-single-menu.adb
parentf8b638b57cc1318ef3536efae662b54b3d14a3bb (diff)
Closed a few gaps in the APIs of Window derivatives
Diffstat (limited to 'src/fltk-widgets-groups-windows-single-menu.adb')
-rw-r--r--src/fltk-widgets-groups-windows-single-menu.adb21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/fltk-widgets-groups-windows-single-menu.adb b/src/fltk-widgets-groups-windows-single-menu.adb
index 7448c3b..480f89e 100644
--- a/src/fltk-widgets-groups-windows-single-menu.adb
+++ b/src/fltk-widgets-groups-windows-single-menu.adb
@@ -57,6 +57,11 @@ package body FLTK.Widgets.Groups.Windows.Single.Menu is
pragma Import (C, fl_menu_window_flush, "fl_menu_window_flush");
pragma Inline (fl_menu_window_flush);
+ procedure fl_menu_window_erase
+ (M : in Storage.Integer_Address);
+ pragma Import (C, fl_menu_window_erase, "fl_menu_window_erase");
+ pragma Inline (fl_menu_window_erase);
+
@@ -202,6 +207,13 @@ package body FLTK.Widgets.Groups.Windows.Single.Menu is
end Flush;
+ procedure Erase
+ (This : in out Menu_Window) is
+ begin
+ fl_menu_window_erase (This.Void_Ptr);
+ end Erase;
+
+
function Is_Overlay
@@ -214,7 +226,7 @@ package body FLTK.Widgets.Groups.Windows.Single.Menu is
procedure Set_Overlay
(This : in out Menu_Window;
- Value : in Boolean) is
+ Value : in Boolean := True) is
begin
if Value then
fl_menu_window_set_overlay (This.Void_Ptr);
@@ -224,6 +236,13 @@ package body FLTK.Widgets.Groups.Windows.Single.Menu is
end Set_Overlay;
+ procedure Clear_Overlay
+ (This : in out Menu_Window) is
+ begin
+ fl_menu_window_clear_overlay (This.Void_Ptr);
+ end Clear_Overlay;
+
+
end FLTK.Widgets.Groups.Windows.Single.Menu;