The Möbius Operating System: OS::Menu class Reference
HOME DOWNLOAD DOCUMENTATION SCREENSHOTS  

OS::Menu Class Reference

Pop-up menu. More...

#include <Menu.h>

Inheritance diagram for OS::Menu:

OS::WindowImpl OS::Window OS::MessageHandler List of all members.

Public Member Functions

bool Create ()
int Show (const point_t &pt)
MenuItem * AddItem (const wchar_t *text)

Protected Member Functions

void OnPaint ()
 Handler for MSG_PAINT messages.

void OnMouseMove (point_t pt)
 Handler for MSG_MOUSEMOVE messages.

void OnMouseUp (point_t pt)
 Handler for MSG_MOUSEUP messages.

int PointToItem (const point_t &pt)

Protected Attributes

List< MenuItem > m_items
int m_result
int m_selected_item

Detailed Description

Pop-up menu.


Member Function Documentation

void Menu::OnMouseMove point_t  pt  )  [protected, virtual]
 

Handler for MSG_MOUSEMOVE messages.

Parameters:
pt Position of the mouse pointer after it was moved

Reimplemented from OS::WindowImpl.

void Menu::OnMouseUp point_t  pt  )  [protected, virtual]
 

Handler for MSG_MOUSEUP messages.

Parameters:
\pt Position of the mouse pointer when the button was released

Reimplemented from OS::WindowImpl.

void Menu::OnPaint  )  [protected, virtual]
 

Handler for MSG_PAINT messages.

You should declare a Painter object in your OnPaint handler, or call BeginPaint.

Reimplemented from OS::WindowImpl.


The documentation for this class was generated from the following files:
  • /include/gui/Menu.h
  • /coreos/libgui/Menu.cpp
Post a comment

From: