sf.WindowBase – sfml Reference Manual
Packages
sfml
sf
WindowBase
WindowBase
WindowBase.createFromHandle
WindowBase.createUnicode
close
createVulkanSurface
getMousePosition
getNativeHandle
getPosition
getSize
hasFocus
isOpen
pollEvent
requestFocus
setIcon
setJoystickThreshold
setKeyRepeatEnabled
setMouseCursor
setMouseCursorGrabbed
setMouseCursorVisible
setMousePosition
setPosition
setSize
setTitle
setUnicodeTitle
setVisible
waitEvent
WindowBase
Object Hierarchy:
Description:
[
CCode
( cname =
"sfWindowBase"
, cprefix =
"sfWindowBase_"
, free_function =
"sfWindowBase_destroy"
) ]
[
Compact
]
public
class
WindowBase
All known sub-classes:
Window
Namespace:
sf
Package:
sfml
Content:
Creation methods:
public
WindowBase
(
VideoMode
mode,
char
* title,
WindowStyle
style)
public
WindowBase.createFromHandle
(
WindowHandle
handle)
public
WindowBase.createUnicode
(
VideoMode
mode,
uint32
[] title,
WindowStyle
style)
Methods:
public
void
close
()
public
bool
createVulkanSurface
(
VkInstance
instance,
VkSurfaceKHR
surface,
VkAllocationCallbacks
allocator)
public
Vector2i
getMousePosition
()
public
WindowHandle
*
getNativeHandle
()
public
Vector2i
getPosition
()
public
Vector2u
getSize
()
public
bool
hasFocus
()
public
bool
isOpen
()
public
bool
pollEvent
(
out
Event
event)
public
void
requestFocus
()
public
void
setIcon
(
uint
width,
uint
height,
uint8
[] pixels)
public
void
setJoystickThreshold
(
float
threshold)
public
void
setKeyRepeatEnabled
(
bool
enabled)
public
void
setMouseCursor
(
Cursor
cursor)
public
void
setMouseCursorGrabbed
(
bool
grabbed)
public
void
setMouseCursorVisible
(
bool
visible)
public
void
setMousePosition
(
Vector2i
position)
public
void
setPosition
(
Vector2i
position)
public
void
setSize
(
Vector2u
size)
public
void
setTitle
(
string
title)
public
void
setUnicodeTitle
(
uint8
[] title)
public
void
setVisible
(
bool
visible)
public
bool
waitEvent
(
out
Event
event)