Rachel
Toggle table of contents
3.6.0
common
Target filter
common
Switch theme
Search in API
Skip to content
Rachel
love.yinlin.compose.game.core
/
love.yinlin.compose.game.traits
/
Visible
Visible
@
Stable
abstract
class
Visible
(
position
:
Offset
=
Offset.Zero
,
size
:
Size
=
Size.Zero
,
aabb
:
AABB
=
AABB.Box
,
visible
:
Boolean
=
true
,
useCulling
:
Boolean
=
true
)
可视实体
Members
Constructors
Visible
Link copied to clipboard
constructor
(
position
:
Offset
=
Offset.Zero
,
size
:
Size
=
Size.Zero
,
aabb
:
AABB
=
AABB.Box
,
visible
:
Boolean
=
true
,
useCulling
:
Boolean
=
true
)
Properties
aabb
Link copied to clipboard
var
aabb
:
AABB
碰撞箱
bottom
Center
Link copied to clipboard
val
bottomCenter
:
Offset
bottom
Left
Link copied to clipboard
val
bottomLeft
:
Offset
bottom
Right
Link copied to clipboard
val
bottomRight
:
Offset
bounds
Link copied to clipboard
val
bounds
:
Rect
center
Link copied to clipboard
val
center
:
Offset
中心点
center
Left
Link copied to clipboard
val
centerLeft
:
Offset
center
Right
Link copied to clipboard
val
centerRight
:
Offset
clip
Link copied to clipboard
open
val
clip
:
Boolean
=
false
是否裁切溢出
layer
Link copied to clipboard
var
layer
:
Layer
?
layer
Order
Link copied to clipboard
open
val
layerOrder
:
Int
层级
max
Dimension
Link copied to clipboard
val
maxDimension
:
Float
min
Dimension
Link copied to clipboard
val
minDimension
:
Float
position
Link copied to clipboard
var
position
:
Offset
位置
rotate
Link copied to clipboard
var
rotate
:
Float
旋转
scale
Link copied to clipboard
var
scale
:
Float
缩放
size
Link copied to clipboard
var
size
:
Size
大小
top
Center
Link copied to clipboard
val
topCenter
:
Offset
top
Left
Link copied to clipboard
val
topLeft
:
Offset
top
Right
Link copied to clipboard
val
topRight
:
Offset
trigger
Link copied to clipboard
open
val
trigger
:
Trigger
?
=
null
触发器
visible
Link copied to clipboard
var
visible
:
Boolean
可见
Functions
on
Draw
Link copied to clipboard
abstract
fun
Drawer
.
onDraw
(
)
绘制
prepare
Draw
Link copied to clipboard
open
fun
PrepareDrawer
.
prepareDraw
(
viewportSize
:
Size
,
viewportBounds
:
Rect
)
绘制预处理
update
Dirty
Link copied to clipboard
fun
updateDirty
(
)