ubit::UCtlAction Class Reference

Callback object for UCtlmenu items (base class). More...

#include <uctlmenu.hpp>

Inheritance diagram for ubit::UCtlAction:

ubit::UCall ubit::UBrick ubit::UObject ubit::UPanAction ubit::UScrollAction ubit::UZoomAction List of all members.

Public Member Functions

 UCtlAction (float _xmag, float _ymag)
virtual void setMag (float _xmag, float _ymag)
float getXMag () const
float getYMag () const

Protected Member Functions

virtual void mdrag (UMouseEvent &e, UCtlmenu &)=0
 called when the mouse is dragged (must be redefined by subclasses).
virtual void operator() (UEvent &)
 [impl] calls mdrag() with appropriate arguments (no need to redefine this method).
virtual void addingTo (UChild *, UGroup *parent)
 [impl] adds the UOn::mdrag event condition (no need to redefine this method).

Protected Attributes

float xmag
float ymag

Detailed Description

Callback object for UCtlmenu items (base class).

This class is intended to be subclassed by implementation classes that redefine the mdrag() method.


Member Function Documentation

virtual void ubit::UCtlAction::mdrag ( UMouseEvent e,
UCtlmenu  
) [protected, pure 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,

Implemented in ubit::UScrollAction, ubit::UPanAction, and ubit::UZoomAction.


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