Class Window

A native window.

class Window
  : SurfaceSizeProvider
  , InputNode ;

Constructors

NameDescription
this (title, width, height, initiallyFocused) Initialize a new Window.
this (title, clearColor, width, height, initiallyFocused) Initialize a new Window.

Fields

NameTypeDescription
clearColor const(Color)Color this Window's framebuffer should be cleared to when rendered.
defaultClearColor Color
dontCare const(Size)Value used to disable minimum or maximum size limits of a Window.
id const(int)Window identifier.
onUnhandledInput Event!(const(teraflop.input.event.InputEvent))Fired when this window receives an unhandled InputEvent.

Properties

NameTypeDescription
framebufferSize[get] const(Size)Size of this Window, in pixels.
maximumSize[get, set] const(Size)Maximum size of this Window's content area, in screen coordinates.
minimized[get] boolWhether this window is minimized.
minimumSize[get, set] const(Size)Minimum size of this Window's content area, in screen coordinates.
size[get] const(Size)Size of this Window's content area, in screen coordinates.
surfaceSize[get] const(Size)Size of this Window's Surface, in pixels.
title[get] stringTitle of this Window.
valid[get] boolWhether the native window handle is valid.
visible[get] boolWhether this Window is currently visible.

Methods

NameDescription
hide () Makes this Window visible if it was previously hidden.
show () Hides this Window if it was previously visible.
actionInput (event)
unhandledInput (event)