--------------------------------------------------------------------------------
--                                                                            --
-- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers.               --
--                                                                            --
-- This library is free software; you can redistribute it and/or              --
-- modify it under the terms of the GNU Lesser General Public                 --
-- License as published by the Free Software Foundation; either               --
-- version 2.1 of the License, or (at your option) any later version.         --
--                                                                            --
-- This library is distributed in the hope that it will be useful,            --
-- but WITHOUT ANY WARRANTY; without even the implied warranty of             --
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU           --
-- Lesser General Public License for more details.                            --
--                                                                            --
-- You should have received a copy of the GNU Lesser General Public           --
-- License along with this library; if not, write to the Free Software        --
-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA    --
--                                                                            --
--------------------------------------------------------------------------------

-- @brief ToolboxAdjuster types and methods.
-- $Author$
-- $Date$
-- $Revision$

with RASCAL.OS;               use RASCAL.OS;

package RASCAL.ToolboxAdjuster is

   -- Flags
   Adjuster_Increment  : constant := 16#1#;
   Adjuster_Vertical   : constant := 16#2#;

   --
   -- This Toolbox event is raised when the user clicks on an adjuster arrow.
   --
   type Toolbox_Adjuster_Clicked is
   record
   Header         : Toolbox_Event_Header;
   Direction      : Integer;
   end record;
   pragma Convention (C, Toolbox_Adjuster_Clicked);

   type Toolbox_Adjuster_Clicked_Pointer is access Toolbox_Adjuster_Clicked;

   type ATEL_Toolbox_Adjuster_Clicked is abstract new
        Toolbox_EventListener(Toolbox_Event_Adjuster_Clicked,-1,-1) with
   record
   Event : Toolbox_Adjuster_Clicked_Pointer;
   end record;

end RASCAL.ToolboxAdjuster;
