summaryrefslogtreecommitdiff
path: root/src/fltk_binding/fltk-widget-button.ads
diff options
context:
space:
mode:
Diffstat (limited to 'src/fltk_binding/fltk-widget-button.ads')
-rw-r--r--src/fltk_binding/fltk-widget-button.ads20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/fltk_binding/fltk-widget-button.ads b/src/fltk_binding/fltk-widget-button.ads
index 8212fe3..14762bf 100644
--- a/src/fltk_binding/fltk-widget-button.ads
+++ b/src/fltk_binding/fltk-widget-button.ads
@@ -4,9 +4,27 @@ package FLTK.Widget.Button is
type Button_Type is new Widget_Type with private;
+ type State is (On, Off);
- function Create (X, Y, W, H : Integer; Label : String) return Button_Type;
+ function Create
+ (X, Y, W, H : Integer;
+ Label : String)
+ return Button_Type;
+
+
+ function Get_State
+ (B : in Button_Type'Class)
+ return State;
+
+
+ procedure Set_State
+ (B : in Button_Type'Class;
+ S : in State);
+
+
+ procedure Set_Only
+ (B : in Button_Type'Class);
private