Index

Package: Font_API

Description

package Font_API is

Classes

Abstract_Font (abstract)

type Abstract_Font is abstract new Limited_Object with private;

Ancestors:

Immediate Children:

Font_API.Alfont_Fonts.Alfont_Font
Font_API.Allegro_Fonts.Allegro_Font

Primitive operations:

Objects.Construct (Inherited)
Objects.Delete (Inherited)
Objects.To_String (Inherited)

References:

font_api.ads:15:10 (declaration)
font_api-alfont_fonts.adb:42:9 (reference)
font_api-alfont_fonts.adb:68:9 (reference)
font_api-alfont_fonts.ads:19:29 (reference)
font_api-allegro_fonts.adb:28:9 (reference)
font_api-allegro_fonts.adb:49:9 (reference)
font_api-allegro_fonts.ads:14:30 (reference)
font_api.ads:16:34 (reference)
font_api.ads:23:41 (reference)
font_api.ads:26:41 (reference)
font_api.ads:29:40 (reference)
font_api.ads:43:10 (full declaration)

Types

Font_Type

type Font_Type is access all Abstract_Font'Class;

References:

font_api.ads:16:10 (declaration)
drawing_contexts.adb:210:33 (reference)
drawing_contexts.ads:93:33 (reference)
font_api-alfont_fonts.adb:23:69 (reference)
font_api-alfont_fonts.adb:24:16 (reference)
font_api-alfont_fonts.ads:12:69 (reference)
font_api-allegro_fonts.adb:10:69 (reference)
font_api-allegro_fonts.adb:11:16 (reference)
font_api-allegro_fonts.ads:7:69 (reference)
font_api.adb:38:69 (reference)
font_api.adb:39:16 (reference)
font_api.adb:55:37 (reference)
font_api.ads:19:69 (reference)
font_api.ads:36:37 (reference)
themes.adb:31:20 (reference)
themes.adb:60:16 (reference)
themes.adb:194:49 (reference)
themes.adb:228:25 (reference)
themes.adb:242:25 (reference)
themes.adb:293:50 (reference)
themes.adb:297:17 (reference)
themes.ads:82:49 (reference)
themes.ads:138:70 (reference)
themes.ads:166:50 (reference)
widgets-input_boxes.adb:196:26 (reference)
widgets-menubars.adb:95:30 (reference)

Constants & Global variables

FONT_EXCEPTION

FONT_EXCEPTION : exception;

References:

font_api.ads:39:5 (declaration)
font_api-alfont_fonts.adb:10:19 (reference)
font_api-allegro_fonts.adb:37:19 (reference)

Subprograms & Entries

Initialize

procedure Initialize;

References:

font_api.ads:9:15 (declaration)
applications.adb:491:22 (reference)
font_api.adb:16:15 (body)
font_api.adb:23:9 (label)

Called by:

Applications.Init defined at applications.ads:110:14
Raises an exception on failure.

Finalize

procedure Finalize;

References:

font_api.ads:11:15 (declaration)
applications.adb:171:18 (reference)
applications.adb:515:22 (reference)
font_api.adb:27:15 (body)
font_api.adb:34:9 (label)

Called by:

Applications.Close defined at applications.ads:39:15
Applications.Init defined at applications.ads:110:14

Load_Font

function Load_Font
( filename: String;
size: Positive )
return Font_Type;

References:

font_api.ads:19:14 (declaration)
font_api.adb:38:14 (body)
font_api.adb:51:9 (label)
themes.adb:317:21 (reference)

Called by:

Themes.Load_Font defined at themes.ads:163:14
Raises an exception on error.

Text_Height (abstract)

function Text_Height
( this: access Abstract_Font )
return Positive is abstract;

References:

font_api.ads:23:14 (declaration)
themes.adb:231:25 (dispatching call)
widgets-input_boxes.adb:209:60 (dispatching call)
widgets-input_boxes.adb:214:51 (dispatching call)
widgets-menubars.adb:96:63 (dispatching call)

Called by:

Themes.Get_Text_Height defined at themes.ads:87:14
Widgets.Input_Boxes.Draw_Content defined at widgets-input_boxes.ads:135:15
Widgets.Input_Boxes.Draw_Content defined at widgets-input_boxes.ads:135:15
Widgets.Menubars.Draw_Content defined at widgets-menubars.ads:59:15
Returns the height in pixels of a string rendered with the font.

Text_Length (abstract)

function Text_Length
( this: access Abstract_Font;
str: String )
return Natural is abstract;

References:

font_api.ads:26:14 (declaration)
themes.adb:245:25 (dispatching call)
widgets-input_boxes.adb:216:66 (dispatching call)
widgets-menubars.adb:97:41 (dispatching call)

Called by:

Themes.Get_Text_Width defined at themes.ads:101:14
Widgets.Input_Boxes.Draw_Content defined at widgets-input_boxes.ads:135:15
Widgets.Menubars.Draw_Content defined at widgets-menubars.ads:59:15
Returns the length in pixels of a string rendered with the font.

Textout (abstract)

procedure Textout
( this: access Abstract_Font;
bmp: A_Bitmap;
str: String;
x, y: Integer;
color: Color_Type;
smooth: Boolean )
is abstract;

References:

font_api.ads:29:15 (declaration)
drawing_contexts.adb:217:15 (dispatching call)

Delete

procedure Delete
( this: in out Font_Type );

References:

font_api.ads:36:15 (declaration)
font_api-alfont_fonts.adb:30:13 (reference)
font_api-allegro_fonts.adb:17:13 (reference)
font_api.adb:55:15 (body)
font_api.adb:58:9 (label)
themes.adb:65:13 (reference)

Calls:

Objects.Delete defined at objects.ads:99:15