MenuItem Class

Definition

Line 341 of System.Screen/Menu.cm

Inheritance

Constructors & Destructor

public nothrow MenuItem(const String<char>& text_)
public nothrow MenuItem(const String<char>& text_, uchar shortcut_)

Member Functions

public nothrow uchar AccessKey() const
public void AddMenuItem(MenuItem* menuItem)
public bool DispatchKey(uchar key)
public nothrow MenuItem* FirstChildItem() const
public MenuControl* GetMenuControl()
public nothrow bool HasChildItems() const
public nothrow bool IsDisabled() const
public nothrow bool IsEnabled() const
public nothrow bool IsFocused() const
public nothrow bool IsTopLevel() const
public nothrow Rect ItemRect() const
public nothrow MenuItem* LastChildItem() const
public nothrow const Point& Location() const
public nothrow void Measure(Point& loc)
private void MeasureChild(Point& loc)
private void MeasureChildren()
private void MeasureSize()
private void MeasureTopLevel(Point& loc)
public nothrow const Rect& MenuBoxRect() const
public nothrow MenuItem* NextMenuItem() const
public void OnKeyPressed(KeyEventArgs& args)
public nothrow MenuItem* ParentMenuItem()
public nothrow MenuItem* PrevMenuItem() const
public void Select()
public nothrow Event<SelectEventHandler, EmptyEventArgs>& SelectEvent()
public nothrow void SetAccessKey()
public nothrow void SetDisabled()
public nothrow void SetEnabled()
public nothrow void SetState(MenuItemState state_)
public nothrow void SetText(const String<char>& text_)
public nothrow uchar Shortcut() const
public nothrow String<uchar> ShortcutText() const
public nothrow int TextLength() const
private void WriteChild()
private void WriteFocused()
private void WriteMenuBox()
public void WriteScreen()
private void WriteText()
private void WriteTopLevel()

Member Variables

private uchar accessKey
private MenuItemFlags flags
private Container items
private Point location
private Rect menuBoxRect
private Event<SelectEventHandler, EmptyEventArgs> selectEvent
private uchar shortcut
private MenuItemState state
private String<uchar> text

Constructor& Destructor Details

MenuItem Constructor

public nothrow MenuItem(const String<char>& text_)

Definition
Line 346 of System.Screen/Menu.cm


MenuItem Constructor

public nothrow MenuItem(const String<char>& text_, uchar shortcut_)

Definition
Line 343 of System.Screen/Menu.cm


Member Function Details

AccessKey Member Function

public nothrow uchar AccessKey()

Definition
Line 649 of System.Screen/Menu.cm


AddMenuItem Member Function

public void AddMenuItem(MenuItem* menuItem)

Definition
Line 449 of System.Screen/Menu.cm


DispatchKey Member Function

public bool DispatchKey(uchar key)

Definition
Line 543 of System.Screen/Menu.cm


FirstChildItem Member Function

public nothrow MenuItem* FirstChildItem()

Definition
Line 393 of System.Screen/Menu.cm


GetMenuControl Member Function

public MenuControl* GetMenuControl()

Definition
Line 470 of System.Screen/Menu.cm


HasChildItems Member Function

public nothrow bool HasChildItems()

Definition
Line 445 of System.Screen/Menu.cm


IsDisabled Member Function

public nothrow bool IsDisabled()

Definition
Line 362 of System.Screen/Menu.cm


IsEnabled Member Function

public nothrow bool IsEnabled()

Definition
Line 366 of System.Screen/Menu.cm


IsFocused Member Function

public nothrow bool IsFocused()

Definition
Line 381 of System.Screen/Menu.cm


IsTopLevel Member Function

public nothrow bool IsTopLevel()

Definition
Line 377 of System.Screen/Menu.cm


ItemRect Member Function

public nothrow Rect ItemRect()

Definition
Line 687 of System.Screen/Menu.cm


LastChildItem Member Function

public nothrow MenuItem* LastChildItem()

Definition
Line 406 of System.Screen/Menu.cm


Location Member Function

public nothrow const Point& Location()

Definition
Line 495 of System.Screen/Menu.cm


Measure Member Function

public nothrow void Measure(Point& loc)

Definition
Line 613 of System.Screen/Menu.cm


MeasureChild Member Function

private void MeasureChild(Point& loc)

Definition
Line 745 of System.Screen/Menu.cm


MeasureChildren Member Function

private void MeasureChildren()

Definition
Line 703 of System.Screen/Menu.cm


MeasureSize Member Function

private void MeasureSize()

Definition
Line 717 of System.Screen/Menu.cm


MeasureTopLevel Member Function

private void MeasureTopLevel(Point& loc)

Definition
Line 694 of System.Screen/Menu.cm


MenuBoxRect Member Function

public nothrow const Rect& MenuBoxRect()

Definition
Line 491 of System.Screen/Menu.cm


NextMenuItem Member Function

public nothrow MenuItem* NextMenuItem()

Definition
Line 419 of System.Screen/Menu.cm


OnKeyPressed Member Function

public void OnKeyPressed(KeyEventArgs& args)

Definition
Line 499 of System.Screen/Menu.cm


ParentMenuItem Member Function

public nothrow MenuItem* ParentMenuItem()

Definition
Line 454 of System.Screen/Menu.cm


PrevMenuItem Member Function

public nothrow MenuItem* PrevMenuItem()

Definition
Line 432 of System.Screen/Menu.cm


Select Member Function

public void Select()

Definition
Line 602 of System.Screen/Menu.cm


SelectEvent Member Function

public nothrow Event<SelectEventHandler, EmptyEventArgs>& SelectEvent()

Definition
Line 598 of System.Screen/Menu.cm


SetAccessKey Member Function

public nothrow void SetAccessKey()

Definition
Line 653 of System.Screen/Menu.cm


SetDisabled Member Function

public nothrow void SetDisabled()

Definition
Line 354 of System.Screen/Menu.cm


SetEnabled Member Function

public nothrow void SetEnabled()

Definition
Line 358 of System.Screen/Menu.cm


SetState Member Function

public nothrow void SetState(MenuItemState state_)

Definition
Line 370 of System.Screen/Menu.cm


SetText Member Function

public nothrow void SetText(const String<char>& text_)

Definition
Line 349 of System.Screen/Menu.cm


Shortcut Member Function

public nothrow uchar Shortcut()

Definition
Line 672 of System.Screen/Menu.cm


ShortcutText Member Function

public nothrow String<uchar> ShortcutText()

Definition
Line 637 of System.Screen/Menu.cm


TextLength Member Function

public nothrow int TextLength()

Definition
Line 624 of System.Screen/Menu.cm


WriteChild Member Function

private void WriteChild()

Definition
Line 758 of System.Screen/Menu.cm


WriteFocused Member Function

private void WriteFocused()

Definition
Line 780 of System.Screen/Menu.cm


WriteMenuBox Member Function

private void WriteMenuBox()

Definition
Line 841 of System.Screen/Menu.cm


WriteScreen Member Function

public void WriteScreen()

Definition
Line 676 of System.Screen/Menu.cm


WriteText Member Function

private void WriteText()

Definition
Line 800 of System.Screen/Menu.cm


WriteTopLevel Member Function

private void WriteTopLevel()

Definition
Line 750 of System.Screen/Menu.cm