From 617353265e4dc4e0280b565f2cd9e7749ce52bfd Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Tue, 17 Apr 2018 16:00:26 +1000 Subject: More polishing --- src/fltk-widgets-clocks.ads | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/fltk-widgets-clocks.ads') diff --git a/src/fltk-widgets-clocks.ads b/src/fltk-widgets-clocks.ads index eb8acfc..d1cd192 100644 --- a/src/fltk-widgets-clocks.ads +++ b/src/fltk-widgets-clocks.ads @@ -5,6 +5,9 @@ package FLTK.Widgets.Clocks is type Clock is new Widget with private; + type Clock_Reference (Data : not null access Clock'Class) is limited null record + with Implicit_Dereference => Data; + subtype Hour is Integer range 0 .. 23; subtype Minute is Integer range 0 .. 59; subtype Second is Integer range 0 .. 60; @@ -61,6 +64,10 @@ package FLTK.Widgets.Clocks is procedure Draw (This : in out Clock); + procedure Draw + (This : in out Clock; + X, Y, W, H : in Integer); + function Handle (This : in out Clock; Event : in Event_Kind) @@ -76,5 +83,20 @@ private (This : in out Clock); + + + pragma Inline (Get_Hour); + pragma Inline (Get_Minute); + pragma Inline (Get_Second); + + + pragma Inline (Get_Time); + pragma Inline (Set_Time); + + + pragma Inline (Draw); + pragma Inline (Handle); + + end FLTK.Widgets.Clocks; -- cgit