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