Hosted by
|
with Ada.Tags; use Ada.Tags;
with Font_Loaders; use Font_Loaders;
with Glyphs; use Glyphs;
with Printers; use Printers;
with Times; use Times;
package Boxes.Times is
type Time_Box is new Box with private;
Time_Box_Tag : constant String;
type Time_Box_Access is access all Time_Box;
function Create
(Time : in Time_Access)
return Time_Box_Access;
function Get_Time
(This : access Time_Box)
return Time_Access;
procedure Layout
(This : access Time_Box;
Font : access Font_Loader);
procedure Print
(This : access Time_Box;
To : access Printer'Class;
Center : in Vector);
private
type Time_Box is
new Box with
record
Time : Time_Access;
Upper : Glyph_Access;
Lower : Glyph_Access;
Upper_Center : Vector;
Lower_Center : Vector;
end record;
Time_Box_Tag : constant String := "boxes.times.time_box";
end Boxes.Times;
|