diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2025-04-13 18:48:34 +1200 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2025-04-13 18:58:07 +1200 |
commit | d80d210d6b1418ba3e773186337c5da7ea169c4e (patch) | |
tree | 6226c1c22f62e8dbde08f118147b82c034e6c1f5 /body/fltk-widgets-boxes.adb | |
parent | fb4183c9244ee31aa5cb8bc9745c9242b1fafeeb (diff) |
Proper init of Message_Icon box, some more checks added
Diffstat (limited to 'body/fltk-widgets-boxes.adb')
-rw-r--r-- | body/fltk-widgets-boxes.adb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/body/fltk-widgets-boxes.adb b/body/fltk-widgets-boxes.adb index 6bd11f4..efe6e54 100644 --- a/body/fltk-widgets-boxes.adb +++ b/body/fltk-widgets-boxes.adb @@ -86,6 +86,30 @@ package body FLTK.Widgets.Boxes is -- Constructors -- -------------------- + -- Hole successfully dug out of + procedure box_extra_init_hook + (Ada_Obj : in Storage.Integer_Address; + X, Y, W, H : in Interfaces.C.int; + C_Str : in Interfaces.C.Strings.chars_ptr); + pragma Export (C, box_extra_init_hook, "box_extra_init_hook"); + + procedure box_extra_init_hook + (Ada_Obj : in Storage.Integer_Address; + X, Y, W, H : in Interfaces.C.int; + C_Str : in Interfaces.C.Strings.chars_ptr) + is + My_Box : Box; + for My_Box'Address use Storage.To_Address (Ada_Obj); + pragma Import (Ada, My_Box); + begin + Extra_Init + (My_Box, + Integer (X), Integer (Y), + Integer (W), Integer (H), + Interfaces.C.Strings.Value (C_Str)); + end box_extra_init_hook; + + procedure Extra_Init (This : in out Box; X, Y, W, H : in Integer; |