Index

Package: Menubars

Description

package Widgets.Menubars 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

Menubar

type Menubar is new Widget and Visibility_Listener with private;

Ancestors:

Primitive operations:

Construct (overriding Widgets.Construct)
Delete (overriding Widgets.Delete)
Draw_Content (overriding Widgets.Draw_Content)
Handle_Action (overriding Widgets.Handle_Action)
Objects.Construct (Inherited)
On_Exit (overriding Widgets.On_Exit)
On_Mouse_Move (overriding Widgets.On_Mouse_Move)
On_Mouse_Press (overriding Widgets.On_Mouse_Press)
On_Mouse_Release (overriding Widgets.On_Mouse_Release)
Pulldown_Hidden
Set_Parent (overriding Widgets.Set_Parent)
Widgets.Activate_Popup (Inherited)
Widgets.Bring_To_Front (Inherited)
Widgets.Draw (Inherited)
Widgets.Find_Widget_At (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.Handle_Rooted (Inherited)
Widgets.Handle_Shown (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_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_Scroll (Inherited)
Widgets.On_Resize (Inherited)
Widgets.On_Rooted (Inherited)
Widgets.On_Shown (Inherited)
Widgets.Pack (Inherited)
Widgets.Set_Border (Inherited)
Widgets.Set_Color (Inherited)
Widgets.Set_Zoom (Inherited)
Widgets.To_String (Inherited)
Widgets.Translate_To_Content (Inherited)
Widgets.Translate_To_Window (Inherited)
A Menubar spans the top of a Window and contains pulldown menus.

Types

A_Menubar

type A_Menubar is access all Menubar'Class;

Subprograms & Entries

Create_Menubar

function Create_Menubar
( view: not null access Game_Views.Game_View'Class;
id: String ) return A_Menubar;
Creates a new Menubar within 'view' with widget id 'id'. Each window has at most one menu bar.

Add

procedure Add
( this: access Menubar;
pulldown: in out A_Widget );
Adds a pulldown menu to the menu bar. 'pulldown' will be consumed.

Pulldown_Hidden

procedure Pulldown_Hidden
( this: access Menubar;
pulldown: not null A_Widget );
Notifies the menu bar that a pulldown menu has been hidden. This is intended to be called by a Pulldown_Menu when it closes.