polyui
1.5.02
jvm
polyui
/
org.polyfrost.polyui.dsl
/
DrawableDSL
Drawable
DSL
open
class
DrawableDSL
(
_this
:
Drawable
)
Inheritors
Master
Members
Constructors
Drawable
DSL
Link copied to clipboard
constructor
(
_this
:
Drawable
)
Types
Master
Link copied to clipboard
class
Master
:
DrawableDSL
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
group
Link copied to clipboard
inline
fun
group
(
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