toggle menu
MoulConfig
3.2.0
jvm
switch theme
search in API
legacy
/
io.github.notenoughupdates.moulconfig.gui.elements
/
GuiElementTextField
Gui
Element
Text
Field
open
class
GuiElementTextField
(
source
)
Members
Constructors
Gui
Element
Text
Field
Link copied to clipboard
constructor
(
initialText
:
String
,
options
:
Int
)
constructor
(
initialText
:
String
,
sizeX
:
Int
,
sizeY
:
Int
,
options
:
Int
)
Properties
COLOUR
Link copied to clipboard
val
COLOUR
:
Int
=
2
DISABLE_BG
Link copied to clipboard
val
DISABLE_BG
:
Int
=
64
focus
Link copied to clipboard
open
var
focus
:
Boolean
FORCE_CAPS
Link copied to clipboard
val
FORCE_CAPS
:
Int
=
4
MULTILINE
Link copied to clipboard
val
MULTILINE
:
Int
=
1
NO_SPACE
Link copied to clipboard
val
NO_SPACE
:
Int
=
8
NUM_ONLY
Link copied to clipboard
val
NUM_ONLY
:
Int
=
16
SCALE_TEXT
Link copied to clipboard
val
SCALE_TEXT
:
Int
=
32
SCISSOR_TEXT
Link copied to clipboard
val
SCISSOR_TEXT
:
Int
=
128
Functions
get
Cursor
Pos
Link copied to clipboard
open
fun
getCursorPos
(
mouseX
:
Int
,
mouseY
:
Int
)
:
Int
get
Height
Link copied to clipboard
open
fun
getHeight
(
)
:
Int
get
Text
Link copied to clipboard
open
fun
getText
(
)
:
String
get
Text
Display
Link copied to clipboard
open
fun
getTextDisplay
(
)
:
String
get
Width
Link copied to clipboard
open
fun
getWidth
(
)
:
Int
key
Typed
Link copied to clipboard
open
fun
keyTyped
(
typedChar
:
Char
,
keyCode
:
Int
)
mouse
Clicked
Link copied to clipboard
open
fun
mouseClicked
(
mouseX
:
Int
,
mouseY
:
Int
,
mouseButton
:
Int
)
mouse
Click
Move
Link copied to clipboard
open
fun
mouseClickMove
(
mouseX
:
Int
,
mouseY
:
Int
)
mouse
Moved
Link copied to clipboard
open
fun
mouseMoved
(
mouseX
:
Int
,
mouseY
:
Int
)
mouse
Unclicked
Link copied to clipboard
open
fun
mouseUnclicked
(
mouseX
:
Int
,
mouseY
:
Int
,
mouseButton
:
Int
)
render
Link copied to clipboard
open
fun
render
(
x
:
Int
,
y
:
Int
)
set
Custom
Border
Colour
Link copied to clipboard
open
fun
setCustomBorderColour
(
colour
:
Int
)
set
Custom
Text
Colour
Link copied to clipboard
open
fun
setCustomTextColour
(
colour
:
Int
)
set
Max
String
Length
Link copied to clipboard
open
fun
setMaxStringLength
(
len
:
Int
)
set
Options
Link copied to clipboard
open
fun
setOptions
(
options
:
Int
)
set
Prepend
Text
Link copied to clipboard
open
fun
setPrependText
(
text
:
String
)
set
Size
Link copied to clipboard
open
fun
setSize
(
searchBarXSize
:
Int
,
searchBarYSize
:
Int
)
set
Text
Link copied to clipboard
open
fun
setText
(
text
:
String
)
str
Len
No
Color
Link copied to clipboard
open
fun
strLenNoColor
(
str
:
String
)
:
Int
to
String
Link copied to clipboard
open
fun
toString
(
)
:
String
unfocus
Link copied to clipboard
open
fun
unfocus
(
)