Window Class

SFML.Net

Window Class
Window is a rendering window ; it can create a new window or connect to an existing one
Inheritance Hierarchy
SystemObject  SFMLObjectBase
    SFML.WindowWindow
      SFML.GraphicsRenderWindow

Namespace: SFML.Window
Assembly: sfmlnet-window-2 (in sfmlnet-window-2.dll) Version: 2.2.0.0 (2.2.0)
Syntax
public class Window : ObjectBase
Public Class Window
	Inherits ObjectBase
public ref class Window : public ObjectBase
type Window =  
    class
        inherit ObjectBase
    end

The Window type exposes the following members.

Constructors
  NameDescription
Public methodWindow(IntPtr)
Create the window from an existing control with default creation settings
Public methodWindow(IntPtr, ContextSettings)
Create the window from an existing control
Protected methodWindow(IntPtr, Int32)
Constructor for derived classes
Public methodWindow(VideoMode, String)
Create the window with default style and creation settings
Public methodWindow(VideoMode, String, Styles)
Create the window with default creation settings
Public methodWindow(VideoMode, String, Styles, ContextSettings)
Create the window
Top
Methods
  NameDescription
Public methodClose
Close (destroy) the window. The Window instance remains valid and you can call Create to recreate the window
Protected methodDestroy
Handle the destruction of the object
(Overrides ObjectBaseDestroy(Boolean).)
Public methodDispatchEvents
Call the event handlers for each pending event
Public methodDisplay
Display the window on screen
Public methodDispose
Explicitely dispose the object
(Inherited from ObjectBase.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Dispose the object
(Inherited from ObjectBase.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasFocus
Check whether the window has the input focus
Protected methodInternalGetMousePosition
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 methodInternalGetTouchPosition
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 methodInternalSetMousePosition
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 methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodPollEvent
Internal function to get the next event (non-blocking)
Public methodRequestFocus
Request the current window to be made the active foreground window
Public methodSetActive
Activate the window as the current target for rendering
Public methodSetActive(Boolean)
Activate of deactivate the window as the current target for rendering
Public methodSetFramerateLimit
Limit the framerate to a maximum fixed frequency
Public methodSetIcon
Change the window's icon
Public methodSetJoystickThreshold
Change the joystick threshold, ie. the value below which no move event will be generated
Public methodSetKeyRepeatEnabled
Enable or disable automatic key-repeat. Automatic key-repeat is enabled by default
Public methodSetMouseCursorVisible
Show or hide the mouse cursor
Public methodSetTitle
Change the title of the window
Public methodSetVerticalSyncEnabled
Enable / disable vertical synchronization
Public methodSetVisible
Show or hide the window
Public methodToString
Provide a string describing the object
(Overrides ObjectToString.)
Public methodWaitAndDispatchEvents
Wait for a new event and dispatch it to the corresponding event handler
Protected methodWaitEvent
Internal function to get the next event (blocking)
Top
Properties
  NameDescription
Public propertyCPointer
Access to the internal pointer of the object. For internal use only
(Inherited from ObjectBase.)
Public propertyIsOpen
Tell whether or not the window is opened (ie. has been created). Note that a hidden window (Show(false)) will still return true
Public propertyPosition
Position of the window
Public propertySettings
Creation settings of the window
Public propertySize
Size of the rendering region of the window
Public propertySystemHandle
OS-specific handle of the window
Top
Events
  NameDescription
Public eventClosed
Event handler for the Closed event
Public eventGainedFocus
Event handler for the GainedFocus event
Public eventJoystickButtonPressed
Event handler for the JoystickButtonPressed event
Public eventJoystickButtonReleased
Event handler for the JoystickButtonReleased event
Public eventJoystickConnected
Event handler for the JoystickConnected event
Public eventJoystickDisconnected
Event handler for the JoystickDisconnected event
Public eventJoystickMoved
Event handler for the JoystickMoved event
Public eventKeyPressed
Event handler for the KeyPressed event
Public eventKeyReleased
Event handler for the KeyReleased event
Public eventLostFocus
Event handler for the LostFocus event
Public eventMouseButtonPressed
Event handler for the MouseButtonPressed event
Public eventMouseButtonReleased
Event handler for the MouseButtonReleased event
Public eventMouseEntered
Event handler for the MouseEntered event
Public eventMouseLeft
Event handler for the MouseLeft event
Public eventMouseMoved
Event handler for the MouseMoved event
Public eventMouseWheelMoved
Event handler for the MouseWheelMoved event
Public eventResized
Event handler for the Resized event
Public eventSensorChanged
Event handler for the SensorChanged event
Public eventTextEntered
Event handler for the TextEntered event
Public eventTouchBegan
Event handler for the TouchBegan event
Public eventTouchEnded
Event handler for the TouchEnded event
Public eventTouchMoved
Event handler for the TouchMoved event
Top
See Also