Protocol DScreenHandler

Declared in:
DScreenHandler.h

Protocol Description

The DScreenHandler protocol specifies methods that should be implemented by classes that receive events from a screen.

Last modified:
19-Jul-2008 (DScreenHandler.h)

Method Index

- (BOOL) keyPress :(DKey *) key :(int) state
Process the event that a key is pressed
Parameters:
key - the key
state - the state (DSH_KEY_..)
Returns:
continue processing events ?
- (BOOL) mouseButtonPress :(DKey *) button :(int) state
Process the event that a mouse button is pressed
Parameters:
button - the button
state - the state (DSH_BUTTON_..)
Returns:
continue processing events ?
- (BOOL) mouseMove :(unsigned) x :(unsigned) y
Process the event that the mouse is moved
Parameters:
x - the x position of the mouse
y - the y position of the mouse
Returns:
continue processing events ?
- (BOOL) screenFocus :(BOOL) focus
Process the event that the screen changed focus
Parameters:
focus - the focus status
Returns:
continue processing events ?
- (BOOL) screenRedraw :(unsigned) minX :(unsigned) maxX :(unsigned) minY :(unsigned) maxY
Process the event that the screen should be redrawn
Parameters:
minX - the minimum value for x
maxX - the maximum value for x
minY - the minimum value for y
maxY - the maximum value for y
Returns:
continue processing events ?
- (BOOL) screenResize :(unsigned) maxX :(unsigned) maxY
Process the event that the screen is resized
Parameters:
maxX - the new maximum value for x
maxY - the new maximum value for y
Returns:
continue processing events ?

generated 06-Sep-2008 by ObjcDoc 3.0.0