Xerr API
Toggle table of contents
2.1.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
Xerr API
Xerr API
/
com.hiusers.xerr.api.render
/
CanvasBounds
Canvas
Bounds
data
class
CanvasBounds
(
val
left
:
Double
=
0.0
,
val
top
:
Double
=
0.0
,
val
right
:
Double
=
0.0
,
val
bottom
:
Double
=
0.0
)
(
source
)
Local drawing bounds: x grows right, screen y grows down.
Members
Constructors
Canvas
Bounds
Link copied to clipboard
constructor
(
left
:
Double
=
0.0
,
top
:
Double
=
0.0
,
right
:
Double
=
0.0
,
bottom
:
Double
=
0.0
)
Properties
bottom
Link copied to clipboard
val
bottom
:
Double
left
Link copied to clipboard
val
left
:
Double
right
Link copied to clipboard
val
right
:
Double
top
Link copied to clipboard
val
top
:
Double
width
Link copied to clipboard
val
width
:
Double
Functions
intersects
Link copied to clipboard
fun
intersects
(
other
:
CanvasBounds
,
gap
:
Double
=
2.0
)
:
Boolean
shifted
Link copied to clipboard
fun
shifted
(
x
:
Double
,
y
:
Double
=
0.0
)
:
CanvasBounds
union
Link copied to clipboard
fun
union
(
other
:
CanvasBounds
)
:
CanvasBounds