ocinput.h File Reference

#include <InterViews/input.h>
#include <InterViews/event.h>
#include <InterViews/handler.h>
Include dependency graph for ocinput.h:

Go to the source code of this file.

Defines

#define __HandlerCallback(T)   T_HandlerCallback
#define HandlerCallback(T)   __HandlerCallback(T)
#define __HandlerMemberFunction(T)   T_HandlerMemberFunction
#define HandlerMemberFunction(T)   __HandlerMemberFunction(T)
#define declareHandlerCallback(T)
#define implementHandlerCallback(T)

Functions

public Style *virtual ~StandardInputHandler ()
virtual void bind_select (Handler *h)
virtual void bind_adjust (Handler *h)
virtual void bind_menu (Handler *h)
virtual void move (const Event &e)
virtual void press (const Event &e)
virtual void drag (const Event &e)
virtual void release (const Event &e)
void mouse (int, const Event &)
void bind_move (EventButton eb, Handler *h)
void bind_press (EventButton eb, Handler *h)
void bind_drag (EventButton eb, Handler *h)
void bind_release (EventButton eb, Handler *h)
void bind (int, EventButton eb, Handler *h)
void remove_all (EventButton)

Variables

public StandardInputHandler
HandlerList * handlers_ [4]

Define Documentation

#define __HandlerCallback (  )     T_HandlerCallback
#define __HandlerMemberFunction (  )     T_HandlerMemberFunction
#define declareHandlerCallback (  ) 
Value:
typedef void (T::*HandlerMemberFunction(T))(Event&); \
class HandlerCallback(T) : public Handler { \
public: \
    HandlerCallback(T)(T*, HandlerMemberFunction(T)); \
    virtual ~HandlerCallback(T)(); \
\
    virtual void event(Event&); \
private: \
    T* obj_; \
    HandlerMemberFunction(T) func_; \
};
#define HandlerCallback (  )     __HandlerCallback(T)
#define HandlerMemberFunction (  )     __HandlerMemberFunction(T)
#define implementHandlerCallback (  ) 
Value:
HandlerCallback(T)::HandlerCallback(T)( \
    T* obj, HandlerMemberFunction(T) func \
) { \
    obj_ = obj; \
    func_ = func; \
} \
\
HandlerCallback(T)::~HandlerCallback(T)() { } \
\
void HandlerCallback(T)::event(Event& e) { \
    (obj_->*func_)(e); \
}

Function Documentation

void bind ( int  ,
EventButton  eb,
Handler *  h 
)
virtual void bind_adjust ( Handler *  h  )  [virtual]

References bind_press().

Here is the call graph for this function:

void bind_drag ( EventButton  eb,
Handler *  h 
)

References bind().

Here is the call graph for this function:

virtual void bind_menu ( Handler *  h  )  [virtual]

References bind_press().

Here is the call graph for this function:

void bind_move ( EventButton  eb,
Handler *  h 
)

References bind().

Here is the call graph for this function:

void bind_press ( EventButton  eb,
Handler *  h 
)

References bind().

Referenced by bind_adjust(), bind_menu(), and bind_select().

Here is the call graph for this function:

void bind_release ( EventButton  eb,
Handler *  h 
)

References bind().

Here is the call graph for this function:

virtual void bind_select ( Handler *  h  )  [virtual]

References bind_press().

Here is the call graph for this function:

virtual void drag ( const Event &  e  )  [virtual]

References mouse().

Here is the call graph for this function:

void mouse ( int  ,
const Event &   
)

Referenced by drag(), move(), press(), and release().

virtual void move ( const Event &  e  )  [virtual]

References mouse().

Here is the call graph for this function:

virtual void press ( const Event &  e  )  [virtual]

References mouse().

Here is the call graph for this function:

virtual void release ( const Event &  e  )  [virtual]

References mouse().

Here is the call graph for this function:

void remove_all ( EventButton   ) 
public Style* virtual ~StandardInputHandler (  )  [virtual]
Type Constraints

Variable Documentation

HandlerList* handlers_[4]
Generated on Mon Jun 13 08:10:28 2011 for NEURON by  doxygen 1.6.3