comp • gb.sdl2 • window

Window (gb.sdl2)

This class represents a SDL window.

This class is
Create a new SDL window.
creatable
.

Properties

Methods Events
Return the number of frames displayed since the beginning of the program.
FrameCount  
Set the desired refresh rate, or return the actual refresh rate.
FrameRate  
Return or set if the window is displayed fullscreen.
FullScreen  
Grabbed  
Return the window height.
H  
Return the internal window handle.
Handle  
Return the window height.
Height  
Return of set if the window is resizable.
Resizable  
Return or set the window title.
Text  
Return or set the window title.
Title  
Return or set if the window is visible.
Visible  
Return the window width.
W  
Return the window width.
Width  
Return the window left position.
X  
Return the window top position.
Y  
Close the window explicitly.
Close  
Hide the window.
Hide  
Move and/or resize the window.
Move  
Resize the window.
Resize  
Take a screenshot of the window.
Screenshot  
Show the window.
Show  
This event is raised just before the window is closed, either explicitly (with the Close method) or implicitly (by clicking on the window close button).
Close  
This event is raised each time the window contents must be redrawn.
Draw  
This event is raised when the mouse cursor enters the window.
Enter  
This event is raised when the window gets the focus.
GotFocus  
This event is raised when the window is hidden.
Hide  
This event is raised when a key is pressed.
KeyPress  
This event is raised when a key is released.
KeyRelease  
This event is raised when the mouse cursor leaves the window.
Leave  
This event is raised when the window loses the focus.
LostFocus  
This event is raised when a mouse button is pressed.
MouseDown  
This event is raised when the mouse cursor is moved inside the window.
MouseMove  
This event is raised when a mouse button is released.
MouseUp  
This event is raised when the mouse wheel is turned.
MouseWheel  
This event is raised when the window is moved.
Move  
This event is raised when the window is opened.
Open  
This event is raised when the window is resized.
Resize  
This event is raised when the window is shown.
Show  
This event is raised when some text is entered.
Text