--  Programmed by Jedidiah Barber
--  Released into the public domain


package FLTK.Widgets.Boxes is


    type Box is new Widget with private;

    type Box_Reference (Data : not null access Box'Class) is limited null record
        with Implicit_Dereference => Data;




    package Forge is

        function Create
               (X, Y, W, H : in Integer;
                Text       : in String := "")
            return Box;

    end Forge;




    procedure Draw
           (This : in out Box);

    function Handle
           (This  : in out Box;
            Event : in     Event_Kind)
        return Event_Outcome;


private


    type Box is new Widget with null record;

    overriding procedure Finalize
           (This : in out Box);

    procedure Extra_Init
           (This       : in out Box;
            X, Y, W, H : in     Integer;
            Text       : in     String)
    with Inline;

    procedure Extra_Final
           (This : in out Box)
    with Inline;


    pragma Inline (Draw);
    pragma Inline (Handle);


end FLTK.Widgets.Boxes;