Index

Package: Pulldown_Menus

Description

package Widgets.Containers.Pulldown_Menus 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

Pulldown_Menu

type Pulldown_Menu is new Container and Menu_Listener with private;

Ancestors:

Primitive operations:

Activate_Popup (Inherited)
Add_Child (Inherited)
Add_Menu_Item
Apply_Container_Layout (Inherited)
Bring_To_Front (Inherited)
Bring_To_Front (Inherited)
Construct (Inherited)
Construct
Construct (Inherited)
Delete (Inherited)
Delete_Child (Inherited)
Delete_Children (Inherited)
Draw (Inherited)
Draw_Children (Inherited)
Draw_Content (overriding Draw_Content)
Find_Widget_At (Inherited)
Get_Color (Inherited)
Get_Min_Height (overriding Get_Min_Height)
Get_Min_Width (overriding Get_Min_Width)
Get_Process_Name (Inherited)
Get_View (Inherited)
Get_Window (Inherited)
Give_Focus (Inherited)
Handle_Action (overriding Widgets.Menu_Items.Handle_Action)
Handle_Blur (Inherited)
Handle_Click (Inherited)
Handle_Descendant_Shown (Inherited)
Handle_Disabled (Inherited)
Handle_Enabled (Inherited)
Handle_Enter (Inherited)
Handle_Exit (Inherited)
Handle_Focus (Inherited)
Handle_Key_Held (Inherited)
Handle_Key_Press (Inherited)
Handle_Key_Release (Inherited)
Handle_Mouse_Held (Inherited)
Handle_Mouse_Move (Inherited)
Handle_Mouse_Press (Inherited)
Handle_Mouse_Release (Inherited)
Handle_Mouse_Scroll (Inherited)
Handle_Resize (Inherited)
Handle_Rooted (Inherited)
Handle_Shown (Inherited)
Is_Rooted (Inherited)
Is_Showing (Inherited)
Pack (overriding Pack)
Remove_Child (Inherited)
Remove_Menu_Item
Set_Color (Inherited)
Set_Dirty (Inherited)
Set_Parent (Inherited)
Set_Zoom (Inherited)
To_String (overriding To_String)
Translate_To_Content (Inherited)
Translate_To_Window (Inherited)
A Pulldown_Menu is a container for menu items in the window's menu bar. It automatically sizes itself to fit the Menu_Items it contains.

Types

A_Pulldown_Menu

type A_Pulldown_Menu is access all Pulldown_Menu'Class;

Subprograms & Entries

Create_Pulldown_Menu

function Create_Pulldown_Menu
( view: not null access Game_Views.Game_View'Class;
id: String;
text: String ) return A_Pulldown_Menu;
Creates a new pulldown menu within 'view' with id 'id. 'text' is the name of the pulldown menu to be displayed in a parent menu. (ie: in the menu bar.)

Add_Menu_Item

procedure Add_Menu_Item
( this: access Pulldown_Menu;
item: in out A_Menu_Item );
Adds a Menu_Item to the bottom of the pulldown menu. 'item' will be consumed.

Get_Text

function Get_Text
( this: access Pulldown_Menu ) return String;
Returns the pulldown menu's text to be displayed on the menu bar.