Inherits From:
SCEventHandler : NSObject
Conforms To:
NSCoding
Declared In:
Sc21/SCExaminerHandler.h
Note that the mouse + modifier key combinations are most easily configured through the associated InterfaceBuilder inspector.
disablePanButton
Disable panning by clicking and dragging.
disableRotateButton
Disable rotating by clicking and dragging.
disableZoomButton
Disable zooming by clicking and dragging.
Note that this does not affect zooming via the mouse wheel.
getPanButton:(int*)buttonNr modifier:(unsigned int*)modifierFlags
Get the mouse button and modifier key(s) used for panning.
getRotateButton:(int*)buttonNr modifier:(unsigned int*)modifierFlags
Get the mouse button and modifier key(s) used for rotating.
getZoomButton:(int*)buttonNr modifier:(unsigned int*)modifierFlags
Get the mouse button and modifier key(s) used for zooming.
panButtonIsEnabled
Returns YES if panning by clicking and dragging is enabled.
rotateButtonIsEnabled
Returns YES if rotating by clicking and dragging is enabled.
scrollWheelZoomEnabled
Returns YES if the mouse wheel can be used for zooming, and NO
otherwise.
Note that this only reports whether Sc21 is set up to use the mouse wheel. You cannot use this method to check if a mouse wheel is present at runtime or not.
setPanButton:(int)buttonNr modifier:(unsigned int)modifierFlags
Set the mouse button and modifier key(s) used for panning.
setRotateButton:(int)buttonNr modifier:(unsigned int)modifierFlags
Set the mouse button and modifier key(s) used for rotating.
setScrollWheelZoomEnabled:(BOOL)enabled
Pass YES to enable scrolling by using the mouse wheel (if
present).
setSpinEnabled:(BOOL)enabled
Pass YES to enable "spinning" (i.e. starting a continuous
animation by dragging and then releasing).
setZoomButton:(int)buttonNr modifier:(unsigned int)modifierFlags
Set the mouse button and modifier key(s) used for zooming.
spinEnabled
Returns YES if spinning is enabled, and NO otherwise.
zoomButtonIsEnabled
Returns YES if zooming by clicking and dragging is enabled.
Note that this does not affect zooming via the mouse wheel.