Index

Package: Containers

Description

package Widgets.Containers is
Copyright (c) 2012 Kevin Wellwood All rights reserved. This source code is distributed under the Modified BSD License. For terms and conditions, see license.txt.

Classes

Container (abstract)

type Container is abstract new Widget with private;

Ancestors:

Immediate Children:

Primitive operations:

Add_Child
Apply_Container_Layout
Bring_To_Front
Delete (overriding Widgets.Delete)
Delete_Child
Delete_Children
Draw (overriding Widgets.Draw)
Draw_Children
Draw_Content (overriding Widgets.Draw_Content)
Draw_Content_Foreground
Find_Widget_At (overriding Widgets.Find_Widget_At)
Handle_Rooted (overriding Widgets.Handle_Rooted)
Handle_Shown (overriding Widgets.Handle_Shown)
Objects.Construct (Inherited)
Pack (overriding Widgets.Pack)
Remove_Child
Widgets.Activate_Popup (Inherited)
Widgets.Bring_To_Front (Inherited)
Widgets.Construct (Inherited)
Widgets.Get_Color (Inherited)
Widgets.Get_Min_Height (Inherited)
Widgets.Get_Min_Width (Inherited)
Widgets.Get_Process_Name (Inherited)
Widgets.Get_View (Inherited)
Widgets.Get_Window (Inherited)
Widgets.Is_Rooted (Inherited)
Widgets.Is_Showing (Inherited)
Widgets.On_Blur (Inherited)
Widgets.On_Click (Inherited)
Widgets.On_Descendant_Shown (Inherited)
Widgets.On_Disabled (Inherited)
Widgets.On_Enabled (Inherited)
Widgets.On_Enter (Inherited)
Widgets.On_Exit (Inherited)
Widgets.On_Focus (Inherited)
Widgets.On_Key_Press (Inherited)
Widgets.On_Key_Release (Inherited)
Widgets.On_Key_Typed (Inherited)
Widgets.On_Mouse_Held (Inherited)
Widgets.On_Mouse_Move (Inherited)
Widgets.On_Mouse_Press (Inherited)
Widgets.On_Mouse_Release (Inherited)
Widgets.On_Mouse_Scroll (Inherited)
Widgets.On_Resize (Inherited)
Widgets.On_Rooted (Inherited)
Widgets.On_Shown (Inherited)
Widgets.Set_Border (Inherited)
Widgets.Set_Color (Inherited)
Widgets.Set_Parent (Inherited)
Widgets.Set_Zoom (Inherited)
Widgets.To_String (Inherited)
Widgets.Translate_To_Content (Inherited)
Widgets.Translate_To_Window (Inherited)
A Container widget is a parent widget that contains multiple child widgets. Each child widget is drawn within the content area of the parent. Widget layouts applied to child widgets are relative to the content area of their container. An input event not handled by a widget will be passed up the widget tree to its container.

Types

A_Container

type A_Container is access all Container'Class;

Subprograms & Entries

Apply_Container_Layout

procedure Apply_Container_Layout
( this: access Container;
child: not null A_Widget );
Applies the container's special child layout to the given child widget.

Bring_To_Front

procedure Bring_To_Front
( this: access Container;
child: not null A_Widget );
Brings the 'child' widget to the front of the drawing Z-order within this container. If 'child' overlaps any sibling widgets, it will be drawn on top.

Give_Focus

procedure Give_Focus
( this: access Container;
target: not null A_Widget );
Gives focus to 'target'. If this widget is not rooted with a window, the operation will be ignored. If the widget does not accept focus, the next possible candidate will be receive focus.