|
Class: InputView
Object
|
+--GraphicsMedium
|
+--DisplaySurface
|
+--SimpleView
|
+--InputView
- Package:
- stx:libview2
- Category:
- Views-Special
- Version:
- rev:
1.23
date: 2016/11/04 12:39:35
- user: cg
- file: InputView.st directory: libview2
- module: stx stc-classLibrary: libview2
- Author:
- Claus Gittinger
a view for input only - forwarding all events to another object.
This kind of view can be used to be laid on top of another view to catch all
input. (Interface builder)
NOTICE: the event forwarding is a leftover from times when not delegation mechanism
existed - it will vanish - use delegates for new code.
accessing
-
eventReceiver: aView
-
set the view to which input events are forwarded
-
isInputOnly
-
return true, since this is a transparent input-only view
drag & drop
-
canDrop: aDropContext
-
return true, if aCollectionOfDropObjects can be dropped here.
Delegated to my eventReceiving view
-
canDrop: aDropContext at: aPoint
-
return true, if aCollectionOfDropObjects can be dropped here.
Delegated to my eventReceiving view
-
canDropObjects: aCollectionOfDropObjects
-
return true, if aCollectionOfDropObjects can be dropped here.
Delegated to my eventReceiving view
-
canDropObjects: aCollectionOfDropObjects at: aPoint
-
return true, if aCollectionOfDropObjects can be dropped here.
Delegated to my eventReceiving view
-
drop: aDropContext
-
drop aCollectionOfDropObjects here.
Delegated to my eventReceiving view
-
drop: aDropContext at: aPoint
-
drop aCollectionOfDropObjects here.
Delegated to my eventReceiving view
-
dropObjects: aCollectionOfDropObjects
-
drop aCollectionOfDropObjects here.
Delegated to my eventReceiving view
-
dropObjects: aCollectionOfDropObjects at: aPoint
-
drop aCollectionOfDropObjects here.
Delegated to my eventReceiving view
event handling
-
buttonMotion: state x: x y: y
-
redefined to forward the event to my eventReceiver
-
buttonPress: button x: x y: y
-
redefined to forward the event to my eventReceiver
-
buttonRelease: button x: x y: y
-
redefined to forward the event to my eventReceiver
-
exposeX: x y: y width: w height: h
-
dummy - will never be received
-
focusIn
-
redefined to forward the event to my eventReceiver
-
focusOut
-
redefined to forward the event to my eventReceiver
-
keyPress: key x: x y: y
-
redefined to forward the event to my eventReceiver
-
keyRelease: key x: x y: y
-
redefined to forward the event to my eventReceiver
-
pointerEnter: state x: x y: y
-
redefined to forward the event to my eventReceiver
-
pointerLeave: state
-
redefined to forward the event to my eventReceiver
initialization
-
initialize
-
redefined dummy
-
setViewBackground
-
dummy - inputviews have no background
|