MenuList Class Reference

#include <menulist.h>

Collaboration diagram for MenuList:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MenuList ()
 ~MenuList ()
int add_entry (MenuObject *entry)
void paint (Game_window *gwin)
int handle_events (Game_window *gwin, Mouse *mouse)
int get_selection ()
void set_selection (int sel)
void set_selection (int x, int y)

Private Attributes

std::vector< MenuObject * > * entries
bool selected
int selection

Detailed Description

Definition at line 79 of file menulist.h.


Constructor & Destructor Documentation

MenuList::MenuList (  )  [inline]

Definition at line 85 of file menulist.h.

References entries.

MenuList::~MenuList (  ) 

Definition at line 145 of file menulist.cc.

References entries.


Member Function Documentation

int MenuList::add_entry ( MenuObject entry  )  [inline]

Definition at line 87 of file menulist.h.

References entries.

Referenced by ExultMenu::run(), ExultMenu::setup(), and Game::show_menu().

void MenuList::paint ( Game_window gwin  ) 

int MenuList::handle_events ( Game_window gwin,
Mouse mouse 
)

Definition at line 200 of file menulist.cc.

References Mouse::blit_dirty(), entries, Game_window::get_fastmouse(), Image_window::get_scale(), Game_window::get_win(), gwin, MenuObject::handle_event(), Mouse::hide(), MenuObject::is_mouse_over(), Mouse::is_onscreen(), make_screenshot(), Mouse::move(), selected, selection, set_selection(), Mouse::show(), and Game_window::show().

Referenced by ExultMenu::run(), ExultMenu::setup(), and Game::show_menu().

Here is the call graph for this function:

int MenuList::get_selection (  )  [inline]

Definition at line 90 of file menulist.h.

References selection.

void MenuList::set_selection ( int  sel  ) 

Definition at line 155 of file menulist.cc.

References selected, selection, and MenuObject::set_selected().

Referenced by handle_events(), ExultMenu::run(), ExultMenu::setup(), and Game::show_menu().

Here is the call graph for this function:

void MenuList::set_selection ( int  x,
int  y 
)

Definition at line 172 of file menulist.cc.

References entries, MenuObject::is_mouse_over(), selected, selection, and MenuObject::set_selected().

Here is the call graph for this function:


Member Data Documentation

std::vector<MenuObject*>* MenuList::entries [private]

Definition at line 81 of file menulist.h.

Referenced by add_entry(), handle_events(), MenuList(), set_selection(), and ~MenuList().

bool MenuList::selected [private]

Definition at line 82 of file menulist.h.

Referenced by handle_events(), and set_selection().

int MenuList::selection [private]

Definition at line 83 of file menulist.h.

Referenced by get_selection(), handle_events(), and set_selection().


The documentation for this class was generated from the following files:
Generated on Mon Jul 9 14:57:51 2007 for ExultEngine by  doxygen 1.5.1