diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-12 15:11:40 +1300 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-12 15:11:40 +1300 |
commit | e324057cbd9b02704172bb5db4163f4a0c276288 (patch) | |
tree | 35afdc681d278049acc62ae61366b6da46122128 /src/fltk-widgets-groups-windows-opengl.adb | |
parent | f8b638b57cc1318ef3536efae662b54b3d14a3bb (diff) |
Closed a few gaps in the APIs of Window derivatives
Diffstat (limited to 'src/fltk-widgets-groups-windows-opengl.adb')
-rw-r--r-- | src/fltk-widgets-groups-windows-opengl.adb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/fltk-widgets-groups-windows-opengl.adb b/src/fltk-widgets-groups-windows-opengl.adb index 190b5c1..1b8bea7 100644 --- a/src/fltk-widgets-groups-windows-opengl.adb +++ b/src/fltk-widgets-groups-windows-opengl.adb @@ -171,6 +171,11 @@ package body FLTK.Widgets.Groups.Windows.OpenGL is pragma Import (C, fl_gl_window_set_valid, "fl_gl_window_set_valid"); pragma Inline (fl_gl_window_set_valid); + procedure fl_gl_window_invalidate + (S : in Storage.Integer_Address); + pragma Import (C, fl_gl_window_invalidate, "fl_gl_window_invalidate"); + pragma Inline (fl_gl_window_invalidate); + procedure fl_gl_window_make_current (S : in Storage.Integer_Address); pragma Import (C, fl_gl_window_make_current, "fl_gl_window_make_current"); @@ -481,6 +486,13 @@ package body FLTK.Widgets.Groups.Windows.OpenGL is end Set_Valid; + procedure Invalidate + (This : in out GL_Window) is + begin + fl_gl_window_invalidate (This.Void_Ptr); + end Invalidate; + + procedure Make_Current (This : in out GL_Window) is begin |