-- $Date: 2004/03/08 10:42:42 $
-- $Revision: 1.7 $
-- $Author: jcrocholl $
-- $Hash: 66edd21b566d0390cb77bbf6776ca8c0 $

-- This file was automatically created with ado.php.
-- Manual changes will be lost when it is updated.

with Ada.Tags; use Ada.Tags;
with Font_Loaders; use Font_Loaders;
with Printers; use Printers;
with Glyphs; use Glyphs;
with Clefs; use Clefs;

package Boxes.Clefs is

   -- Public representation.
   type Clef_Box is new Box with private;

   -- Work-around for GNAT bug.
   Clef_Box_Tag : constant String;

   -- Pointer to representation data.
   type Clef_Box_Access is access all Clef_Box;

   -- Constructor for instances.
   function Create
     (Clef : in Clef_Access-- The initial clef.
     return Clef_Box_Access-- The newly created clef box.

   procedure Layout
     (This : access Clef_Box;     -- The clef box object instance.
      Font : access Font_Loader); -- Use this font loader.

   procedure Print
     (This   : access Clef_Box;           -- The clef box object instance.
      To     : access Printer'Class-- Render to this printer.
      Center : in Vector);                -- Center of container.

private

   -- Private representation.
   type Clef_Box is
     new Box with
      record
         Clef   : Clef_Access;  -- The clef in this box.
         Glyph  : Glyph_Access-- The glyph for the clef.
         Offset : Real;         -- Vertical offset from middle line.
      end record;

   -- Work-around for GNAT bug.
   Clef_Box_Tag : constant String := "boxes.clefs.clef_box";

end Boxes.Clefs;