|
Class: EventMonitorView (private in EventMonitor
This class is only visible from within
EventMonitor.
Object
|
+--GraphicsMedium
|
+--DisplaySurface
|
+--SimpleView
|
+--View
|
+--EventMonitor::EventMonitorView
- Package:
- stx:libtool
- Category:
- Interface-Tools-Monitors
- Owner:
- EventMonitor
like xev - show events.
You can use this to check your keyboard mappings, for example.
start with:
EventMonitorView open
and watch the output on xterm.
Caveat:
This is one of the oldest apps inside ST/X. Don't look too deep into the code...
defaults
-
defaultExtent
-
(comment from inherited method)
return the default extent of my instances.
The value returned here is usually ignored, and
the value from preferredExtent taken instead.
-
defaultLabel
-
startup
-
isVisualStartable
-
yes, I can be started via double click in the browser
accessing
-
outputStream: aStream
-
-
showButtonMotionEvents
-
-
showButtonMotionEvents: aBoolean
-
-
showButtonPressReleaseEvents
-
-
showButtonPressReleaseEvents: aBoolean
-
-
showFocusEvents
-
-
showFocusEvents: aBoolean
-
-
showKeyEvents
-
-
showKeyEvents: aBoolean
-
-
showPointerEvents
-
-
showPointerEvents: aBoolean
-
-
showTimestamp
-
-
showTimestamp: aBoolean
-
drawing
-
redraw
-
(comment from inherited method)
redraw myself
if there is a model, this one shall redraw itself,
otherwise we cannot do much here - has to be redefined in subclasses
-
showEventTime
-
events
-
buttonMotion: state x: x y: y
-
(comment from inherited method)
button was moved
-
buttonMultiPress: button x: x y: y
-
(comment from inherited method)
button was pressed quickly again - check my components for a hit.
-
buttonPress: button x: x y: y
-
(comment from inherited method)
button was pressed - check my components for a hit.
-
buttonRelease: button x: x y: y
-
(comment from inherited method)
button was released - check my components for a hit.
-
configureX: x y: y width: newWidth height: newHeight
-
(comment from inherited method)
my size has changed by window manager action
-
coveredBy: coveringView
-
(comment from inherited method)
the receiver has been covered by another view;
we are not interested in that here (but see modalBox for more).
-
dispatchEvent: event withFocusOn: focusViewOrNil delegate: doDelegate
-
Timestamp now printOn:outputStream.
-
dropMessage: dropType data: dropData
-
-
focusIn
-
(comment from inherited method)
got keyboard focus - do nothing here
-
focusOut
-
(comment from inherited method)
lost keyboard focus (via the window manager).
Nothing done here
-
hasKeyboardFocus: aBoolen
-
(comment from inherited method)
notification from the windowGroup that I got the keyboardFocus.
-
key: key what: pressOrRelease x: x y: y
-
-
keyPress: key x: x y: y
-
(comment from inherited method)
a key has been pressed. If there are components,
pass it to the corresponding one.
Otherwise, forward it to the superview, if there is any.
-
keyRelease: key x: x y: y
-
(comment from inherited method)
a key has been released. If there are components,
pass it to the corresponding one.
Otherwise, do whatever my superclass would do.
-
mapped
-
(comment from inherited method)
the view has been mapped (by some outside
action - i.e. window manager de-iconified me)
-
pointerEnter: state x: x y: y
-
(comment from inherited method)
mouse pointer entered - request the keyboard focus (sometimes)
-
pointerLeave: state
-
(comment from inherited method)
mouse pointer left
-
printKeyInfoFor: key x: x y: y
-
-
sizeChanged: how from: oldExtentOrNil
-
my view has changed the size (not the contents)
-
unmapped
-
(comment from inherited method)
the view has been unmapped
(either by some outside action - i.e. window manager iconified me,
or due to unmapping of my parentView).
-
visibilityChange: how
-
(comment from inherited method)
the visibility of the view has changed (by some outside
action - i.e. window manager rearranged things).
Using this knowledge avoids useless redraw in obscured views.
initialization
-
initialize
-
(comment from inherited method)
must be called if redefined
realization
-
initEvents
-
self enableEvent:#structureNotify.
|