Search
Preparing search index...
The search index is not available
sfml.js
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
sfml.js
RectangleShape
Class RectangleShape
Hierarchy
Shape
RectangleShape
Index
Constructors
constructor
Methods
_raw
get
Fill
Color
get
Global
Bounds
get
Local
Bounds
get
Origin
get
Outline
Color
get
Outline
Thickness
get
Point
get
Point
Count
get
Position
get
Rotation
get
Scale
get
Size
get
Texture
get
Texture
Rect
move
rotate
scale
set
Fill
Color
set
Origin
set
Outline
Color
set
Outline
Thickness
set
Point
set
Point
Count
set
Position
set
Rotation
set
Scale
set
Size
set
Texture
set
Texture
Rect
Constructors
constructor
new
Rectangle
Shape
(
size
:
PointType
<
Vector2F
>
)
:
RectangleShape
Parameters
size:
PointType
<
Vector2F
>
Returns
RectangleShape
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
Point
get
Point
(
idx
:
number
)
:
Vector2F
Parameters
idx:
number
Returns
Vector2F
get
Point
Count
get
Point
Count
(
)
:
number
Returns
number
get
Position
get
Position
(
)
:
Vector2F
Returns
Vector2F
get
Rotation
get
Rotation
(
)
:
number
Returns
number
get
Scale
get
Scale
(
)
:
Vector2F
Returns
Vector2F
get
Size
get
Size
(
)
:
Vector2F
Returns
Vector2F
get
Texture
get
Texture
(
)
:
Texture
Returns
Texture
get
Texture
Rect
get
Texture
Rect
(
)
:
FloatRect
Returns
FloatRect
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
Fill
Color
set
Fill
Color
(
color
:
number
|
Color
)
:
void
Parameters
color:
number
|
Color
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
Point
set
Point
(
idx
:
number
, point
:
Vector2F
)
:
void
Parameters
idx:
number
point:
Vector2F
Returns
void
set
Point
Count
set
Point
Count
(
count
:
number
)
:
void
Parameters
count:
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
Size
set
Size
(
size
:
PointType
<
Vector2F
>
)
:
void
Parameters
size:
PointType
<
Vector2F
>
Returns
void
set
Texture
set
Texture
(
texture
:
Texture
)
:
void
Parameters
texture:
Texture
Returns
void
set
Texture
Rect
set
Texture
Rect
(
rect
:
FloatRect
)
:
void
Parameters
rect:
FloatRect
Returns
void
Exports
Rectangle
Shape
constructor
_raw
get
Fill
Color
get
Global
Bounds
get
Local
Bounds
get
Origin
get
Outline
Color
get
Outline
Thickness
get
Point
get
Point
Count
get
Position
get
Rotation
get
Scale
get
Size
get
Texture
get
Texture
Rect
move
rotate
scale
set
Fill
Color
set
Origin
set
Outline
Color
set
Outline
Thickness
set
Point
set
Point
Count
set
Position
set
Rotation
set
Scale
set
Size
set
Texture
set
Texture
Rect
Generated using
TypeDoc