Index of class methods


B
bind [Sfml.image]
Bind the image

C
capture [Sfml.renderWindow]
Takes a screenshot
close [Sfml.abstractWindow]
Close the window, without destroying it
convertCoords [Sfml.renderWindow]
Converts from relative to absolute
createMaskFromColor [Sfml.image]
Make a color transparent

D
display [Sfml.abstractWindow]
Refresh the window
drawSprite [Sfml.renderWindow]
Draw something on the window
drawString [Sfml.renderWindow]

E
enableKeyRepeat [Sfml.abstractWindow]
Enable/disable key repetition

F
flipX [Sfml.sprite]
Apply a symetry
flipY [Sfml.sprite]

G
getBlendMode [Sfml.drawable]
getCenterX [Sfml.view]
Get its position
getCenterX [Sfml.drawable]
getCenterY [Sfml.view]
getCenterY [Sfml.drawable]
getColor [Sfml.drawable]
getDefaultView [Sfml.renderWindow]
getElapsedTime [Sfml.clock]
Get the time elapsed since the last reset
getEvent [Sfml.abstractWindow]
Get the higher event in the stack
getFloat [Sfml.randomizer]
getFont [Sfml.sfString]
getFrameTime [Sfml.abstractWindow]
Return the time elapsed since the last frame
getHalfSizeX [Sfml.view]
getHalfSizeY [Sfml.view]
getHeight [Sfml.sprite]
getHeight [Sfml.image]
getHeight [Sfml.abstractWindow]
getImage [Sfml.sprite]
getInput [Sfml.abstractWindow]
Returns the input object associated with the window
getInt [Sfml.randomizer]
Get a random number between a and b
getJoystickAxis [Sfml.input]
Get joystick position
getMouseX [Sfml.input]
Get mouse position
getMouseY [Sfml.input]
getPixel [Sfml.sprite]
Get a single pixel
getPixel [Sfml.image]
Get a single pixel
getPixelTab [Sfml.image]
Get the whole pixel tab
getPoint [Sfml.view]
For internal use only
getPoint [Sfml.drawable]
getPoint [Sfml.image]
For internal use only
getRect [Sfml.view]
getRect [Sfml.sfString]
Position
getRotation [Sfml.drawable]
getScaleX [Sfml.drawable]
getScaleY [Sfml.drawable]
getSeed [Sfml.randomizer]
getSize [Sfml.sfString]
getStyle [Sfml.sfString]
getSubRect [Sfml.sprite]
getText [Sfml.sfString]
getView [Sfml.renderWindow]
getWidth [Sfml.sprite]
getWidth [Sfml.image]
Get the dimensions of the image
getWidth [Sfml.abstractWindow]
Return the dimension of the window
getX [Sfml.drawable]
getY [Sfml.drawable]

I
isJoystickButtonDown [Sfml.input]
isKeyDown [Sfml.input]
Check if a key/button is pressed
isMouseButtonDown [Sfml.input]
isOpened [Sfml.abstractWindow]
Check if a window is opened
isSmooth [Sfml.image]

M
move [Sfml.view]
move [Sfml.drawable]

P
preserveOpenGLStates [Sfml.renderWindow]
Preserve OpenGL States

R
reset [Sfml.clock]
Restart the timer
resize [Sfml.sprite]
resize [Sfml.image]
Resize the image, without scaling and fill it with the given color
rotate [Sfml.drawable]

S
saveToFile [Sfml.image]
Save the image in a file
scale [Sfml.drawable]
setActive [Sfml.abstractWindow]
Set Active
setBackgroundColor [Sfml.renderWindow]
Set the background color
setBlendmode [Sfml.drawable]
setCenter [Sfml.view]
Move/Resize the view/camera
setCenter [Sfml.drawable]
setColor [Sfml.drawable]
Aspect methods
setCursorPosition [Sfml.abstractWindow]
Move mouse cursor
setFont [Sfml.sfString]
Aspects
setFramerateLimit [Sfml.abstractWindow]
Sets a framerate limit
setFromRect [Sfml.view]
setHalfSize [Sfml.view]
setImage [Sfml.sprite]
Set/Get the image
setJoystickThreshold [Sfml.abstractWindow]
Set the joystick threshold
setPixel [Sfml.image]
Modify a single pixel
setPosition [Sfml.drawable]
setPosition [Sfml.abstractWindow]
Move the window
setRotation [Sfml.drawable]
Geometry methods
setScale [Sfml.drawable]
setScaleX [Sfml.drawable]
Set/Get the scale of the drawable
setScaleY [Sfml.drawable]
setSeed [Sfml.randomizer]
Get/Set the seed
setSize [Sfml.sfString]
setSmooth [Sfml.image]
Set/Get if the image is smooth
setStyle [Sfml.sfString]
setSubRect [Sfml.sprite]
Move/Resize
setText [Sfml.sfString]
Set/Get the text
setView [Sfml.renderWindow]
Modify/Get the view
setX [Sfml.drawable]
Set/Get the position of the drawable
setY [Sfml.drawable]
show [Sfml.abstractWindow]
Show the window
showMouseCursor [Sfml.abstractWindow]
Show/hide mouse cursor

U
useVerticalSync [Sfml.abstractWindow]
Use (or not) vertical synchronisation

Z
zoom [Sfml.view]