ubit::UScrollAction Class Reference

Callback object for UCtlmenu items (for scrolling a UScrollpane). More...

#include <uctlmenu.hpp>

Inheritance diagram for ubit::UScrollAction:

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

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 &)
UScrollpanegetPane () const

Protected Member Functions

virtual void mdrag (UMouseEvent &, UCtlmenu &)
 called when the mouse is dragged (must be redefined by subclasses).

Protected Attributes

UScrollpanepane
float arm_xpos
float arm_ypos
float xpos
float ypos

Detailed Description

Callback object for UCtlmenu items (for scrolling a UScrollpane).


Member Function Documentation

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.

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