eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'EventMonitor::EventMonitorView':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: EventMonitorView (private in EventMonitor

This class is only visible from within EventMonitor.

Inheritance:

   Object
   |
   +--GraphicsMedium
      |
      +--DisplaySurface
         |
         +--SimpleView
            |
            +--View
               |
               +--EventMonitor::EventMonitorView

Package:
stx:libtool
Category:
Monitors-ST/X
Owner:
EventMonitor

Description:


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.

This is one of the oldest apps inside ST/X. Don't look too deep into the code...


Class protocol:

defaults
o  defaultExtent

o  defaultLabel

startup
o  isVisualStartable


Instance protocol:

accessing
o  outputStream: aStream

o  showButtonMotion

o  showButtonMotion: aBoolean

o  showFocusEvents

o  showFocusEvents: aBoolean

o  showTimestamp

o  showTimestamp: aBoolean

drawing
o  redraw

o  showEventTime

events
o  buttonMotion: state x: x y: y
(comment from inherited method)
button was moved

o  buttonMultiPress: button x: x y: y
(comment from inherited method)
button was pressed quickly again - check my components for a hit.

o  buttonPress: button x: x y: y
(comment from inherited method)
button was pressed - check my components for a hit.

o  buttonRelease: button x: x y: y
(comment from inherited method)
button was released - check my components for a hit.

o  configureX: x y: y width: newWidth height: newHeight
(comment from inherited method)
my size has changed by window manager action

o  coveredBy: coveringView

o  dispatchEvent: event withFocusOn: focusViewOrNil delegate: doDelegate
Timestamp now printOn:outputStream.

o  dropMessage: dropType data: dropData

o  focusIn
(comment from inherited method)
got keyboard focus (via the window manager).
Nothing done here

o  focusOut
(comment from inherited method)
lost keyboard focus (via the window manager).
Nothing done here

o  hasKeyboardFocus: aBoolen
(comment from inherited method)
notification from the windowGroup that I got the keyboardFocus.

o  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.

o  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.

o  mapped
(comment from inherited method)
the view has been mapped (by some outside
action - i.e. window manager de-iconified me)

o  pointerEnter: state x: x y: y
(comment from inherited method)
mouse pointer entered - request the keyboard focus (sometimes)

o  pointerLeave: state
(comment from inherited method)
mouse pointer left

o  sizeChanged: how
(comment from inherited method)
tell subviews that I changed size.
How is either #smaller, #larger or nil, and is used to control the order,
in which subviews are notified (possibly reducing redraw activity)

o  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).

o  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
o  initialize

realization
o  initEvents
self enableEvent:#structureNotify.



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Thu, 28 Mar 2024 19:19:08 GMT