TimedText

Wrapper around timed text, which is text that is gradually rendered over time.

Constructors

this
this()

Creates a new timed text component.

Members

Functions

refresh
void refresh(size_t width, size_t height)

See: Component.refresh()

render
void render(RenderWindow window)

See: Component.render()

updatePosition
void updatePosition()

See: Component.updatePosition()

updateSize
void updateSize()

See: Component.updateSize()

Properties

color
Color color [@property getter]

Gets the color.

color
Color color [@property setter]

Sets the color.

fontName
string fontName [@property getter]

Gets the font name.

fontName
string fontName [@property setter]

Sets the font name.

fontSize
uint fontSize [@property getter]

Gets the font size.

fontSize
uint fontSize [@property setter]

Sets the font size.

text
dstring text [@property getter]

Gets the text.

text
dstring text [@property setter]

Sets the text.

Variables

globalMouseReleaseTextFinished
Queue!_DELEGATE globalMouseReleaseTextFinished;

A queue of handlers for when the text has finished rendering by mouse release.

Inherited Members

From Component

position
Vector2f position [@property getter]

Gets the position.

position
Vector2f position [@property setter]

Sets the position.

x
ptrdiff_t x [@property getter]

Gets the x coordinate.

y
ptrdiff_t y [@property getter]

Gets the y coordinate.

size
Vector2f size [@property getter]

Gets the size.

size
Vector2f size [@property setter]

Sets the size.

width
ptrdiff_t width [@property getter]

Gets the width.

height
ptrdiff_t height [@property getter]

Gets the height.

intersect
bool intersect(Vector2f p)

Checks whether the component intersects with a specific point.

updateInternalPosition
void updateInternalPosition(Vector2f position)

Updates the internal position. Use this to avoid event handling.

globalMousePress
void delegate(MouseButton button, ref bool stopEvent) globalMousePress;

Handler for global mouse press events.

globalMouseRelease
void delegate(MouseButton button, ref bool stopEvent) globalMouseRelease;

Handler for global mouse release events.

globalMouseMove
void delegate(Vector2f position, ref bool stopEvent) globalMouseMove;

Handler for global mouse movement events.

globalKeyPress
void delegate(Key key, ref bool stopEvent) globalKeyPress;

Handler for global key press events.

globalKeyRelease
void delegate(Key key, ref bool stopEvent) globalKeyRelease;

Handler for global key release events.

mousePress
void delegate(MouseButton button, ref bool stopEvent) mousePress;

Handler for mouse press events.

mouseRelease
void delegate(MouseButton button, ref bool stopEvent) mouseRelease;

Handler for mouse release events.

mouseMove
void delegate(Vector2f position, ref bool stopEvent) mouseMove;

Handler for mouse movement events.

keyPress
void delegate(Key key, ref bool stopEvent) keyPress;

Handler for key press events.

keyRelease
void delegate(Key key, ref bool stopEvent) keyRelease;

Handler for key release events.

render
void render(RenderWindow window)

Will render the component. Called during every frame render.

refresh
void refresh(size_t width, size_t height)

Refreshes the component with a given width ahd height. This is usually the layer size which is usually the window size.

updateSize
void updateSize()

Called when the size of the component updates.

updatePosition
void updatePosition()

Called when the position of the component updates.

Meta