ubit::UZoomAction Class Reference

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

#include <uctlmenu.hpp>

Inheritance diagram for ubit::UZoomAction:

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

Public Member Functions

 UZoomAction (UScale &, 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

UScalescale
UPospos
UBoxbox
float delta
float pos_x0
float pos_y0
float open_x0
float open_y0
float scale0
float mouse_delta

Detailed Description

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


Member Function Documentation

void ubit::UZoomAction::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