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:

Add_Menu_Item
Construct
Draw_Content (overriding Widgets.Containers.Draw_Content)
Get_Min_Height (overriding Widgets.Get_Min_Height)
Get_Min_Width (overriding Widgets.Get_Min_Width)
Handle_Action (overriding Widgets.Menu_Items.Handle_Action)
Objects.Construct (Inherited)
Pack (overriding Widgets.Containers.Pack)
Remove_Menu_Item
To_String (overriding Widgets.To_String)
Widgets.Activate_Popup (Inherited)
Widgets.Bring_To_Front (Inherited)
Widgets.Construct (Inherited)
Widgets.Containers.Add_Child (Inherited)
Widgets.Containers.Apply_Container_Layout (Inherited)
Widgets.Containers.Bring_To_Front (Inherited)
Widgets.Containers.Delete (Inherited)
Widgets.Containers.Delete_Child (Inherited)
Widgets.Containers.Delete_Children (Inherited)
Widgets.Containers.Draw (Inherited)
Widgets.Containers.Draw_Children (Inherited)
Widgets.Containers.Draw_Content_Foreground (Inherited)
Widgets.Containers.Find_Widget_At (Inherited)
Widgets.Containers.Give_Focus (Inherited)
Widgets.Containers.Handle_Rooted (Inherited)
Widgets.Containers.Handle_Shown (Inherited)
Widgets.Containers.Remove_Child (Inherited)
Widgets.Get_Color (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.Translate_To_Content (Inherited)
Widgets.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.