-- $Date: 2004/03/08 10:37:32 $
-- $Revision: 1.6 $
-- $Author: jcrocholl $
-- $Hash: 60a39118864273614079ea312be9ea4b $

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

with Integer_Strings; use Integer_Strings;
with Enum_Strings; use Enum_Strings;
with Messages; use Messages;

package body Boxes.Arcs is

   -- Constructor for instances.
   function Create
     return Arc_Box_Access -- The newly created arc box.
   is
      Result : Arc_Box_Access := new Arc_Box;
   begin
      return Result;
   end Create;

   procedure Layout
     (This : access Arc_Box;        -- The arc box object instance.
      Font : access Font_Loader) is -- Use this font loader.
   begin
      This.Glyph := Load_Glyph(Font, "arcs/arc");
      This.Bounds := Get_Bounds(This.Glyph);
   end Layout;

   procedure Print
     (This   : access Arc_Box;            -- The arc box object instance.
      To     : access Printer'Class-- Render to this printer.
      Center : in Vector) is              -- Center of container.
   begin
      if not Quiet then Debug("printing arc"); end if;
      Print(To, This.Glyph, This.Center);
   end Print;

end Boxes.Arcs;