From b4438b2fbe895694be98e6e8426103deefc51448 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Tue, 21 Jan 2025 21:04:54 +1300 Subject: Split public API and private implementation files into different directories --- spec/fltk-widgets-buttons-enter.ads | 81 +++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 spec/fltk-widgets-buttons-enter.ads (limited to 'spec/fltk-widgets-buttons-enter.ads') diff --git a/spec/fltk-widgets-buttons-enter.ads b/spec/fltk-widgets-buttons-enter.ads new file mode 100644 index 0000000..ed5ab83 --- /dev/null +++ b/spec/fltk-widgets-buttons-enter.ads @@ -0,0 +1,81 @@ + + +-- Programmed by Jedidiah Barber +-- Released into the public domain + + +-- Return Buttons, but return is a reserved word, so they're Enter Buttons instead + + +limited with + + FLTK.Widgets.Groups; + + +package FLTK.Widgets.Buttons.Enter is + + + type Enter_Button is new Button with private; + + type Enter_Button_Reference (Data : not null access Enter_Button'Class) is + limited null record with Implicit_Dereference => Data; + + + + + package Forge is + + function Create + (X, Y, W, H : in Integer; + Text : in String := "") + return Enter_Button; + + function Create + (Parent : in out FLTK.Widgets.Groups.Group'Class; + X, Y, W, H : in Integer; + Text : in String := "") + return Enter_Button; + + end Forge; + + + + + procedure Draw + (This : in out Enter_Button); + + function Handle + (This : in out Enter_Button; + Event : in Event_Kind) + return Event_Outcome; + + +private + + + type Enter_Button is new Button with null record; + + overriding procedure Initialize + (This : in out Enter_Button); + + overriding procedure Finalize + (This : in out Enter_Button); + + procedure Extra_Init + (This : in out Enter_Button; + X, Y, W, H : in Integer; + Text : in String) + with Inline; + + procedure Extra_Final + (This : in out Enter_Button) + with Inline; + + + pragma Inline (Draw); + pragma Inline (Handle); + + +end FLTK.Widgets.Buttons.Enter; + + -- cgit