Rhino C++ API
8.17
|
#include <rhinoSdkMouse.h>
Public Types | |
enum | mouse_button { no_mouse_button = 0, left_mouse_button = 1, right_mouse_button = 2, middle_mouse_button = 3, x_mouse_button = 4 } |
Public Member Functions | |
CRhinoMouseCallback ()=default | |
virtual | ~CRhinoMouseCallback () |
void | Enable (bool enabled) |
bool | IsEnabled () const |
Returns TRUE if the mouse callback is enabled. More... | |
virtual void | OnBeginMouseDown (unsigned int viewSerialNumber, mouse_button button, UINT flags, const ON_2iPoint &point, bool &executeDefaultHandler) |
Called at the beginning of CRhinoView processing a mouse down event. More... | |
virtual void | OnBeginMouseMove (unsigned int viewSerialNumber, UINT flags, const ON_2iPoint &point, bool &executeDefaultHandler) |
Called at the beginning of CRhinoView processing a mouse move event. More... | |
virtual void | OnBeginMouseUp (unsigned int viewSerialNumber, mouse_button button, UINT flags, const ON_2iPoint &point, bool &executeDefaultHandler) |
Called at the beginning of CRhinoView processing a mouse up event. More... | |
virtual BOOL32 | OnMouseDblClk (CRhinoView &, CRhinoMouseCallback::mouse_button, UINT, const ON_2iPoint &) |
virtual void | OnMouseDown (unsigned int viewSerialNumber, mouse_button button, UINT flags, const ON_2iPoint &point, bool defaultHandlerExecuted) |
Called at the end of CRhinoView processing a mouse down event. More... | |
virtual void | OnMouseMove (unsigned int viewSerialNumber, UINT flags, const ON_2iPoint &point, bool defaultHandlerExecuted) |
Called at the end of CRhinoView processing a mouse move event. More... | |
virtual void | OnMouseUp (unsigned int viewSerialNumber, mouse_button button, UINT flags, const ON_2iPoint &point, bool defaultHandlerExecuted) |
Called at the end of CRhinoView processing a mouse up event. More... | |
Protected Attributes | |
class CRhMouseCallbackManager * | m_cbm = nullptr |
Copyright (c) 1993-2017 Robert McNeel & Associates. All rights reserved. Rhinoceros is a registered trademark of Robert McNeel & Associates.
THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY. ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR PURPOSE AND OF MERCHANTABILITY ARE HEREBY DISCLAIMED.
For complete Rhino SDK copyright information see http://www.rhino3d.com/developer.
|
default |
|
virtual |
void CRhinoMouseCallback::Enable | ( | bool | enabled | ) |
When constructed, the mouse callback is not enabled. After Enable(true) is called, all mouse event pass through the callback. Calling Enable(false) or destroying the class disables the callback.
bool CRhinoMouseCallback::IsEnabled | ( | ) | const |
Returns TRUE if the mouse callback is enabled.
|
virtual |
Called at the beginning of CRhinoView processing a mouse down event.
Reimplemented in RhRdk::Realtime::DisplayMode.
|
virtual |
Called at the beginning of CRhinoView processing a mouse move event.
|
virtual |
Called at the beginning of CRhinoView processing a mouse up event.
Reimplemented in RhRdk::Realtime::DisplayMode.
|
virtual |
Override if you want to handle mouse double click events. If you return TRUE, the default handler is not called. If you return FALSE, the default OnMouseDblClick() handler is called.
Reimplemented in RhRdk::Realtime::DisplayMode.
|
virtual |
Called at the end of CRhinoView processing a mouse down event.
Reimplemented in RhRdk::Realtime::DisplayMode.
|
virtual |
Called at the end of CRhinoView processing a mouse move event.
Reimplemented in RhRdk::Realtime::DisplayMode.
|
virtual |
Called at the end of CRhinoView processing a mouse up event.
Reimplemented in RhRdk::Realtime::DisplayMode.
|
protected |