toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge
/
korlibs.render
/
GameWindow
/
MenuItem
Menu
Item
data
class
MenuItem
(
val
text
:
String
?
,
val
enabled
:
Boolean
=
true
,
val
children
:
List
<
GameWindow.MenuItem
>
?
=
null
,
val
action
:
(
)
->
Unit
=
{}
)
Members
Constructors
Menu
Item
Link copied to clipboard
constructor
(
text
:
String
?
,
enabled
:
Boolean
=
true
,
children
:
List
<
GameWindow.MenuItem
>
?
=
null
,
action
:
(
)
->
Unit
=
{}
)
Properties
action
Link copied to clipboard
val
action
:
(
)
->
Unit
children
Link copied to clipboard
val
children
:
List
<
GameWindow.MenuItem
>
?
=
null
enabled
Link copied to clipboard
val
enabled
:
Boolean
=
true
text
Link copied to clipboard
val
text
:
String
?