toggle menu
MoulConfig
3.2.0
jvm
switch theme
search in API
common
/
io.github.notenoughupdates.moulconfig.gui
/
GuiContext
Gui
Context
open
class
GuiContext
(
source
)
A GuiContext manages focus and global state of a collection of
gui elements
.
Members
Constructors
Gui
Context
Link copied to clipboard
constructor
(
root
:
GuiComponent
)
Properties
close
Request
Handler
Link copied to clipboard
open
var
closeRequestHandler
:
Runnable
floating
Windows
Link copied to clipboard
open
var
floatingWindows
:
List
<
FloatingGuiElement
>
focused
Element
Link copied to clipboard
open
var
focusedElement
:
GuiComponent
root
Link copied to clipboard
val
root
:
GuiComponent
The root element of this GuiContext
Functions
on
After
Close
Link copied to clipboard
open
fun
onAfterClose
(
)
on
Before
Close
Link copied to clipboard
open
fun
onBeforeClose
(
)
:
CloseEventListener.CloseAction
request
Close
Link copied to clipboard
open
fun
requestClose
(
)
set
Focused
Element
Link copied to clipboard
open
fun
setFocusedElement
(
focusedElement
:
GuiComponent
)