Window

A window component.

Constructors

this
this(string name, dstring title, Size size, size_t layers = 1)

Creates a new window.

Members

Functions

changeCursorPosition
void changeCursorPosition(Point position)

Changes the cursor position.

close
void close()

Closes the window.

process
void process()

Processes the window cycle.

sendKeyInput
void sendKeyInput(Keyboard.Key key)

Sends a key input through memory.

sendMouseInput
void sendMouseInput(Mouse.Button button, Point position)

Sends a mouse input through memory.

show
void show()

Shows the window.

Properties

cursorVisible
bool cursorVisible [@property getter]

Gets a boolean determining whether the cursor is visible or not.

cursorVisible
bool cursorVisible [@property setter]

Sets a boolean determining whether the cursor is visible or not.

fps
uint fps [@property getter]

Gets the fps of the window.

fps
uint fps [@property setter]

Sets the fps of the window.

hidden
bool hidden [@property setter]

Gets or sets a boolean determining whether the window is hidden or not.

isOpen
bool isOpen [@property getter]

Gets a boolean determining whether the window is open or not.

parentWindow
Window parentWindow [@property getter]

Gets the parent window.

title
dstring title [@property getter]

Gets the title of the window.

title
dstring title [@property setter]

Sets the title of the window.

Variables

_windowComponents
Component[size_t] _windowComponents;

Components for event handling

Inherited Members

From Container

disabled
bool disabled [@property getter]

Gets a boolean determining whether the container is disabled or not.

disabled
bool disabled [@property setter]

Sets a boolean determining whether the container is disabled or not.

add
void add(Component child, size_t layer)

Adds a component to the container.

add
void add(Component[] components, size_t layer)

Adds an array of components to the container.

remove
void remove(Component child)

Removes a component from the container.

remove
void remove(string name)

Removes a component from the container.

clear
void clear()

Clears the component for children.

clear
void clear(size_t layer)

Clears the components for a specific layer.

process
void process(RenderWindow window)

Processes the container during application cycles.

Meta