World of Warcraft Forever API · SimpleEditBoxAPI.md, for your AI
SimpleEditBoxAPI (widget methods)
79 functions, as Blizzard documents them for Forever 1.60.1 (70959).
Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.
Functions
AddHistoryLine
self:AddHistoryLine(text)
Arguments
text | cstring |
|---|
ClearFocus
self:ClearFocus()
ClearHighlightText
self:ClearHighlightText()
ClearHistory
self:ClearHistory()
Disable
self:Disable()
Enable
self:Enable()
GetAltArrowKeyMode
altMode = self:GetAltArrowKeyMode()
Returns
altMode | bool |
|---|
GetBlinkSpeed
cursorBlinkSpeedSec = self:GetBlinkSpeed()
Returns
cursorBlinkSpeedSec | number |
|---|
GetCursorPosition
cursorPosition = self:GetCursorPosition()
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Returns
cursorPosition | number |
|---|
GetDisplayText
displayText = self:GetDisplayText()
May return nothing.
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Returns
displayText | string |
|---|
GetFont
name, fontHeight, flags = self:GetFont()
Returns
name | cstring | |
|---|---|---|
fontHeight | uiUnit | |
flags | TBFFlags |
GetFontObject
font = self:GetFontObject()
Returns
font | SimpleFont |
|---|
GetHighlightColor
colorR, colorG, colorB, colorA = self:GetHighlightColor()
Returns
colorR | number | |
|---|---|---|
colorG | number | |
colorB | number | |
colorA | number |
GetHistoryLines
numHistoryLines = self:GetHistoryLines()
Returns
numHistoryLines | number |
|---|
GetIndentedWordWrap
isIndented = self:GetIndentedWordWrap()
Returns
isIndented | bool |
|---|
GetInputLanguage
language = self:GetInputLanguage()
Returns
language | cstring |
|---|
GetJustifyH
justifyH = self:GetJustifyH()
Returns
justifyH | JustifyHorizontal |
|---|
GetJustifyV
justifyV = self:GetJustifyV()
Returns
justifyV | JustifyVertical |
|---|
GetMaxBytes
maxBytes = self:GetMaxBytes()
Returns
maxBytes | number |
|---|
GetMaxLetters
maxLetters = self:GetMaxLetters()
Returns
maxLetters | number |
|---|
GetNumLetters
numLetters = self:GetNumLetters()
May return nothing.
Returns
numLetters | number |
|---|
GetNumLines
lines = self:GetNumLines()
Returns
lines | number |
|---|
GetNumber
number = self:GetNumber()
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Returns
number | number may be nil |
|---|
GetShadowColor
colorR, colorG, colorB, colorA = self:GetShadowColor()
Returns
colorR | number | |
|---|---|---|
colorG | number | |
colorB | number | |
colorA | number |
GetShadowOffset
offsetX, offsetY = self:GetShadowOffset()
Returns
offsetX | number | |
|---|---|---|
offsetY | number |
GetSpacing
fontHeight = self:GetSpacing()
Returns
fontHeight | uiUnit |
|---|
GetText
text = self:GetText()
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Returns
text | cstring |
|---|
GetTextColor
colorR, colorG, colorB, colorA = self:GetTextColor()
Returns
colorR | number | |
|---|---|---|
colorG | number | |
colorB | number | |
colorA | number |
GetTextInsets
left, right, top, bottom = self:GetTextInsets()
Returns
left | uiUnit | |
|---|---|---|
right | uiUnit | |
top | uiUnit | |
bottom | uiUnit |
GetUTF8CursorPosition
cursorPosition = self:GetUTF8CursorPosition()
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Returns
cursorPosition | number |
|---|
GetVisibleTextByteLimit
maxVisibleBytes = self:GetVisibleTextByteLimit()
Returns
maxVisibleBytes | number |
|---|
HasFocus
hasFocus = self:HasFocus()
Returns
hasFocus | bool |
|---|
HasText
hasText = self:HasText()
Returns
hasText | bool |
|---|
HighlightText
self:HighlightText([start], [stop])
Arguments
start | number default 0 | |
|---|---|---|
stop | number default -1 |
Insert
self:Insert(text)
Arguments
text | cstring |
|---|
IsAlphabeticOnly
enabled = self:IsAlphabeticOnly()
Returns
enabled | bool |
|---|
IsAutoFocus
autoFocus = self:IsAutoFocus()
Returns
autoFocus | bool |
|---|
IsCountInvisibleLetters
countInvisibleLetters = self:IsCountInvisibleLetters()
Returns
countInvisibleLetters | bool |
|---|
IsEnabled
isEnabled = self:IsEnabled()
Returns
isEnabled | bool |
|---|
IsInIMECompositionMode
isInIMECompositionMode = self:IsInIMECompositionMode()
Returns
isInIMECompositionMode | bool |
|---|
IsMultiLine
multiline = self:IsMultiLine()
Returns
multiline | bool |
|---|
IsNumeric
isNumeric = self:IsNumeric()
Returns
isNumeric | bool |
|---|
IsNumericFullRange
isNumeric = self:IsNumericFullRange()
Returns
isNumeric | bool |
|---|
IsPassword
isPassword = self:IsPassword()
Returns
isPassword | bool |
|---|
IsSecureText
isSecure = self:IsSecureText()
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Returns
isSecure | bool |
|---|
ResetInputMode
self:ResetInputMode()
SetAlphabeticOnly
self:SetAlphabeticOnly([enabled])
Arguments
enabled | bool default false |
|---|
SetAltArrowKeyMode
self:SetAltArrowKeyMode([altMode])
Arguments
altMode | bool default false |
|---|
SetAutoFocus
self:SetAutoFocus([autoFocus])
Arguments
autoFocus | bool default false |
|---|
SetBlinkSpeed
self:SetBlinkSpeed(cursorBlinkSpeedSec)
Arguments
cursorBlinkSpeedSec | number |
|---|
SetCountInvisibleLetters
self:SetCountInvisibleLetters([countInvisibleLetters])
Arguments
countInvisibleLetters | bool default false |
|---|
SetCursorPosition
self:SetCursorPosition(cursorPosition)
Arguments
cursorPosition | number |
|---|
SetEnabled
self:SetEnabled([enabled])
Arguments
enabled | bool default false |
|---|
SetFocus
self:SetFocus()
SetFont
success = self:SetFont(fontFile, height, flags)
Arguments
fontFile | cstring | |
|---|---|---|
height | uiFontHeight | |
flags | TBFFlags |
Returns
success | bool |
|---|
SetFontObject
self:SetFontObject(font)
Arguments
font | SimpleFont |
|---|
SetHighlightColor
self:SetHighlightColor(colorR, colorG, colorB, [a])
Arguments
colorR | number | |
|---|---|---|
colorG | number | |
colorB | number | |
a | SingleColorValue may be nil |
SetHistoryLines
self:SetHistoryLines(numHistoryLines)
Arguments
numHistoryLines | number |
|---|
SetIndentedWordWrap
self:SetIndentedWordWrap([isIndented])
Arguments
isIndented | bool default false |
|---|
SetJustifyH
self:SetJustifyH(justifyH)
Arguments
justifyH | JustifyHorizontal |
|---|
SetJustifyV
self:SetJustifyV(justifyV)
Arguments
justifyV | JustifyVertical |
|---|
SetMaxBytes
self:SetMaxBytes(maxBytes)
Arguments
maxBytes | number |
|---|
SetMaxLetters
self:SetMaxLetters(maxLetters)
Arguments
maxLetters | number |
|---|
SetMultiLine
self:SetMultiLine([multiline])
Arguments
multiline | bool default false |
|---|
SetNumber
self:SetNumber(number)
Arguments
number | number |
|---|
SetNumeric
self:SetNumeric([isNumeric])
Arguments
isNumeric | bool default false |
|---|
SetNumericFullRange
self:SetNumericFullRange([isNumeric])
Arguments
isNumeric | bool default false |
|---|
SetPassword
self:SetPassword([isPassword])
Arguments
isPassword | bool default false |
|---|
SetSecureText
self:SetSecureText([isSecure])
Arguments
isSecure | bool default false |
|---|
SetSecurityDisablePaste
self:SetSecurityDisablePaste()
SetSecurityDisableSetText
self:SetSecurityDisableSetText()
SetShadowColor
self:SetShadowColor(colorR, colorG, colorB, [a])
Arguments
colorR | number | |
|---|---|---|
colorG | number | |
colorB | number | |
a | SingleColorValue may be nil |
SetShadowOffset
self:SetShadowOffset(offsetX, offsetY)
Arguments
offsetX | number | |
|---|---|---|
offsetY | number |
SetSpacing
self:SetSpacing(fontHeight)
Arguments
fontHeight | uiUnit |
|---|
SetText
self:SetText(text)
Arguments
text | cstring |
|---|
SetTextColor
self:SetTextColor(colorR, colorG, colorB, [a])
Arguments
colorR | number | |
|---|---|---|
colorG | number | |
colorB | number | |
a | SingleColorValue may be nil |
SetTextInsets
self:SetTextInsets(left, right, top, bottom)
Arguments
left | uiUnit | |
|---|---|---|
right | uiUnit | |
top | uiUnit | |
bottom | uiUnit |
SetVisibleTextByteLimit
self:SetVisibleTextByteLimit(maxVisibleBytes)
Arguments
maxVisibleBytes | number |
|---|
ToggleInputLanguage
self:ToggleInputLanguage()