mrpan__define.pro
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.
mrPan::init
Syntax:
x = obj_new('mrPan')
Description:
The init function. Does nothing in this case.
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)
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
mrPan::unregister
Description:
unregisters with a mrdisplay object. It is a good idea to unregister
before destroying the mrdisplay object.
mrPan::mrDisplayEvtHandler
Arguments:
mrDisplayEvt *evt : pointer to the mrdisplay event structure
Description:
Dispatch the event coming from mrdisplay
mrPan::buttonDblClickEvt
Arguments:
Description:
center image (independent of current scaling)
mrPan::buttonPressEvt
Arguments:
Description:
switch possible interpolation of while scrolling
mrPan::buttonReleaseEvt
Arguments:
Description:
if interpolation was switched of during scrolling, now switch it
on again
mrPan::buttonMotionEvt
Arguments:
mrDisplayEvt *evt : pointer to the mrdisplay event structure
Description:
move the image position in display
mrPan__define
Type:
Private Procedure (constructor)