Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MMENU Class Reference

#include <mmenu.H>

Inheritance diagram for MMENU:

Inheritance graph
[legend]
Collaboration diagram for MMENU:

Collaboration graph
[legend]
List of all members.

Public Types

enum  DIR {
  N = 0, NE, E, SE,
  S, SW, W, NW,
  NUM_DIRS
}
typedef CallMeth_t< Simple_int,
Event
_callb
typedef GuardMeth_t< Simple_int,
Event
_guard

Public Member Functions

void add (CGEOMptr &g, MenuCb_t *o=0)
void add (Cstr_ptr &n, MenuCb_t *o=0)
void clear ()
virtual ~MMENU ()
 MMENU (CEvent &d, CEvent &m, CEvent &u)
virtual void call (int sel)
virtual int invoke (CEvent &, State *&)
virtual int down (CEvent &, State *&)
virtual int move (CEvent &, State *&)
virtual int up (CEvent &, State *&)
virtual int tick ()
virtual void setIndex (int idx)
virtual int getIndex () const
void Own () const
void Free () const
int Lock ()
void Unlock ()
int Unique () const
virtual int noop (CEvent &, State *&)
virtual void add_events (CEvent &d, CEvent &m, CEvent &u)
_callbCb (TYPENAME _callb::_method m)
_callbCb (TYPENAME _callb::_method m, State_t< Event > *s)
_guardGd (const Event &e, TYPENAME _guard::_method m)
Stateentry ()
const Stateentry () const

Protected Attributes

ARRAY< MMENUMenuItem_items
int _sel
VIEWptr _view
double _t0
mlib::XYpt _d
int _disp
CCOLOR _nhighlight_col
CCOLOR _highlight_col
int _index
State _manip_move
CAMptr _cam
State _entry

Classes

struct  MMENUMenuItem

Detailed Description

Definition at line 69 of file mmenu.H.


Member Typedef Documentation

typedef CallMeth_t<Simple_int ,Event > Interactor< Simple_int , Event , State >::_callb [inherited]
 

Definition at line 388 of file fsa.H.

typedef GuardMeth_t<Simple_int ,Event > Interactor< Simple_int , Event , State >::_guard [inherited]
 

Definition at line 389 of file fsa.H.


Member Enumeration Documentation

enum MMENU::DIR
 

Enumerator:
N 
NE 
E 
SE 
S 
SW 
W 
NW 
NUM_DIRS 

Definition at line 72 of file mmenu.H.


Constructor & Destructor Documentation

virtual MMENU::~MMENU  )  [inline, virtual]
 

Definition at line 120 of file mmenu.H.

MMENU::MMENU CEvent d,
CEvent m,
CEvent u
[inline]
 

Definition at line 121 of file mmenu.H.


Member Function Documentation

void MMENU::add Cstr_ptr &  n,
MenuCb_t o = 0
[inline]
 

Definition at line 95 of file mmenu.H.

References add().

void MMENU::add CGEOMptr &  g,
MenuCb_t o = 0
[inline]
 

Definition at line 92 of file mmenu.H.

References _items, and ARRAY< T >::add().

Referenced by add().

void Simple_int::add_events CEvent d,
CEvent m,
CEvent u
[virtual, inherited]
 

Definition at line 42 of file manip.C.

References Interactor< Simple_int, Event, State >::_entry, Simple_int::_manip_move, Interactor< Simple_int, Event, State >::Cb(), Simple_int::down(), Simple_int::move(), and Simple_int::up().

void MMENU::call int  sel  )  [virtual]
 

Definition at line 107 of file mmenu.C.

References _items, and ARRAY< T >::num().

Referenced by up().

_callb* Interactor< Simple_int , Event , State >::Cb TYPENAME _callb::_method  m,
State_t< Event > *  s
[inline, inherited]
 

Definition at line 396 of file fsa.H.

_callb* Interactor< Simple_int , Event , State >::Cb TYPENAME _callb::_method  m  )  [inline, inherited]
 

Definition at line 393 of file fsa.H.

Referenced by Simple_int::add_events(), Pen::create_fsa(), GEST_INT::GEST_INT(), Screen_pan_int::Screen_pan_int(), and Simple_int::Simple_int().

void MMENU::clear void   )  [inline]
 

Definition at line 98 of file mmenu.H.

References _items, and ARRAY< T >::clear().

int MMENU::down CEvent ,
State *& 
[virtual]
 

Reimplemented from Simple_int.

Definition at line 32 of file mmenu.C.

References _d, Evd::_d, _MENU_OFFSET, _sel, _t0, _view, DEVice_2d::cur(), DEVice_buttons::ptr2d(), the_time(), and Event::view().

const State * Interactor< Simple_int , Event , State >::entry  )  const [inline, inherited]
 

Definition at line 403 of file fsa.H.

State * Interactor< Simple_int , Event , State >::entry  )  [inline, inherited]
 

Definition at line 402 of file fsa.H.

void REFcounter::Free  )  const [inline, inherited]
 

Definition at line 76 of file ref.H.

References REFcounter::_mutex, REFcounter::_u, and REF_ME.

_guard* Interactor< Simple_int , Event , State >::Gd const Event e,
TYPENAME _guard::_method  m
[inline, inherited]
 

Definition at line 399 of file fsa.H.

virtual int FRAMEobs::getIndex  )  const [inline, virtual, inherited]
 

Definition at line 45 of file gel.H.

References FRAMEobs::_index.

int MMENU::invoke CEvent ,
State *& 
[virtual]
 

Definition at line 16 of file mmenu.C.

References Interactor< Simple_int, Event, State >::_entry, State_t< EVENT >::consumes(), and State_t< EVENT >::event().

int REFcounter::Lock  )  [inline, inherited]
 

Definition at line 105 of file ref.H.

References REFcounter::_mutex, and REFcounter::_u.

Referenced by REFlock::REFlock().

int MMENU::move CEvent ,
State *& 
[virtual]
 

Reimplemented from Simple_int.

Definition at line 56 of file mmenu.C.

References Evd::_d, _highlight_col, _items, _sel, CBBOX, BBOX2D::contains(), DEVice_2d::cur(), and ARRAY< T >::num().

virtual int Simple_int::noop CEvent ,
State *& 
[inline, virtual, inherited]
 

Definition at line 41 of file manip.H.

void REFcounter::Own  )  const [inline, inherited]
 

Definition at line 59 of file ref.H.

References REFcounter::_mutex, REFcounter::_u, and REF_ME.

virtual void FRAMEobs::setIndex int  idx  )  [inline, virtual, inherited]
 

Definition at line 44 of file gel.H.

References FRAMEobs::_index.

int MMENU::tick  )  [virtual]
 

Reimplemented from FRAMEobs.

Definition at line 135 of file mmenu.C.

References _d, _items, _MENU_OFFSET, _nhighlight_col, _sel, BBOX2D::max(), BBOX2D::min(), and ARRAY< T >::num().

int REFcounter::Unique  )  const [inline, inherited]
 

Definition at line 115 of file ref.H.

References REFcounter::_mutex, and REFcounter::_u.

void REFcounter::Unlock  )  [inline, inherited]
 

Definition at line 111 of file ref.H.

References REFcounter::_mutex, and REFcounter::_u.

Referenced by REFlock::~REFlock().

int MMENU::up CEvent ,
State *& 
[virtual]
 

Reimplemented from Simple_int.

Definition at line 114 of file mmenu.C.

References _items, _sel, _view, call(), and ARRAY< T >::num().


Member Data Documentation

CAMptr Simple_int::_cam [protected, inherited]
 

Definition at line 36 of file manip.H.

mlib::XYpt MMENU::_d [protected]
 

Definition at line 113 of file mmenu.H.

Referenced by down(), and tick().

int MMENU::_disp [protected]
 

Definition at line 114 of file mmenu.H.

State Interactor< Simple_int , Event , State >::_entry [protected, inherited]
 

Definition at line 407 of file fsa.H.

Referenced by Pen::activate(), Simple_int::add_events(), Pen::deactivate(), FilmTrans::FilmTrans(), GEST_INT::GEST_INT(), invoke(), Pen::Pen(), Screen_pan_int::Screen_pan_int(), and Simple_int::Simple_int().

CCOLOR MMENU::_highlight_col [protected]
 

Definition at line 117 of file mmenu.H.

Referenced by move().

int FRAMEobs::_index [protected, inherited]
 

Definition at line 37 of file gel.H.

Referenced by FRAMEobs::getIndex(), and FRAMEobs::setIndex().

ARRAY<MMENUMenuItem> MMENU::_items [protected]
 

Definition at line 90 of file mmenu.H.

Referenced by add(), call(), clear(), move(), tick(), and up().

State Simple_int::_manip_move [protected, inherited]
 

Definition at line 35 of file manip.H.

Referenced by Simple_int::add_events(), FilmTrans::FilmTrans(), and Simple_int::Simple_int().

CCOLOR MMENU::_nhighlight_col [protected]
 

Definition at line 116 of file mmenu.H.

Referenced by tick().

int MMENU::_sel [protected]
 

Definition at line 103 of file mmenu.H.

Referenced by down(), move(), tick(), and up().

double MMENU::_t0 [protected]
 

Definition at line 112 of file mmenu.H.

Referenced by down().

VIEWptr MMENU::_view [protected]
 

Definition at line 111 of file mmenu.H.

Referenced by down(), and up().


The documentation for this class was generated from the following files:
Generated on Mon Sep 18 11:46:40 2006 for jot by  doxygen 1.4.4