polyui
1.2.11
jvm
polyui
/
org.polyfrost.polyui.dsl
/
DrawableDSL
/
Master
Master
class
Master
:
DrawableDSL
Members
Constructors
Master
Link copied to clipboard
constructor
(
)
Properties
_this
Link copied to clipboard
val
_this
:
Drawable
alignment
Link copied to clipboard
var
alignment
:
Align
background
Color
Link copied to clipboard
var
backgroundColor
:
PolyColor
?
colors
Link copied to clipboard
val
colors
:
Colors
input
Manager
Link copied to clipboard
var
inputManager
:
InputManager
?
renderer
Link copied to clipboard
var
renderer
:
Renderer
settings
Link copied to clipboard
var
settings
:
Settings
size
Link copied to clipboard
var
size
:
Vec2
?
translator
Link copied to clipboard
var
translator
:
Translator
?
Functions
add
Link copied to clipboard
fun
<
S
:
Drawable
>
S
.
add
(
init
:
DrawableDSL
.
(
S
)
->
Unit
?
=
null
)
:
S
block
Link copied to clipboard
fun
block
(
size
:
Vec2
?
=
null
,
alignment
:
Align
=
AlignDefault
,
init
:
DrawableDSL
.
(
Block
)
->
Unit
?
=
null
)
:
Block
build
Link copied to clipboard
fun
build
(
)
:
PolyUI
group
Link copied to clipboard
fun
group
(
alignment
:
Align
=
AlignDefault
,
init
:
DrawableDSL
.
(
Group
)
->
Unit
)
:
Group
image
Link copied to clipboard
fun
image
(
image
:
String
,
alignment
:
Align
=
AlignDefault
,
init
:
Image
.
(
)
->
Unit
?
=
null
)
:
Image
fun
image
(
image
:
PolyImage
,
alignment
:
Align
=
AlignDefault
,
init
:
Image
.
(
)
->
Unit
?
=
null
)
:
Image
invoke
Link copied to clipboard
operator
fun
<
S
:
Drawable
>
S
.
invoke
(
init
:
DrawableDSL
.
(
S
)
->
Unit
?
=
null
)
:
S
spacer
Link copied to clipboard
fun
spacer
(
size
:
Vec2
,
init
:
DrawableDSL
.
(
)
->
Unit
?
=
null
)
text
Link copied to clipboard
fun
text
(
text
:
String
,
wrap
:
Float
=
0.0f
,
alignment
:
Align
=
AlignDefault
,
init
:
Text
.
(
)
->
Unit
?
=
null
)
:
Text
text
Input
Link copied to clipboard
fun
textInput
(
text
:
String
,
placeholder
:
String
=
"polyui.textinput.placeholder"
,
alignment
:
Align
=
AlignDefault
,
init
:
TextInput
.
(
)
->
Unit
?
=
null
)
:
TextInput
use
Link copied to clipboard
fun
<
S
:
Drawable
>
S
.
use
(
init
:
DrawableDSL
.
(
S
)
->
Unit
?
=
null
)
:
S