EngineAlpha
JVM
EngineAlpha
/
ea.actor
/
Rectangle
Rectangle
open
class
Rectangle
Beschreibt ein Rechteck.
Author
Michael Andonie
Niklas Keller
Members
Constructors
Rectangle
Link copied to clipboard
constructor
(
width
:
Float
,
height
:
Float
)
Konstruktor.
constructor
(
width
:
Float
,
height
:
Float
,
shapeSupplier
:
Supplier
<
Shape
>
)
Properties
border
Radius
Link copied to clipboard
open
var
borderRadius
:
Float
Für abgerundete Ecken, Prozent der Abrundung der kleineren Seite
height
Link copied to clipboard
open
val
height
:
Float
Die Höhe
width
Link copied to clipboard
open
val
width
:
Float
Die Breite
Functions
render
Link copied to clipboard
open
fun
render
(
g
:
Graphics2D
,
pixelPerMeter
:
Float
)
set
Size
Link copied to clipboard
open
fun
setSize
(
width
:
Float
,
height
:
Float
)
Setzt die Höhe und Breite des Rechtecks neu.