MouseManager Class Reference
 
 
 
MouseManager Class Reference

#include <mouseman.h>

Inheritance diagram for MouseManager:
BaseInterfaceServer InterfaceServer MaxHeapOperators

Class Description

Represents the interface to the mouse manager and handling system and is used internally only. This class should not be instanced directly into plugin code. To retrieve a pointer to the mouse manager you can use the method Interface::GetMouseManager().

See also:
BaseInterfaceServer, MouseCallBack, Interface

Public Member Functions

CoreExport  MouseManager ()
CoreExport  ~MouseManager ()
CoreExport int  SetMouseProc (MouseCallBack *mproc, int button, int numPoints=2)
CoreExport int  SetDragMode (int mode)
CoreExport int  GetDragMode ()
CoreExport int  SetNumPoints (int numPoints, int button)
CoreExport int  ButtonFlags ()
CoreExport void  Pan (IPoint2 p)
CoreExport LRESULT CALLBACK  MouseWinProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
CoreExport void  Reset ()
int  GetMouseMode ()
CoreExport void  SetCapture (HWND hWnd)
CoreExport HWND  HasCapture ()
CoreExport void  ReleaseCapture ()
CoreExport void  RestoreCapture ()
CoreExport void  SetMouseWindProcCallback (WNDPROC pMouseWindProc)
WNDPROC  GetMouseWindProcCallback () const
CoreExport MouseCallBack GetMouseProc (int button)
  To get a mouse callback when the button index was indicated by SetMouseProc function.

Friends

class  MouseManagerStateInterface
class  MouseOverride

Constructor & Destructor Documentation

CoreExport MouseManager ( )
CoreExport ~MouseManager ( )

Member Function Documentation

CoreExport int SetMouseProc ( MouseCallBack mproc,
int  button,
int  numPoints = 2 
)
CoreExport int SetDragMode ( int  mode )
CoreExport int GetDragMode ( )
CoreExport int SetNumPoints ( int  numPoints,
int  button 
)
CoreExport int ButtonFlags ( )
CoreExport void Pan ( IPoint2  p )
CoreExport LRESULT CALLBACK MouseWinProc ( HWND  hwnd,
UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)
CoreExport void Reset ( )
int GetMouseMode ( ) [inline]
{return mouseMode;}
CoreExport void SetCapture ( HWND  hWnd )
CoreExport HWND HasCapture ( )
CoreExport void ReleaseCapture ( )
CoreExport void RestoreCapture ( )
CoreExport void SetMouseWindProcCallback ( WNDPROC  pMouseWindProc ) [inline]
        { mpMouseWindProc = pMouseWindProc; }
WNDPROC GetMouseWindProcCallback ( ) const [inline]
        { return mpMouseWindProc; }
CoreExport MouseCallBack* GetMouseProc ( int  button )

To get a mouse callback when the button index was indicated by SetMouseProc function.

Parameters:
button The button index maps one mouse button.
Returns:
a mouse callback corresponding to the given button index. If an invalid button index is given, the corresponding mouse callback will be NULL.

Friends And Related Function Documentation

friend class MouseManagerStateInterface [friend]
friend class MouseOverride [friend]