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()

Members

Functions

close
void close()

Releases the SDL resource.

getHeight
int getHeight()
getPosition
SDL_Point getPosition()
getSize
SDL_Point getSize()
getWidth
int getWidth()
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)
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