summaryrefslogtreecommitdiff
path: root/fltk-widgets-groups-windows.adb
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2016-09-21 23:34:15 +1000
committerJed Barber <jjbarber@y7mail.com>2016-09-21 23:34:15 +1000
commitd4520de203a8fd8816836b7f8507027cf0675f91 (patch)
tree81f1a94b8a21fc2f9da21a524236924920a04bf7 /fltk-widgets-groups-windows.adb
parentf372ad18e2ba1fe0660cfd93e64c17162a52a5f7 (diff)
More progress on the little utility window layouts
Diffstat (limited to 'fltk-widgets-groups-windows.adb')
-rw-r--r--fltk-widgets-groups-windows.adb25
1 files changed, 25 insertions, 0 deletions
diff --git a/fltk-widgets-groups-windows.adb b/fltk-widgets-groups-windows.adb
index 4ecda66..a0262e1 100644
--- a/fltk-widgets-groups-windows.adb
+++ b/fltk-widgets-groups-windows.adb
@@ -36,6 +36,11 @@ package body FLTK.Widgets.Groups.Windows is
T : in Interfaces.C.char_array);
pragma Import (C, fl_window_set_label, "fl_window_set_label");
+ procedure fl_window_size_range
+ (W : in System.Address;
+ LW, LH, HW, HH, DW, DH, A : in Interfaces.C.int);
+ pragma Import (C, fl_window_size_range, "fl_window_size_range");
+
@@ -119,5 +124,25 @@ package body FLTK.Widgets.Groups.Windows is
end Set_Label;
+
+
+ procedure Set_Size_Range
+ (This : in out Window;
+ Min_W, Min_H : in Integer;
+ Max_W, Max_H, Incre_W, Incre_H : in Integer := 0;
+ Keep_Aspect : in Boolean := False) is
+ begin
+ fl_window_size_range
+ (This.Void_Ptr,
+ Interfaces.C.int (Min_W),
+ Interfaces.C.int (Min_H),
+ Interfaces.C.int (Max_W),
+ Interfaces.C.int (Max_H),
+ Interfaces.C.int (Incre_W),
+ Interfaces.C.int (Incre_H),
+ Boolean'Pos (Keep_Aspect));
+ end Set_Size_Range;
+
+
end FLTK.Widgets.Groups.Windows;