EventHandler

Undocumented in source.

Constructors

this
this(tida.window.Window window)
Undocumented in source.

Members

Functions

isInputText
bool isInputText()
Undocumented in source. Be warned that the author may not have intended to support it.
isKeyDown
bool isKeyDown()
Undocumented in source. Be warned that the author may not have intended to support it.
isKeyUp
bool isKeyUp()
Undocumented in source. Be warned that the author may not have intended to support it.
isMouseDown
bool isMouseDown()
Undocumented in source. Be warned that the author may not have intended to support it.
isMouseUp
bool isMouseUp()
Undocumented in source. Be warned that the author may not have intended to support it.
isQuit
bool isQuit()
Undocumented in source. Be warned that the author may not have intended to support it.
isResize
bool isResize()
Undocumented in source. Be warned that the author may not have intended to support it.
newSizeWindow
uint[2] newSizeWindow()
Undocumented in source. Be warned that the author may not have intended to support it.
nextEvent
bool nextEvent()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

inputChar
string inputChar [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
key
int key [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
mouseButton
MouseButton mouseButton [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
mousePosition
int[2] mousePosition [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
mouseWheel
int mouseWheel [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

event
XEvent event;
Undocumented in source.

Inherited Members

From IEventHandler

nextEvent
bool nextEvent()

Moves to the next event. If there are no more events, it returns false, otherwise, it throws true and the programmer can safely check which event s in the current queue.

isKeyDown
bool isKeyDown()

Checking if any key is pressed in the current event.

isKeyUp
bool isKeyUp()

Checking if any key is released in the current event.

key
int key [@property getter]

Will return the key that was pressed. Returns zero if no key is pressed in the current event.

keyDown
int keyDown [@property getter]

Returns the key at the moment the key was pressed, otherwise it returns zero.

keyUp
int keyUp [@property getter]

Returns the key at the moment the key was released, otherwise it returns zero.

isMouseDown
bool isMouseDown()

Check if the mouse button is pressed in the current event.

isMouseUp
bool isMouseUp()

Check if the mouse button is released in the current event.

mouseButton
MouseButton mouseButton [@property getter]

Returns the currently pressed or released mouse button.

mouseDownButton
MouseButton mouseDownButton [@property getter]

Returns the mouse button at the moment the key was pressed; otherwise, it returns zero.

mouseUpButton
MouseButton mouseUpButton [@property getter]

Returns the mouse button at the moment the key was released; otherwise, it returns zero.

mousePosition
int[2] mousePosition [@property getter]

Returns the position of the mouse in the window.

mouseWheel
int mouseWheel [@property getter]

Returns in which direction the user is turning the mouse wheel. 1 - down, -1 - up, 0 - does not twist.

isResize
bool isResize()

Indicates whether the window has been resized in this event.

isQuit
bool isQuit()

Indicates whether the user is attempting to exit the program.

isInputText
bool isInputText()

Indicates whether the user has entered text information.

inputChar
string inputChar [@property getter]

User entered data.

opApply
int opApply(int delegate(ref int) dg)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta