Hosted by
|
with Integer_Strings; use Integer_Strings;
with Enum_Strings; use Enum_Strings;
with Messages; use Messages;
package body Boxes.Arcs is
function Create
return Arc_Box_Access
is
Result : Arc_Box_Access := new Arc_Box;
begin
return Result;
end Create;
procedure Layout
(This : access Arc_Box;
Font : access Font_Loader) is
begin
This.Glyph := Load_Glyph(Font, "arcs/arc");
This.Bounds := Get_Bounds(This.Glyph);
end Layout;
procedure Print
(This : access Arc_Box;
To : access Printer'Class;
Center : in Vector) is
begin
if not Quiet then Debug("printing arc"); end if;
Print(To, This.Glyph, This.Center);
end Print;
end Boxes.Arcs;
|