Search
Preparing search index...
The search index is not available
sfml.js
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
sfml.js
Text
Class Text
Hierarchy
TextPluginPackage
Drawable
Text
Implements
TextPluginPackage
Index
Constructors
constructor
Methods
_raw
get
Fill
Color
get
Global
Bounds
get
Local
Bounds
get
Origin
get
Outline
Color
get
Outline
Thickness
get
Position
get
Rotation
get
Scale
move
rotate
scale
set
Character
Size
set
Fill
Color
set
Font
set
Letter
Spacing
set
Line
Spacing
set
Origin
set
Outline
Color
set
Outline
Thickness
set
Position
set
Rotation
set
Scale
set
String
set
Style
Constructors
constructor
new
Text
(
str
?:
string
, font
?:
Font
, characterSize
?:
number
)
:
Text
Parameters
Optional
str:
string
Optional
font:
Font
Optional
characterSize:
number
Returns
Text
Methods
_raw
_raw
(
)
:
any
Returns
any
get
Fill
Color
get
Fill
Color
(
)
:
Color
Returns
Color
get
Global
Bounds
get
Global
Bounds
(
)
:
FloatRect
Returns
FloatRect
get
Local
Bounds
get
Local
Bounds
(
)
:
FloatRect
Returns
FloatRect
get
Origin
get
Origin
(
)
:
Vector2F
Returns
Vector2F
get
Outline
Color
get
Outline
Color
(
)
:
Color
Returns
Color
get
Outline
Thickness
get
Outline
Thickness
(
)
:
number
Returns
number
get
Position
get
Position
(
)
:
Vector2F
Returns
Vector2F
get
Rotation
get
Rotation
(
)
:
number
Returns
number
get
Scale
get
Scale
(
)
:
Vector2F
Returns
Vector2F
move
move
(
x
:
number
, y
:
number
)
:
void
move
(
offset
:
PointType
<
Vector2F
>
)
:
void
Parameters
x:
number
y:
number
Returns
void
Parameters
offset:
PointType
<
Vector2F
>
Returns
void
rotate
rotate
(
angle
:
number
)
:
void
Parameters
angle:
number
Returns
void
scale
scale
(
x
:
number
, y
:
number
)
:
void
scale
(
offset
:
PointType
<
Vector2F
>
)
:
void
Parameters
x:
number
y:
number
Returns
void
Parameters
offset:
PointType
<
Vector2F
>
Returns
void
set
Character
Size
set
Character
Size
(
characterSize
:
number
)
:
void
Parameters
characterSize:
number
Returns
void
set
Fill
Color
set
Fill
Color
(
color
:
number
|
Color
)
:
void
Parameters
color:
number
|
Color
Returns
void
set
Font
set
Font
(
font
:
Font
)
:
void
Parameters
font:
Font
Returns
void
set
Letter
Spacing
set
Letter
Spacing
(
letterSpacing
:
number
)
:
void
Parameters
letterSpacing:
number
Returns
void
set
Line
Spacing
set
Line
Spacing
(
lineSpacing
:
number
)
:
void
Parameters
lineSpacing:
number
Returns
void
set
Origin
set
Origin
(
x
:
number
, y
:
number
)
:
void
set
Origin
(
origin
:
PointType
<
Vector2F
>
)
:
void
Parameters
x:
number
y:
number
Returns
void
Parameters
origin:
PointType
<
Vector2F
>
Returns
void
set
Outline
Color
set
Outline
Color
(
color
:
number
|
Color
)
:
void
Parameters
color:
number
|
Color
Returns
void
set
Outline
Thickness
set
Outline
Thickness
(
thickness
:
number
)
:
void
Parameters
thickness:
number
Returns
void
set
Position
set
Position
(
x
:
number
, y
:
number
)
:
void
set
Position
(
pos
:
PointType
<
Vector2F
>
)
:
void
Parameters
x:
number
y:
number
Returns
void
Parameters
pos:
PointType
<
Vector2F
>
Returns
void
set
Rotation
set
Rotation
(
rotation
:
number
)
:
void
Parameters
rotation:
number
Returns
void
set
Scale
set
Scale
(
x
:
number
, y
:
number
)
:
void
set
Scale
(
factor
:
PointType
<
Vector2F
>
)
:
void
Parameters
x:
number
y:
number
Returns
void
Parameters
factor:
PointType
<
Vector2F
>
Returns
void
set
String
set
String
(
str
:
string
)
:
void
Parameters
str:
string
Returns
void
set
Style
set
Style
(
style
:
Style
)
:
void
Parameters
style:
Style
Returns
void
Exports
Text
constructor
_raw
get
Fill
Color
get
Global
Bounds
get
Local
Bounds
get
Origin
get
Outline
Color
get
Outline
Thickness
get
Position
get
Rotation
get
Scale
move
rotate
scale
set
Character
Size
set
Fill
Color
set
Font
set
Letter
Spacing
set
Line
Spacing
set
Origin
set
Outline
Color
set
Outline
Thickness
set
Position
set
Rotation
set
Scale
set
String
set
Style
Generated using
TypeDoc