#include <uctlmenu.hpp>
Inheritance diagram for ubit::UScrollAction:
Public Member Functions | |
UScrollAction (float xmag=0.3, float ymag=0.3) | |
UScrollAction (UScrollpane &, float xmag=0.3, float ymag=0.3) | |
void | setPane (UScrollpane &) |
UScrollpane * | getPane () const |
Protected Member Functions | |
virtual void | mdrag (UMouseEvent &, UCtlmenu &) |
called when the mouse is dragged (must be redefined by subclasses). | |
Protected Attributes | |
UScrollpane * | pane |
float | arm_xpos |
float | arm_ypos |
float | xpos |
float | ypos |
void ubit::UScrollAction::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.