#include <uctlmenu.hpp>
Inheritance diagram for ubit::UPanAction:
Public Member Functions | |
UPanAction (UPos &, UBox &moving_area, float xmag=1., float ymag=1.) | |
Protected Member Functions | |
virtual void | mdrag (UMouseEvent &, UCtlmenu &) |
called when the mouse is dragged (must be redefined by subclasses). | |
Protected Attributes | |
UPos * | pos |
UBox * | moving_area |
float | arm_xpos |
float | arm_ypos |
float | xpos |
float | ypos |
void ubit::UPanAction::mdrag | ( | UMouseEvent & | , | |
UCtlmenu & | ||||
) | [protected, virtual] |
called when the mouse is dragged (must be redefined by subclasses).
This method is called repeatedly when one of the menu items has been selected and the mouse is being dragged. Note that e.isFirstDrag() returns true at the beginning of a drag sequence.
Implements ubit::UCtlAction.