- 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()
- onClose
void onClose()
- onEnter
void onEnter()
- onExposed
void onExposed()
- onFocusGained
void onFocusGained()
- onFocusLost
void onFocusLost()
- onHide
void onHide()
- onKeyDown
void onKeyDown(uint timestamp, SDL2Keyboard keyboard, SDL_Keycode key)
Undocumented in source. Be warned that the author may not have intended to support it.
- onKeyUp
void onKeyUp(uint timestamp, SDL2Keyboard keyboard, SDL_Keycode key)
Undocumented in source. Be warned that the author may not have intended to support it.
- onLeave
void onLeave()
- onMaximized
void onMaximized()
- onMinimized
void onMinimized()
- onMouseButtonPressed
void onMouseButtonPressed(uint timestamp, SDL2Mouse mouseState, int button, bool isDoubleClick)
Undocumented in source. Be warned that the author may not have intended to support it.
- onMouseButtonReleased
void onMouseButtonReleased(uint timestamp, SDL2Mouse mouseState, int button)
Undocumented in source. Be warned that the author may not have intended to support it.
- onMouseMove
void onMouseMove(uint timestamp, SDL2Mouse mouseState)
Undocumented in source. Be warned that the author may not have intended to support it.
- onMouseWheel
void onMouseWheel(uint timestamp, SDL2Mouse mouseState, int wheelDeltaX, int wheelDeltaY)
Undocumented in source. Be warned that the author may not have intended to support it.
- onMove
void onMove(int x, int y)
- onResized
void onResized(int width, int height)
- onRestored
void onRestored()
- onShow
void onShow()
- onSizeChanged
void onSizeChanged()
- setFullscreen
deprecated void setFullscreen(bool fullscreen)
- 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()
- updateSurface
void updateSurface()
Submit changes to the window surface.
SDL Window wrapper. There is two ways to receive events, either by polling a SDL2 object, or by overriding the event callbacks.