MoulConfig
Toggle table of contents
9999.9999.9999+16fcc03
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
MoulConfig
common
/
io.github.notenoughupdates.moulconfig.gui.component
/
ArrayComponent
Array
Component
open
class
ArrayComponent
<
T
>
:
GuiComponent
(
source
)
Members
Constructors
Array
Component
Link copied to clipboard
constructor
(
list
:
ObservableList
<
T
>
,
render
:
(
in
T
)
->
out
GuiComponent
)
constructor
(
list
:
ObservableList
<
T
>
,
render
:
(
in
T
)
->
out
GuiComponent
,
oddRows
:
Supplier
<
Color
>
,
evenRows
:
Supplier
<
Color
>
)
Types
Context
Visitor
Link copied to clipboard
@
FunctionalInterface
interface
ContextVisitor
Properties
cache
Link copied to clipboard
open
var
cache
:
IdentityHashMap
<
T
,
GuiComponent
>
even
Rows
Link copied to clipboard
val
evenRows
:
Supplier
<
Color
>
gui
Elements
Link copied to clipboard
open
var
guiElements
:
List
<
GuiComponent
>
height
Link copied to clipboard
open
val
height
:
Int
list
Link copied to clipboard
val
list
:
ObservableList
<
T
>
odd
Rows
Link copied to clipboard
val
oddRows
:
Supplier
<
Color
>
render
Link copied to clipboard
val
render
:
(
in
T
)
->
out
GuiComponent
width
Link copied to clipboard
open
val
width
:
Int
Functions
fold
Children
Link copied to clipboard
open
fun
<
T
>
foldChildren
(
initial
:
T
,
visitor
:
BiFunction
<
GuiComponent
,
T
,
T
>
)
:
T
Walk over the direct children of this element.
fold
With
Context
Link copied to clipboard
open
fun
foldWithContext
(
context
:
GuiImmediateContext
,
visitor
:
ArrayComponent.ContextVisitor
)
keyboard
Event
Link copied to clipboard
open
fun
keyboardEvent
(
keyboardEvent
:
KeyboardEvent
,
context
:
GuiImmediateContext
)
:
Boolean
Called by the parent renderer.
mouse
Event
Link copied to clipboard
open
fun
mouseEvent
(
mouseEvent
:
MouseEvent
,
context
:
GuiImmediateContext
)
:
Boolean
Called by the parent renderer.
reinitialize
Children
Link copied to clipboard
open
fun
reinitializeChildren
(
)
render
Link copied to clipboard
open
fun
render
(
context
:
GuiImmediateContext
)
Called by the parent renderer.