DefaultDialog

Default dialog for simple messageboxes.

Constructors

this
this(Coordinate size, string source, dstring title, dstring[] message, dstring[] options, string[] values)
Undocumented in source.
this
this(Coordinate size, dstring title)
Undocumented in source.

Members

Functions

actionEvent
void actionEvent(Event ev)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

output
void delegate(Event ev) output;
Undocumented in source.

Inherited Members

From Window

elements
WindowElement[] elements;
mouseC
WindowElement[] mouseC;
keyboardC
WindowElement[] keyboardC;
scrollC
WindowElement[] scrollC;
Undocumented in source.
title
dstring title;
Undocumented in source.
draggedElement
WindowElement draggedElement;
Undocumented in source.
parent
IWindowHandler parent;
Undocumented in source.
output
BitmapDrawer output;
Undocumented in source.
header
int header;
Undocumented in source.
moveX
int moveX;
moveY
int moveY;
Undocumented in source.
fullUpdate
bool fullUpdate;
isActive
bool isActive;
Undocumented in source.
extraButtons
string[] extraButtons;
Undocumented in source.
position
Coordinate position;
Undocumented in source.
customStyle
StyleSheet customStyle;
Undocumented in source.
defaultStyle
StyleSheet defaultStyle;
Undocumented in source.
onDrawUpdate
void delegate() onDrawUpdate;
Undocumented in source.
getStyleSheet
StyleSheet getStyleSheet()

If the current window doesn't contain a custom StyleSheet, it gets from it's parent.

drawUpdate
void drawUpdate(WindowElement sender)

Updates the output of the elements.

addElement
void addElement(WindowElement we, int eventProperties)

Adds a new WindowElement with the given event properties.

removeElement
void removeElement(WindowElement we)

Removes the WindowElement if 'we' is found within its ranges, does nothing otherwise.

draw
void draw(bool drawHeaderOnly)

Draws the window. Intended to be used by the WindowHandler.

drawHeader
void drawHeader()

Draws the header.

active
bool active [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
active
bool active [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
setTitle
void setTitle(dstring s)
Undocumented in source. Be warned that the author may not have intended to support it.
getTitle
dstring getTitle()
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)

Detects where the mouse is clicked, then it either passes to an element, or tests whether the close button, an extra button was clicked, also tests for the header, which creates a drag event for moving the window.

passMouseDragEvent
void passMouseDragEvent(int x, int y, int relX, int relY, ubyte button)

Passes a mouseDragEvent if the user clicked on an element, held down the button, and moved the mouse.

passMouseMotionEvent
void passMouseMotionEvent(int x, int y, int relX, int relY, ubyte button)

Passes a mouseMotionEvent if the user moved the mouse.

close
void close()

Closes the window by calling the WindowHandler's closeWindow function.

passScrollEvent
void passScrollEvent(int wX, int wY, int x, int y)

Passes the scroll event to the element where the mouse pointer currently stands.

extraButtonEvent
void extraButtonEvent(int num, ubyte button, int state)

Called if an extra button was pressed.

passKeyboardEvent
void passKeyboardEvent(wchar c, int type, int x, int y)

Passes a keyboard event.

addParent
void addParent(IWindowHandler wh)

Adds a WindowHandler to the window.

getFocus
void getFocus()
Undocumented in source. Be warned that the author may not have intended to support it.
dropFocus
void dropFocus()
Undocumented in source. Be warned that the author may not have intended to support it.
getAbsolutePosition
Coordinate getAbsolutePosition(WindowElement sender)
Undocumented in source. Be warned that the author may not have intended to support it.
move
void move(int x, int y)

Moves the window to the exact location.

relMove
void relMove(int x, int y)

Moves the window by the given values.

setHeight
void setHeight(int y)

Sets the height of the window, also issues a redraw.

setWidth
void setWidth(int x)

Sets the width of the window, also issues a redraw.

setSize
void setSize(int x, int y)

Sets the size of the window, also issues a redraw.

getOutput
ABitmap getOutput [@property getter]

Returns the outputted bitmap. Can be overridden for 32 bit outputs.

clearArea
void clearArea(WindowElement sender)

Clears the background where the element is being drawn.

Meta