SDL2Window

SDL2Window class.

Constructors

this
this(Platform platform, int x, int y, int width, int height, SDL_WindowFlags flags)

Construct a window using an Platform reference and.

this
this(Platform platform, void* windowData)

Construct a window using an Platform reference and.

Destructor

~this
~this()

Releases the SDL2 resource.

Members

Functions

glContext
SDL2GLContext glContext()
Undocumented in source. Be warned that the author may not have intended to support it.
height
int height()
hide
void hide()
icon
void icon(Surface icon)
id
int id()
isBordered
void isBordered(bool bordered)
maximize
void maximize()
maximumSize
SDL_Point maximumSize()

Get the minimum size setting for the window

maximumSize
void maximumSize(int width, int height)

Get the minimum size setting for the window

minimize
void minimize()
minimumSize
SDL_Point minimumSize()

Get the minimum size setting for the window

minimumSize
void minimumSize(int width, int height)

Get the minimum size setting for the window

position
SDL_Point position()
position
void position(int positionX, int positionY)
setFullscreenSetting
void setFullscreenSetting(uint flags)
show
void show()
size
void size(int width, int height)
size
Vector2I size()
Undocumented in source. Be warned that the author may not have intended to support it.
surface
Surface surface()
title
void title(string title)
updateSurface
void updateSurface()

Submit changes to the window surface.

width
int width()
windowDisplayMode
SDL_DisplayMode windowDisplayMode()

Gets information about the window's display mode

windowFlags
uint windowFlags()
windowInfo
SDL_SysWMinfo windowInfo()
x
int x()
y
int y()

Variables

_platform
Platform _platform;
Undocumented in source.
_window
SDL_Window* _window;
Undocumented in source.

Meta