Метод | Описание | |
---|---|---|
Close ( ) : void |
Close (destroy) the window. The Window instance remains valid and you can call Create to recreate the window
|
|
DispatchEvents ( ) : void |
Call the event handlers for each pending event
|
|
Display ( ) : void |
Display the window on screen
|
|
HasFocus ( ) : bool |
Check whether the window has the input focus
|
|
RequestFocus ( ) : void |
Request the current window to be made the active foreground window
|
|
SetActive ( ) : bool |
Activate the window as the current target for rendering
|
|
SetActive ( bool active ) : bool |
Activate of deactivate the window as the current target for rendering
|
|
SetFramerateLimit ( uint limit ) : void |
Limit the framerate to a maximum fixed frequency
|
|
SetIcon ( uint width, uint height, byte pixels ) : void |
Change the window's icon
|
|
SetJoystickThreshold ( float threshold ) : void |
Change the joystick threshold, ie. the value below which no move event will be generated
|
|
SetKeyRepeatEnabled ( bool enable ) : void |
Enable or disable automatic key-repeat. Automatic key-repeat is enabled by default
|
|
SetMouseCursorGrabbed ( bool grabbed ) : void |
Grab or release the mouse cursor If set, grabs the mouse cursor inside this window's client area so it may no longer be moved outside its bounds. Note that grabbing is only active while the window has focus and calling this function for fullscreen windows won't have any effect (fullscreen windows always grab the cursor). |
|
SetMouseCursorVisible ( bool show ) : void |
Show or hide the mouse cursor
|
|
SetTitle ( string title ) : void |
Change the title of the window
|
|
SetVerticalSyncEnabled ( bool enable ) : void |
Enable / disable vertical synchronization
|
|
SetVisible ( bool visible ) : void |
Show or hide the window
|
|
ToString ( ) : string |
Provide a string describing the object
|
|
WaitAndDispatchEvents ( ) : void |
Wait for a new event and dispatch it to the corresponding event handler
|
|
Window ( |
Create the window from an existing control with default creation settings
|
|
Window ( |
Create the window from an existing control
|
|
Window ( |
Create the window with default style and creation settings
|
|
Window ( |
Create the window with default creation settings
|
|
Window ( |
Create the window
|
Метод | Описание | |
---|---|---|
Destroy ( bool disposing ) : void |
Handle the destruction of the object
|
|
InternalGetMousePosition ( ) : Vector2i |
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.
|
|
InternalGetTouchPosition ( uint Finger ) : Vector2i |
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.
|
|
InternalSetMousePosition ( Vector2i position ) : void |
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.
|
|
PollEvent ( |
Internal function to get the next event (non-blocking)
|
|
WaitEvent ( |
Internal function to get the next event (blocking)
|
|
Window ( |
Constructor for derived classes
|
Метод | Описание | |
---|---|---|
CallEventHandler ( |
Call the event handler for the given event
|
|
sfMouse_getPosition ( |
||
sfMouse_setPosition ( Vector2i position, |
||
sfTouch_getPosition ( uint Finger, |
||
sfWindow_close ( |
||
sfWindow_create ( |
||
sfWindow_createFromHandle ( |
||
sfWindow_createUnicode ( |
||
sfWindow_destroy ( |
||
sfWindow_display ( |
||
sfWindow_getFrameTime ( |
||
sfWindow_getPosition ( |
||
sfWindow_getSettings ( |
||
sfWindow_getSize ( |
||
sfWindow_getSystemHandle ( |
||
sfWindow_hasFocus ( |
||
sfWindow_isOpen ( |
||
sfWindow_pollEvent ( |
||
sfWindow_requestFocus ( |
||
sfWindow_setActive ( |
||
sfWindow_setFramerateLimit ( |
||
sfWindow_setIcon ( |
||
sfWindow_setJoystickThreshold ( |
||
sfWindow_setKeyRepeatEnabled ( |
||
sfWindow_setMouseCursorGrabbed ( |
||
sfWindow_setMouseCursorVisible ( |
||
sfWindow_setPosition ( |
||
sfWindow_setSize ( |
||
sfWindow_setTitle ( |
||
sfWindow_setUnicodeTitle ( |
||
sfWindow_setVerticalSyncEnabled ( |
||
sfWindow_setVisible ( |
||
sfWindow_waitEvent ( |
protected Destroy ( bool disposing ) : void | ||
disposing | bool | Is the GC disposing the object, or is it an explicit call ? |
Результат | void |
protected InternalGetMousePosition ( ) : Vector2i | ||
Результат | Vector2i |
protected InternalGetTouchPosition ( uint Finger ) : Vector2i | ||
Finger | uint | Finger index |
Результат | Vector2i |
protected InternalSetMousePosition ( Vector2i position ) : void | ||
position | Vector2i | Relative mouse position |
Результат | void |
protected PollEvent ( |
||
eventToFill | Variable to fill with the raw pointer to the event structure | |
Результат | bool |
public SetActive ( bool active ) : bool | ||
active | bool | True to activate, false to deactivate (true by default) |
Результат | bool |
public SetFramerateLimit ( uint limit ) : void | ||
limit | uint | Framerate limit, in frames per seconds (use 0 to disable limit) |
Результат | void |
public SetIcon ( uint width, uint height, byte pixels ) : void | ||
width | uint | Icon's width, in pixels |
height | uint | Icon's height, in pixels |
pixels | byte | Array of pixels, format must be RGBA 32 bits |
Результат | void |
public SetJoystickThreshold ( float threshold ) : void | ||
threshold | float | New threshold, in range [0, 100] |
Результат | void |
public SetKeyRepeatEnabled ( bool enable ) : void | ||
enable | bool | True to enable, false to disable |
Результат | void |
public SetMouseCursorGrabbed ( bool grabbed ) : void | ||
grabbed | bool | True to grab, false to release |
Результат | void |
public SetMouseCursorVisible ( bool show ) : void | ||
show | bool | True to show, false to hide |
Результат | void |
public SetTitle ( string title ) : void | ||
title | string | New title |
Результат | void |
public SetVerticalSyncEnabled ( bool enable ) : void | ||
enable | bool | True to enable v-sync, false to deactivate |
Результат | void |
public SetVisible ( bool visible ) : void | ||
visible | bool | True to show the window, false to hide it |
Результат | void |
protected WaitEvent ( |
||
eventToFill | Variable to fill with the raw pointer to the event structure | |
Результат | bool |
public Window ( |
||
handle | Platform-specific handle of the control | |
Результат | System |
public Window ( |
||
Handle | Platform-specific handle of the control | |
settings | Creation parameters | |
Результат | System |
protected Window ( |
||
cPointer | Pointer to the internal object in the C API | |
dummy | int | Internal hack :) |
Результат | System |
public Window ( |
||
mode | Video mode to use | |
title | string | Title of the window |
Результат | System |
public Window ( |
||
mode | Video mode to use | |
title | string | Title of the window |
style | Styles | Window style (Resize | Close by default) |
Результат | System |
public Window ( |
||
mode | Video mode to use | |
title | string | Title of the window |
style | Styles | Window style (Resize | Close by default) |
settings | Creation parameters | |
Результат | System |