Index

Package: Layouts

Description

private 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)
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)
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)
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)
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)
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)
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;
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;

Create_Layout_CenterHY

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

Create_Layout_LTRB

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

Create_Layout_LTWH

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

Create_Layout_XYWH

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

Delete

procedure Delete
( this: in out A_Layout );
Deletes a layout.