Index

Package: Widgets.Layouts

Description

package Widgets.Layouts is

Classes

Layout_Center

type Layout_Center is new Layout with private;

Ancestors:

Widgets.Layout

Primitive operations:

Apply (overriding Widgets.Apply)
Construct
Objects.Adjust (Inherited)
Objects.Construct (Inherited)
Objects.Delete (Inherited)
Objects.Object_Read (Inherited)
Objects.Object_Write (Inherited)
Objects.To_String (Inherited)

References:

widgets-layouts.ads:5:10 (declaration)
widgets-layouts.adb:7:48 (reference)
widgets-layouts.adb:16:36 (reference)
widgets-layouts.adb:40:40 (reference)
widgets-layouts.ads:73:10 (full declaration)
widgets-layouts.ads:78:40 (reference)
widgets-layouts.ads:80:36 (reference)
widgets-layouts.ads:82:42 (reference)
Centers the widget with the given size within the parent.

Layout_CenterH

type Layout_CenterH is new Layout with private;

Ancestors:

Widgets.Layout

Primitive operations:

Apply (overriding Widgets.Apply)
Construct
Objects.Adjust (Inherited)
Objects.Construct (Inherited)
Objects.Delete (Inherited)
Objects.Object_Read (Inherited)
Objects.Object_Write (Inherited)
Objects.To_String (Inherited)

References:

widgets-layouts.ads:17:10 (declaration)
widgets-layouts.adb:51:49 (reference)
widgets-layouts.adb:60:36 (reference)
widgets-layouts.adb:83:47 (reference)
widgets-layouts.ads:88:10 (full declaration)
widgets-layouts.ads:94:41 (reference)
widgets-layouts.ads:96:36 (reference)
widgets-layouts.ads:98:42 (reference)
Centers the widget with the given width horizontally within the parent. Top and bottom are distances relative to the top and bottom edges of the parent.

Layout_CenterHY

type Layout_CenterHY is new Layout with private;

Ancestors:

Widgets.Layout

Primitive operations:

Apply (overriding Widgets.Apply)
Construct
Objects.Adjust (Inherited)
Objects.Construct (Inherited)
Objects.Delete (Inherited)
Objects.Object_Read (Inherited)
Objects.Object_Write (Inherited)
Objects.To_String (Inherited)

References:

widgets-layouts.ads:29:10 (declaration)
widgets-layouts.adb:97:50 (reference)
widgets-layouts.adb:106:36 (reference)
widgets-layouts.adb:124:42 (reference)
widgets-layouts.ads:105:10 (full declaration)
widgets-layouts.ads:110:42 (reference)
widgets-layouts.ads:112:36 (reference)
widgets-layouts.ads:114:42 (reference)
Centers the widget with the given width horizontally within the parent. y1 is an absolute value within the parent's content region for the top of the widget and y2 is the absolute location of the bottom of the widget. If width is zero the widget's minimum width will be used.

Layout_LTRB

type Layout_LTRB is new Layout with private;

Ancestors:

Widgets.Layout

Primitive operations:

Apply (overriding Widgets.Apply)
Construct
Objects.Adjust (Inherited)
Objects.Construct (Inherited)
Objects.Delete (Inherited)
Objects.Object_Read (Inherited)
Objects.Object_Write (Inherited)
Objects.To_String (Inherited)

References:

widgets-layouts.ads:38:10 (declaration)
widgets-layouts.adb:137:46 (reference)
widgets-layouts.adb:146:36 (reference)
widgets-layouts.adb:177:40 (reference)
widgets-layouts.ads:120:10 (full declaration)
widgets-layouts.ads:127:38 (reference)
widgets-layouts.ads:129:36 (reference)
widgets-layouts.ads:131:42 (reference)
Positions the widget using offsets from the parent's edges.

Layout_LTWH

type Layout_LTWH is new Layout with private;

Ancestors:

Widgets.Layout

Primitive operations:

Apply (overriding Widgets.Apply)
Construct
Objects.Adjust (Inherited)
Objects.Construct (Inherited)
Objects.Delete (Inherited)
Objects.Object_Read (Inherited)
Objects.Object_Write (Inherited)
Objects.To_String (Inherited)

References:

widgets-layouts.ads:48:10 (declaration)
widgets-layouts.adb:190:46 (reference)
widgets-layouts.adb:199:36 (reference)
widgets-layouts.adb:233:42 (reference)
widgets-layouts.ads:139:10 (full declaration)
widgets-layouts.ads:146:38 (reference)
widgets-layouts.ads:148:36 (reference)
widgets-layouts.ads:150:42 (reference)
Positions the widget using offsets from the parent's top left and sized using the given width and height. Negative values for 'top' or 'left' are retreated as relative to the bottom or right, respectively.

Layout_XYWH

type Layout_XYWH is new Layout with private;

Ancestors:

Widgets.Layout

Primitive operations:

Apply (overriding Widgets.Apply)
Construct
Objects.Adjust (Inherited)
Objects.Construct (Inherited)
Objects.Delete (Inherited)
Objects.Object_Read (Inherited)
Objects.Object_Write (Inherited)
Objects.To_String (Inherited)

References:

widgets-layouts.ads:59:10 (declaration)
widgets-layouts.adb:250:46 (reference)
widgets-layouts.adb:259:36 (reference)
widgets-layouts.adb:280:42 (reference)
widgets-layouts.ads:158:10 (full declaration)
widgets-layouts.ads:164:38 (reference)
widgets-layouts.ads:166:36 (reference)
widgets-layouts.ads:168:42 (reference)
Positions the widget's using offsets from the parent's top left and sized using the given width and height. x and y specify the absolute location of the widget's top left corner within the parent's content region.

Subprograms & Entries

Create_Layout_Center

function Create_Layout_Center
( width, height: Natural )
return A_Layout;

References:

widgets-layouts.ads:9:14 (declaration)
widgets-layouts.adb:6:14 (body)
widgets-layouts.adb:11:9 (label)
widgets-layouts.ads:10:27 (reference)
widgets.adb:1157:30 (reference)

Calls:

Construct defined at widgets-layouts.ads:82:15
If width or height are 0 then the widget's minimum width or height will be used.

Create_Layout_CenterH

function Create_Layout_CenterH
( width: Natural;
top, bottom: Integer )
return A_Layout;

References:

widgets-layouts.ads:19:14 (declaration)
widgets-layouts.adb:49:14 (body)
widgets-layouts.adb:55:9 (label)
widgets-layouts.ads:21:27 (reference)
widgets.adb:1168:30 (reference)

Calls:

Construct defined at widgets-layouts.ads:98:15

Create_Layout_CenterHY

function Create_Layout_CenterHY
( width: Natural;
y1, y2: Integer )
return A_Layout;

References:

widgets-layouts.ads:31:14 (declaration)
widgets-layouts.adb:95:14 (body)
widgets-layouts.adb:101:9 (label)
widgets-layouts.ads:33:27 (reference)
widgets.adb:1178:30 (reference)

Calls:

Construct defined at widgets-layouts.ads:114:15

Create_Layout_LTRB

function Create_Layout_LTRB
( left, top, right, bottom: Integer )
return A_Layout;

References:

widgets-layouts.ads:40:14 (declaration)
widgets-containers-panels.adb:33:19 (reference)
widgets-layouts.adb:136:14 (body)
widgets-layouts.adb:141:9 (label)
widgets-layouts.ads:41:27 (reference)
widgets.adb:172:24 (reference)
widgets.adb:1190:30 (reference)
widgets-containers-keen_panels.adb:23:19 (reference)

Called by:

Widgets.Construct defined at widgets.ads:499:15
Widgets.Containers.Keen_Panels.Make_Child_Layout defined at widgets-containers-keen_panels.adb:8:15
Widgets.Containers.Panels.Make_Child_Layout defined at widgets-containers-panels.adb:10:15
Widgets.Set_Layout_LTRB defined at widgets.ads:248:15

Calls:

Construct defined at widgets-layouts.ads:131:15

Create_Layout_LTWH

function Create_Layout_LTWH
( left, top: Integer;
width, height: Natural )
return A_Layout;

References:

widgets-layouts.ads:50:14 (declaration)
widgets-layouts.adb:188:14 (body)
widgets-layouts.adb:194:9 (label)
widgets-layouts.ads:52:27 (reference)
widgets.adb:1202:30 (reference)

Calls:

Construct defined at widgets-layouts.ads:150:15

Create_Layout_XYWH

function Create_Layout_XYWH
( x, y: Integer;
width, height: Natural )
return A_Layout;

References:

widgets-layouts.ads:61:14 (declaration)
widgets-layouts.adb:248:14 (body)
widgets-layouts.adb:254:9 (label)
widgets-layouts.ads:63:27 (reference)
widgets.adb:1213:30 (reference)

Calls:

Construct defined at widgets-layouts.ads:168:15

Delete

procedure Delete
( this: in out A_Layout );

References:

widgets-layouts.ads:68:15 (declaration)
widgets-containers-panels.adb:32:9 (reference)
widgets-containers.adb:62:9 (reference)
widgets-layouts.adb:294:15 (body)
widgets-layouts.adb:297:9 (label)
widgets.adb:246:9 (reference)
widgets.adb:1143:9 (reference)
widgets-containers-keen_panels.adb:22:9 (reference)

Called by:

Widgets.Containers.Delete defined at widgets-containers.ads:57:15
Widgets.Containers.Keen_Panels.Make_Child_Layout defined at widgets-containers-keen_panels.adb:8:15
Widgets.Containers.Panels.Make_Child_Layout defined at widgets-containers-panels.adb:10:15
Widgets.Delete defined at widgets.ads:509:15
Widgets.Set_Layout defined at widgets.ads:664:15

Calls:

Objects.Delete defined at objects.ads:46:15
Deletes a layout.