polyui
1.9.1
jvm
polyui
/
org.polyfrost.polyui.dsl
/
DrawableDSL
Drawable
DSL
open
class
DrawableDSL
<
T
:
Drawable
>
(
_this
:
T
)
Inheritors
Master
Members
Constructors
Drawable
DSL
Link copied to clipboard
constructor
(
_this
:
T
)
Types
Master
Link copied to clipboard
class
Master
:
DrawableDSL
<
Block
>
Functions
add
Link copied to clipboard
inline
fun
<
S
:
Drawable
>
S
.
add
(
init
:
DrawableDSL
<
S
>
.
(
S
)
->
Unit
=
{}
)
:
S
block
Link copied to clipboard
@
JvmName
(
name
=
"block"
)
inline
fun
block
(
size
:
Vec2
=
Vec2.ZERO
,
alignment
:
Align
=
AlignDefault
,
init
:
DrawableDSL
<
Block
>
.
(
Block
)
->
Unit
=
{}
)
:
Block
configure
Link copied to clipboard
inline
fun
configure
(
init
:
T
.
(
)
->
Unit
)
:
T
group
Link copied to clipboard
@
JvmName
(
name
=
"group"
)
inline
fun
group
(
visibleSize
:
Vec2
=
Vec2.ZERO
,
alignment
:
Align
=
AlignDefault
,
init
:
DrawableDSL
<
Group
>
.
(
Group
)
->
Unit
)
:
Group
image
Link copied to clipboard
inline
fun
image
(
image
:
String
,
alignment
:
Align
=
AlignDefault
,
init
:
Image
.
(
)
->
Unit
=
{}
)
:
Image
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
>
.
(
S
)
->
Unit
=
{}
)
:
S
popup
Link copied to clipboard
@
JvmName
(
name
=
"popup"
)
inline
fun
popup
(
vararg
children
:
Component
?
,
size
:
Vec2
=
Vec2.ZERO
,
alignment
:
Align
=
AlignDefault
,
position
:
Point
=
Point.At
,
init
:
Block
.
(
)
->
Unit
=
{}
)
:
Block
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
>
.
(
S
)
->
Unit
=
{}
)
:
S