polyui
1.7.26
jvm
polyui
/
org.polyfrost.polyui.dsl
/
DrawableDSL
/
Master
Master
class
Master
:
DrawableDSL
Members
Constructors
Master
Link copied to clipboard
constructor
(
)
Properties
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
@get:
JvmName
(
name
=
"getSize"
)
@set:
JvmName
(
name
=
"setSize"
)
var
size
:
Vec2
translator
Link copied to clipboard
var
translator
:
Translator
?
Functions
add
Link copied to clipboard
inline
fun
<
S
:
Drawable
>
S
.
add
(
init
:
DrawableDSL
.
(
S
)
->
Unit
=
{}
)
:
S
block
Link copied to clipboard
@
JvmName
(
name
=
"block"
)
inline
fun
block
(
size
:
Vec2
=
Vec2.ZERO
,
alignment
:
Align
=
AlignDefault
,
init
:
DrawableDSL
.
(
Block
)
->
Unit
=
{}
)
:
Block
build
Link copied to clipboard
fun
build
(
)
:
PolyUI
group
Link copied to clipboard
@
JvmName
(
name
=
"group"
)
inline
fun
group
(
visibleSize
:
Vec2
=
Vec2.ZERO
,
alignment
:
Align
=
AlignDefault
,
init
:
DrawableDSL
.
(
Group
)
->
Unit
)
:
Group
image
Link copied to clipboard
inline
fun
image
(
image
:
String
,
alignment
:
Align
=
AlignDefault
,
init
:
Image
.
(
)
->
Unit
=
{}
)
inline
fun
image
(
image
:
PolyImage
,
alignment
:
Align
=
AlignDefault
,
init
:
Image
.
(
)
->
Unit
=
{}
)
:
Image
invoke
Link copied to clipboard
inline operator
fun
<
S
:
Drawable
>
S
.
invoke
(
init
:
DrawableDSL
.
(
S
)
->
Unit
=
{}
)
:
S
text
Link copied to clipboard
@
JvmName
(
name
=
"text"
)
inline
fun
text
(
text
:
String
,
visibleSize
:
Vec2
=
Vec2.ZERO
,
alignment
:
Align
=
AlignDefault
,
limited
:
Boolean
=
false
,
init
:
Text
.
(
)
->
Unit
=
{}
)
:
Text
text
Input
Link copied to clipboard
@
JvmName
(
name
=
"textInput"
)
inline
fun
textInput
(
text
:
String
=
""
,
visibleSize
:
Vec2
=
Vec2.ZERO
,
placeholder
:
String
=
"polyui.textinput.placeholder"
,
alignment
:
Align
=
AlignDefault
,
init
:
TextInput
.
(
)
->
Unit
=
{}
)
:
TextInput
use
Link copied to clipboard
inline
fun
<
S
:
Drawable
>
S
.
use
(
init
:
DrawableDSL
.
(
S
)
->
Unit
=
{}
)
:
S