ubit::UPanAction Class Reference

Callback object for UCtlmenu items (for panning a UBox). More...

#include <uctlmenu.hpp>

Inheritance diagram for ubit::UPanAction:

ubit::UCtlAction ubit::UCall ubit::UBrick ubit::UObject List of all members.

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

UPospos
UBoxmoving_area
float arm_xpos
float arm_ypos
float xpos
float ypos

Detailed Description

Callback object for UCtlmenu items (for panning a UBox).


Member Function Documentation

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.

See also:
: UCtlmenu::item() for details,

Implements ubit::UCtlAction.


The documentation for this class was generated from the following files:
Generated on Mon Jan 29 00:20:47 2007 for Ubit by  doxygen 1.4.7