mrpan__define.pro


Name:
mrpan
Methods:
Constructor
mrPan::init                : constructor, part II

Event handling
mrPan::selfregister        : register with a display object
mrPan::unregister          : unregister

Private
mrPan::mrDisplayEvtHandler : the event handler and broker for mr*display
mrPan::buttonDblClickEvt   : handling of double clicks
mrPan::buttonPressEvt      : handling of button presses
mrPan::buttonReleaseEvt    : handling of button release
mrPan::buttonMotionEvt     : handling of motion while button pressed
mrPan__define              : the constructor
mrPan::cleanup             : the destructor
Description:
A plugin object for mrdisplay which provides scrolling (i.e. movement
of the image) functionality. See mrzoom, which works similar, for a
code example.
To speed up things on slow computers, interpolation is switched off
while scrolling the image.

Name:
mrPan::init
Syntax:
x = obj_new('mrPan')
Description:
The init function. Does nothing in this case.

Name:
mrPan::cleanup
Type:
Private procedure
Description:
unregister from the display object during cleanup. For this reason,
it is a good idea to destroy the mrpan object before destroying
the associated mrdisplay object (or unregister explicitly)

Name:
mrPan::selfregister
Syntax:
obj->selfregister, display, button=int, /noborder
Arguments:
display
The mrdisplay object to register with.
button
The button number upon which to zoom; left=1 (def), middle=2, right=3
noborder
If set, mouse events in the right 15% of the mrDisplay object are
ignored. To be combined with the corresponding /border option
or mrZoom. When /noborder is set, button should be set to '2'
Description:
Register with an mrDisplay object

Name:
mrPan::unregister
Description:
unregisters with a mrdisplay object. It is a good idea to unregister
before destroying the mrdisplay object.

Name:
mrPan::mrDisplayEvtHandler
Arguments:
mrDisplayEvt *evt : pointer to the mrdisplay event structure
Description:
Dispatch the event coming from mrdisplay

Name:
mrPan::buttonDblClickEvt
Arguments:
mrdisplayEvt *evt : pointer to the mrdisplay event structure
Description:
center image (independent of current scaling)

Name:
mrPan::buttonPressEvt
Arguments:
mrdisplayEvt *evt : pointer to the mrdisplay event structure
Description:
switch possible interpolation of while scrolling

Name:
mrPan::buttonReleaseEvt
Arguments:
mrdisplayEvt *evt : pointer to the mrdisplay event structure
Description:
if interpolation was switched of during scrolling, now switch it
on again

Name:
mrPan::buttonMotionEvt
Arguments:
mrDisplayEvt *evt : pointer to the mrdisplay event structure
Description:
move the image position in display

Name:
mrPan__define
Type:
Private Procedure (constructor)

Last modified: Mon Nov 29 13:30:07 2004