WindowHandler

Handles windows as well as PopUpElements.

class WindowHandler : InputListener , MouseListener , IWindowHandler {}

Constructors

this
this(int sx, int sy, int rx, int ry, ISpriteLayer sl)
Undocumented in source.

Members

Functions

addBackground
void addBackground(ABitmap b)
Undocumented in source. Be warned that the author may not have intended to support it.
addPopUpElement
void addPopUpElement(PopUpElement p)
Undocumented in source. Be warned that the author may not have intended to support it.
addPopUpElement
void addPopUpElement(PopUpElement p, int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
addWindow
void addWindow(Window w)
Undocumented in source. Be warned that the author may not have intended to support it.
closePopUp
void closePopUp(PopUpElement p)
Undocumented in source. Be warned that the author may not have intended to support it.
closeWindow
void closeWindow(Window sender)
Undocumented in source. Be warned that the author may not have intended to support it.
drawUpdate
void drawUpdate(WindowElement sender)
Undocumented in source. Be warned that the author may not have intended to support it.
drawUpdate
void drawUpdate(Window sender)
Undocumented in source. Be warned that the author may not have intended to support it.
dropFocus
void dropFocus(WindowElement sender)
Undocumented in source. Be warned that the author may not have intended to support it.
endPopUpSession
void endPopUpSession()
Undocumented in source. Be warned that the author may not have intended to support it.
getDefaultStyleSheet
StyleSheet getDefaultStyleSheet()
Undocumented in source. Be warned that the author may not have intended to support it.
getFocus
void getFocus(WindowElement sender)
Undocumented in source. Be warned that the author may not have intended to support it.
getStyleSheet
StyleSheet getStyleSheet()
Undocumented in source. Be warned that the author may not have intended to support it.
keyPressed
void keyPressed(string ID, Uint32 timestamp, Uint32 devicenumber, Uint32 devicetype)
Undocumented in source. Be warned that the author may not have intended to support it.
keyReleased
void keyReleased(string ID, Uint32 timestamp, Uint32 devicenumber, Uint32 devicetype)
Undocumented in source. Be warned that the author may not have intended to support it.
messageWindow
void messageWindow(wstring title, wstring message, int width)

Adds a DefaultDialog as a message box

mouseButtonEvent
void mouseButtonEvent(uint which, uint timestamp, uint windowID, ubyte button, ubyte state, ubyte clicks, int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
mouseMotionEvent
void mouseMotionEvent(uint timestamp, uint windowID, uint which, uint state, int x, int y, int relX, int relY)
Undocumented in source. Be warned that the author may not have intended to support it.
mouseWheelEvent
void mouseWheelEvent(uint type, uint timestamp, uint windowID, uint which, int x, int y, int wX, int wY)
Undocumented in source. Be warned that the author may not have intended to support it.
moveUpdate
void moveUpdate(Window sender)
Undocumented in source. Be warned that the author may not have intended to support it.
moveWindow
void moveWindow(int x, int y, Window w)
Undocumented in source. Be warned that the author may not have intended to support it.
passMouseDragEvent
void passMouseDragEvent(int x, int y, int relX, int relY, ubyte button)
Undocumented in source. Be warned that the author may not have intended to support it.
passMouseEvent
void passMouseEvent(int x, int y, int state, ubyte button)
Undocumented in source. Be warned that the author may not have intended to support it.
passMouseMotionEvent
void passMouseMotionEvent(int x, int y, int relX, int relY, ubyte button)
Undocumented in source. Be warned that the author may not have intended to support it.
passScrollEvent
void passScrollEvent(int wX, int wY, int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
relMoveWindow
void relMoveWindow(int x, int y, Window w)
Undocumented in source. Be warned that the author may not have intended to support it.
setWindowToTop
void setWindowToTop(Window sender)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

defaultStyle
StyleSheet defaultStyle;
mouseX
int mouseX;
mouseY
int mouseY;
moveX
int moveX;
moveY
int moveY;
rasterX
int rasterX;
rasterY
int rasterY;
Undocumented in source.
screenX
int screenX;
screenY
int screenY;
Undocumented in source.

Inherited Members

From InputListener

keyPressed
void keyPressed(string ID, uint timestamp, uint devicenumber, uint devicetype)
Undocumented in source.
keyReleased
void keyReleased(string ID, uint timestamp, uint devicenumber, uint devicetype)
Undocumented in source.

From MouseListener

mouseButtonEvent
void mouseButtonEvent(uint which, uint timestamp, uint windowID, ubyte button, ubyte state, ubyte clicks, int x, int y)
Undocumented in source.
mouseWheelEvent
void mouseWheelEvent(uint type, uint timestamp, uint windowID, uint which, int x, int y, int wX, int wY)
Undocumented in source.
mouseMotionEvent
void mouseMotionEvent(uint timestamp, uint windowID, uint which, uint state, int x, int y, int relX, int relY)
Undocumented in source.

From IWindowHandler

getStyleSheet
StyleSheet getStyleSheet()
Undocumented in source.
closeWindow
void closeWindow(Window sender)
Undocumented in source.
moveUpdate
void moveUpdate(Window sender)
Undocumented in source.
setWindowToTop
void setWindowToTop(Window sender)
Undocumented in source.
addWindow
void addWindow(Window w)
Undocumented in source.
moveWindow
void moveWindow(int x, int y, Window w)
Undocumented in source.
relMoveWindow
void relMoveWindow(int x, int y, Window w)
Undocumented in source.
drawUpdate
void drawUpdate(Window sender)
Undocumented in source.
messageWindow
void messageWindow(wstring title, wstring message, int width)
Undocumented in source.

Meta