Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
MenuView Class Reference

#include <MenuView.h>

Inheritance diagram for MenuView:
View

List of all members.

Public Member Functions

 MenuView (Window *c)
virtual ~MenuView ()
virtual void Refresh ()
virtual void OnWindowMove ()
virtual void DoMouseFrame ()
virtual void DrawMenu ()
virtual void DrawMenu (int x, int y, Menu *menu)
virtual int ProcessMenuItem ()
virtual void ClearMenuSelection (Menu *menu)
virtual bool IsShown ()
virtual int GetAction ()
virtual MenuGetMenu ()
virtual void SetMenu (Menu *m)
virtual MenuItemGetMenuItem ()
virtual Color GetBackColor ()
virtual void SetBackColor (Color c)
virtual Color GetTextColor ()
virtual void SetTextColor (Color c)
- Public Member Functions inherited from View
 View (Window *c)
virtual ~View ()
int operator== (const View &that) const
virtual void OnShow ()
virtual void OnHide ()
virtual void SetWindow (Window *w)
virtual WindowGetWindow ()

Protected Attributes

int width
int height
int shift_down
int mouse_down
int right_down
int show_menu
POINT right_start
POINT offset
int action
Menumenu
MenuItemmenu_item
MenuItemselected
Color back_color
Color text_color
- Protected Attributes inherited from View
Windowwindow

Additional Inherited Members

- Static Public Member Functions inherited from View
static const char * TYPENAME ()

Detailed Description

Definition at line 31 of file MenuView.h.


Constructor & Destructor Documentation

MenuView::MenuView ( Window c)

Definition at line 34 of file MenuView.cpp.

MenuView::~MenuView ( )
virtual

Definition at line 46 of file MenuView.cpp.


Member Function Documentation

void MenuView::ClearMenuSelection ( Menu menu)
virtual

Definition at line 323 of file MenuView.cpp.

void MenuView::DoMouseFrame ( )
virtual

Definition at line 73 of file MenuView.cpp.

void MenuView::DrawMenu ( )
virtual

Definition at line 156 of file MenuView.cpp.

void MenuView::DrawMenu ( int  x,
int  y,
Menu menu 
)
virtual

Definition at line 169 of file MenuView.cpp.

virtual int MenuView::GetAction ( )
inlinevirtual

Definition at line 47 of file MenuView.h.

virtual Color MenuView::GetBackColor ( )
inlinevirtual

Definition at line 52 of file MenuView.h.

virtual Menu* MenuView::GetMenu ( )
inlinevirtual

Definition at line 48 of file MenuView.h.

virtual MenuItem* MenuView::GetMenuItem ( )
inlinevirtual

Definition at line 50 of file MenuView.h.

virtual Color MenuView::GetTextColor ( )
inlinevirtual

Definition at line 54 of file MenuView.h.

virtual bool MenuView::IsShown ( )
inlinevirtual

Definition at line 46 of file MenuView.h.

void MenuView::OnWindowMove ( )
virtual

Reimplemented from View.

Definition at line 53 of file MenuView.cpp.

int MenuView::ProcessMenuItem ( )
virtual

Definition at line 131 of file MenuView.cpp.

void MenuView::Refresh ( )
virtual

Reimplemented from View.

Definition at line 64 of file MenuView.cpp.

virtual void MenuView::SetBackColor ( Color  c)
inlinevirtual

Definition at line 53 of file MenuView.h.

virtual void MenuView::SetMenu ( Menu m)
inlinevirtual

Definition at line 49 of file MenuView.h.

virtual void MenuView::SetTextColor ( Color  c)
inlinevirtual

Definition at line 55 of file MenuView.h.


Member Data Documentation

int MenuView::action
protected

Definition at line 67 of file MenuView.h.

Color MenuView::back_color
protected

Definition at line 72 of file MenuView.h.

int MenuView::height
protected

Definition at line 58 of file MenuView.h.

Menu* MenuView::menu
protected

Definition at line 68 of file MenuView.h.

MenuItem* MenuView::menu_item
protected

Definition at line 69 of file MenuView.h.

int MenuView::mouse_down
protected

Definition at line 61 of file MenuView.h.

POINT MenuView::offset
protected

Definition at line 65 of file MenuView.h.

int MenuView::right_down
protected

Definition at line 62 of file MenuView.h.

POINT MenuView::right_start
protected

Definition at line 64 of file MenuView.h.

MenuItem* MenuView::selected
protected

Definition at line 70 of file MenuView.h.

int MenuView::shift_down
protected

Definition at line 60 of file MenuView.h.

int MenuView::show_menu
protected

Definition at line 63 of file MenuView.h.

Color MenuView::text_color
protected

Definition at line 73 of file MenuView.h.

int MenuView::width
protected

Definition at line 58 of file MenuView.h.


The documentation for this class was generated from the following files: