Window Methods

SFML.Net

Window Methods

The Window type exposes the following members.

Methods
  Name Description
Public method Close
Close (destroy) the window. The Window instance remains valid and you can call Create to recreate the window
Protected method Destroy
Handle the destruction of the object
(Overrides ObjectBaseDestroy(Boolean).)
Public method DispatchEvents
Call the event handlers for each pending event
Public method Display
Display the window on screen
Public method Dispose
Explicitely dispose the object
(Inherited from ObjectBase.)
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Dispose the object
(Inherited from ObjectBase.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method HasFocus
Check whether the window has the input focus
Protected method InternalGetMousePosition
Internal function to get the mouse position relative to the window. This function is protected because it is called by another class of another module, it is not meant to be called by users.
Protected method InternalGetTouchPosition
Internal function to get the touch position relative to the window. This function is protected because it is called by another class of another module, it is not meant to be called by users.
Protected method InternalSetMousePosition
Internal function to set the mouse position relative to the window. This function is protected because it is called by another class of another module, it is not meant to be called by users.
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected method PollEvent
Internal function to get the next event (non-blocking)
Public method RequestFocus
Request the current window to be made the active foreground window
Public method SetActive
Activate the window as the current target for rendering
Public method SetActive(Boolean)
Activate of deactivate the window as the current target for rendering
Public method SetFramerateLimit
Limit the framerate to a maximum fixed frequency
Public method SetIcon
Change the window's icon
Public method SetJoystickThreshold
Change the joystick threshold, ie. the value below which no move event will be generated
Public method SetKeyRepeatEnabled
Enable or disable automatic key-repeat. Automatic key-repeat is enabled by default
Public method SetMouseCursorVisible
Show or hide the mouse cursor
Public method SetTitle
Change the title of the window
Public method SetVerticalSyncEnabled
Enable / disable vertical synchronization
Public method SetVisible
Show or hide the window
Public method ToString
Provide a string describing the object
(Overrides ObjectToString.)
Public method WaitAndDispatchEvents
Wait for a new event and dispatch it to the corresponding event handler
Protected method WaitEvent
Internal function to get the next event (blocking)
Top
See Also