SDL2Window

SDL Window wrapper. There is two ways to receive events, either by polling a SDL2 object, or by overriding the event callbacks.

Constructors

this
this(SDL2 sdl2, int x, int y, int width, int height, int flags)

Creates a SDL window which targets a window.

this
this(SDL2 sdl2, void* windowData)

Creates a SDL window from anexisting handle.

Destructor

~this
~this()

Releases the SDL resource.

Members

Functions

getHeight
int getHeight()
getMaximumSize
SDL_Point getMaximumSize()

Get the minimum size setting for the window

getMinimumSize
SDL_Point getMinimumSize()

Get the minimum size setting for the window

getPosition
SDL_Point getPosition()
getSize
SDL_Point getSize()
getWidth
int getWidth()
getWindowDisplayMode
SDL_DisplayMode getWindowDisplayMode()

Gets information about the window's display mode

getWindowFlags
uint getWindowFlags()
getWindowInfo
SDL_SysWMinfo getWindowInfo()
getX
int getX()
getY
int getY()
hide
void hide()
id
int id()
maximize
void maximize()
minimize
void minimize()
setBordered
void setBordered(bool bordered)
setFullscreenSetting
void setFullscreenSetting(uint flags)
setIcon
void setIcon(SDL2Surface icon)
setMaximumSize
void setMaximumSize(int width, int height)

Get the minimum size setting for the window

setMinimumSize
void setMinimumSize(int width, int height)

Get the minimum size setting for the window

setPosition
void setPosition(int positionX, int positionY)
setSize
void setSize(int width, int height)
setTitle
void setTitle(string title)
show
void show()
surface
SDL2Surface surface()
swapBuffers
void swapBuffers()

Swap OpenGL buffers.

updateSurface
void updateSurface()

Submit changes to the window surface.

Variables

_sdl2
SDL2 _sdl2;
Undocumented in source.
_window
SDL_Window* _window;
Undocumented in source.

Meta