Window

GLFW based window class

class Window {}

Constructors

this
this(int width, int height, string title)
Undocumented in source.
this
this(int width, int height, string title, Window share)
Undocumented in source.
this
this(int width, int height, string title, Screen screen)
Undocumented in source.
this
this(int width, int height, string title, Screen screen, Window share)
Undocumented in source.

Members

Functions

aspectRatio
void aspectRatio(int[2] ratio)
Undocumented in source. Be warned that the author may not have intended to support it.
clientAPI
ClientAPI clientAPI()
Undocumented in source. Be warned that the author may not have intended to support it.
clipboard
string clipboard(string str)
Undocumented in source. Be warned that the author may not have intended to support it.
clipboard
string clipboard()
Undocumented in source. Be warned that the author may not have intended to support it.
contextRevision
int contextRevision()
Undocumented in source. Be warned that the author may not have intended to support it.
contextRobustness
ContextRobustness contextRobustness()
Undocumented in source. Be warned that the author may not have intended to support it.
contextVersionMajor
int contextVersionMajor()
Undocumented in source. Be warned that the author may not have intended to support it.
contextVersionMinor
int contextVersionMinor()
Undocumented in source. Be warned that the author may not have intended to support it.
createWindowSurface
VkResult createWindowSurface(VkInstance instance, VkAllocationCallbacks* allocator, VkSurfaceKHR* surface)
Undocumented in source. Be warned that the author may not have intended to support it.
cursor
Cursor cursor(Cursor cursor)
Undocumented in source. Be warned that the author may not have intended to support it.
cursorMode
CursorMode cursorMode()
Undocumented in source. Be warned that the author may not have intended to support it.
cursorMode
CursorMode cursorMode(CursorMode mode)
Undocumented in source. Be warned that the author may not have intended to support it.
decorated
bool decorated()
Undocumented in source. Be warned that the author may not have intended to support it.
destroy
void destroy()
Undocumented in source. Be warned that the author may not have intended to support it.
floating
bool floating()
Undocumented in source. Be warned that the author may not have intended to support it.
focus
void focus()
Undocumented in source. Be warned that the author may not have intended to support it.
focused
bool focused()
Undocumented in source. Be warned that the author may not have intended to support it.
forwardCompatible
bool forwardCompatible()
Undocumented in source. Be warned that the author may not have intended to support it.
frameSize
int[4] frameSize()
Undocumented in source. Be warned that the author may not have intended to support it.
framebufferSize
int[2] framebufferSize()
Undocumented in source. Be warned that the author may not have intended to support it.
getKey
ButtonState getKey(KeyButton button)
Undocumented in source. Be warned that the author may not have intended to support it.
getMouse
ButtonState getMouse(MouseButton button)
Undocumented in source. Be warned that the author may not have intended to support it.
hasDebugContext
bool hasDebugContext()
Undocumented in source. Be warned that the author may not have intended to support it.
height
int height(int h)
Undocumented in source. Be warned that the author may not have intended to support it.
height
int height()
Undocumented in source. Be warned that the author may not have intended to support it.
hide
void hide()
Undocumented in source. Be warned that the author may not have intended to support it.
makeCurrent
void makeCurrent()
Undocumented in source. Be warned that the author may not have intended to support it.
maximize
void maximize()
Undocumented in source. Be warned that the author may not have intended to support it.
maximized
bool maximized()
Undocumented in source. Be warned that the author may not have intended to support it.
minimize
void minimize()
Undocumented in source. Be warned that the author may not have intended to support it.
minimized
bool minimized()
Undocumented in source. Be warned that the author may not have intended to support it.
mousePos
double[2] mousePos(double[2] mousePos)
Undocumented in source. Be warned that the author may not have intended to support it.
mousePos
double[2] mousePos()
Undocumented in source. Be warned that the author may not have intended to support it.
pos
int[2] pos(int[2] p)
Undocumented in source. Be warned that the author may not have intended to support it.
pos
int[2] pos()
Undocumented in source. Be warned that the author may not have intended to support it.
profile
OpenGLProfile profile()
Undocumented in source. Be warned that the author may not have intended to support it.
resizable
bool resizable()
Undocumented in source. Be warned that the author may not have intended to support it.
restore
void restore()
Undocumented in source. Be warned that the author may not have intended to support it.
screen
Screen screen()
Undocumented in source. Be warned that the author may not have intended to support it.
setCharCallback
void setCharCallback()
Undocumented in source. Be warned that the author may not have intended to support it.
setCharModsCallback
void setCharModsCallback()
Undocumented in source. Be warned that the author may not have intended to support it.
setCloseCallback
void setCloseCallback()
Undocumented in source. Be warned that the author may not have intended to support it.
setDropCallback
void setDropCallback()
Undocumented in source. Be warned that the author may not have intended to support it.
setFocusCallback
void setFocusCallback()
Undocumented in source. Be warned that the author may not have intended to support it.
setFramebufferSizeCallback
void setFramebufferSizeCallback()
Undocumented in source. Be warned that the author may not have intended to support it.
setFullScreenMode
void setFullScreenMode(Screen screen, int[2] size, int refreshRate)
Undocumented in source. Be warned that the author may not have intended to support it.
setIcon
void setIcon(Image[] image)
Undocumented in source. Be warned that the author may not have intended to support it.
setIconifyCallback
void setIconifyCallback()
Undocumented in source. Be warned that the author may not have intended to support it.
setKeyCallback
void setKeyCallback()
Undocumented in source. Be warned that the author may not have intended to support it.
setMouseButtonCallback
void setMouseButtonCallback()
Undocumented in source. Be warned that the author may not have intended to support it.
setMouseEnterCallback
void setMouseEnterCallback()
Undocumented in source. Be warned that the author may not have intended to support it.
setMousePosCallback
void setMousePosCallback()
Undocumented in source. Be warned that the author may not have intended to support it.
setPosCallback
void setPosCallback()
Undocumented in source. Be warned that the author may not have intended to support it.
setRefreshCallback
void setRefreshCallback()
Undocumented in source. Be warned that the author may not have intended to support it.
setScrollCallback
void setScrollCallback()
Undocumented in source. Be warned that the author may not have intended to support it.
setSizeCallback
void setSizeCallback()
Undocumented in source. Be warned that the author may not have intended to support it.
setSizeLimit
void setSizeLimit(int[2] min, int[2] max)
Undocumented in source. Be warned that the author may not have intended to support it.
setWindowMode
void setWindowMode(int[2] pos, int[2] size)
Undocumented in source. Be warned that the author may not have intended to support it.
shouldClose
bool shouldClose(bool shouldClose)

Returns true if this window should close.

shouldClose
bool shouldClose()
Undocumented in source. Be warned that the author may not have intended to support it.
show
void show()
Undocumented in source. Be warned that the author may not have intended to support it.
size
int[2] size(int[2] size)
Undocumented in source. Be warned that the author may not have intended to support it.
size
int[2] size()
Undocumented in source. Be warned that the author may not have intended to support it.
stickyKey
bool stickyKey()
Undocumented in source. Be warned that the author may not have intended to support it.
stickyKey
bool stickyKey(bool enabled)
Undocumented in source. Be warned that the author may not have intended to support it.
stickyMouseButton
bool stickyMouseButton()
Undocumented in source. Be warned that the author may not have intended to support it.
stickyMouseButton
bool stickyMouseButton(bool enabled)
Undocumented in source. Be warned that the author may not have intended to support it.
swapBuffers
void swapBuffers()
Undocumented in source. Be warned that the author may not have intended to support it.
title
string title(string title)
Undocumented in source. Be warned that the author may not have intended to support it.
title
string title()
Undocumented in source. Be warned that the author may not have intended to support it.
userPointer
void* userPointer()
Undocumented in source. Be warned that the author may not have intended to support it.
userPointer
void* userPointer(void* ptr)
Undocumented in source. Be warned that the author may not have intended to support it.
visible
bool visible(bool v)
Undocumented in source. Be warned that the author may not have intended to support it.
visible
bool visible()
Undocumented in source. Be warned that the author may not have intended to support it.
width
int width(int w)
Undocumented in source. Be warned that the author may not have intended to support it.
width
int width()
Undocumented in source. Be warned that the author may not have intended to support it.
x
int x(int x)
Undocumented in source. Be warned that the author may not have intended to support it.
x
int x()
Undocumented in source. Be warned that the author may not have intended to support it.
y
int y(int y)
Undocumented in source. Be warned that the author may not have intended to support it.
y
int y()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

getCurrentWindow
Window getCurrentWindow()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta