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
/
SwitchComponent
Switch
Component
open
class
SwitchComponent
:
GuiComponent
(
source
)
A gui element displaying a switch to represent a boolean value.
Members
Constructors
Switch
Component
Link copied to clipboard
constructor
(
value
:
GetSetter
<
Boolean
>
,
timeToReachTarget
:
Int
)
Functions
get
Height
Link copied to clipboard
open
fun
getHeight
(
)
:
Int
Get the requested y size for this element.
get
Width
Link copied to clipboard
open
fun
getWidth
(
)
:
Int
Get the requested x size for this element.
mouse
Event
Link copied to clipboard
open
fun
mouseEvent
(
event
:
MouseEvent
,
context
:
GuiImmediateContext
)
:
Boolean
Called by the parent renderer.
render
Link copied to clipboard
open
fun
render
(
context
:
GuiImmediateContext
)
Called by the parent renderer.