WowAddons

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

textcstring

ClearFocus

self:ClearFocus()

ClearHighlightText

self:ClearHighlightText()

ClearHistory

self:ClearHistory()

Disable

self:Disable()

Enable

self:Enable()

GetAltArrowKeyMode

altMode = self:GetAltArrowKeyMode()

Returns

altModebool

GetBlinkSpeed

cursorBlinkSpeedSec = self:GetBlinkSpeed()

Returns

cursorBlinkSpeedSecnumber

GetCursorPosition

cursorPosition = self:GetCursorPosition()

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Returns

cursorPositionnumber

GetDisplayText

displayText = self:GetDisplayText()

May return nothing.

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Returns

displayTextstring

GetFont

name, fontHeight, flags = self:GetFont()

Returns

namecstring
fontHeightuiUnit
flagsTBFFlags

GetFontObject

font = self:GetFontObject()

Returns

fontSimpleFont

GetHighlightColor

colorR, colorG, colorB, colorA = self:GetHighlightColor()

Returns

colorRnumber
colorGnumber
colorBnumber
colorAnumber

GetHistoryLines

numHistoryLines = self:GetHistoryLines()

Returns

numHistoryLinesnumber

GetIndentedWordWrap

isIndented = self:GetIndentedWordWrap()

Returns

isIndentedbool

GetInputLanguage

language = self:GetInputLanguage()

Returns

languagecstring

GetJustifyH

justifyH = self:GetJustifyH()

Returns

justifyHJustifyHorizontal

GetJustifyV

justifyV = self:GetJustifyV()

Returns

justifyVJustifyVertical

GetMaxBytes

maxBytes = self:GetMaxBytes()

Returns

maxBytesnumber

GetMaxLetters

maxLetters = self:GetMaxLetters()

Returns

maxLettersnumber

GetNumLetters

numLetters = self:GetNumLetters()

May return nothing.

Returns

numLettersnumber

GetNumLines

lines = self:GetNumLines()

Returns

linesnumber

GetNumber

number = self:GetNumber()

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Returns

numbernumber may be nil

GetShadowColor

colorR, colorG, colorB, colorA = self:GetShadowColor()

Returns

colorRnumber
colorGnumber
colorBnumber
colorAnumber

GetShadowOffset

offsetX, offsetY = self:GetShadowOffset()

Returns

offsetXnumber
offsetYnumber

GetSpacing

fontHeight = self:GetSpacing()

Returns

fontHeightuiUnit

GetText

text = self:GetText()

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Returns

textcstring

GetTextColor

colorR, colorG, colorB, colorA = self:GetTextColor()

Returns

colorRnumber
colorGnumber
colorBnumber
colorAnumber

GetTextInsets

left, right, top, bottom = self:GetTextInsets()

Returns

leftuiUnit
rightuiUnit
topuiUnit
bottomuiUnit

GetUTF8CursorPosition

cursorPosition = self:GetUTF8CursorPosition()

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Returns

cursorPositionnumber

GetVisibleTextByteLimit

maxVisibleBytes = self:GetVisibleTextByteLimit()

Returns

maxVisibleBytesnumber

HasFocus

hasFocus = self:HasFocus()

Returns

hasFocusbool

HasText

hasText = self:HasText()

Returns

hasTextbool

HighlightText

self:HighlightText([start], [stop])

Arguments

startnumber default 0
stopnumber default -1

Insert

self:Insert(text)

Arguments

textcstring

IsAlphabeticOnly

enabled = self:IsAlphabeticOnly()

Returns

enabledbool

IsAutoFocus

autoFocus = self:IsAutoFocus()

Returns

autoFocusbool

IsCountInvisibleLetters

countInvisibleLetters = self:IsCountInvisibleLetters()

Returns

countInvisibleLettersbool

IsEnabled

isEnabled = self:IsEnabled()

Returns

isEnabledbool

IsInIMECompositionMode

isInIMECompositionMode = self:IsInIMECompositionMode()

Returns

isInIMECompositionModebool

IsMultiLine

multiline = self:IsMultiLine()

Returns

multilinebool

IsNumeric

isNumeric = self:IsNumeric()

Returns

isNumericbool

IsNumericFullRange

isNumeric = self:IsNumericFullRange()

Returns

isNumericbool

IsPassword

isPassword = self:IsPassword()

Returns

isPasswordbool

IsSecureText

isSecure = self:IsSecureText()

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Returns

isSecurebool

ResetInputMode

self:ResetInputMode()

SetAlphabeticOnly

self:SetAlphabeticOnly([enabled])

Arguments

enabledbool default false

SetAltArrowKeyMode

self:SetAltArrowKeyMode([altMode])

Arguments

altModebool default false

SetAutoFocus

self:SetAutoFocus([autoFocus])

Arguments

autoFocusbool default false

SetBlinkSpeed

self:SetBlinkSpeed(cursorBlinkSpeedSec)

Arguments

cursorBlinkSpeedSecnumber

SetCountInvisibleLetters

self:SetCountInvisibleLetters([countInvisibleLetters])

Arguments

countInvisibleLettersbool default false

SetCursorPosition

self:SetCursorPosition(cursorPosition)

Arguments

cursorPositionnumber

SetEnabled

self:SetEnabled([enabled])

Arguments

enabledbool default false

SetFocus

self:SetFocus()

SetFont

success = self:SetFont(fontFile, height, flags)

Arguments

fontFilecstring
heightuiFontHeight
flagsTBFFlags

Returns

successbool

SetFontObject

self:SetFontObject(font)

Arguments

fontSimpleFont

SetHighlightColor

self:SetHighlightColor(colorR, colorG, colorB, [a])

Arguments

colorRnumber
colorGnumber
colorBnumber
aSingleColorValue may be nil

SetHistoryLines

self:SetHistoryLines(numHistoryLines)

Arguments

numHistoryLinesnumber

SetIndentedWordWrap

self:SetIndentedWordWrap([isIndented])

Arguments

isIndentedbool default false

SetJustifyH

self:SetJustifyH(justifyH)

Arguments

justifyHJustifyHorizontal

SetJustifyV

self:SetJustifyV(justifyV)

Arguments

justifyVJustifyVertical

SetMaxBytes

self:SetMaxBytes(maxBytes)

Arguments

maxBytesnumber

SetMaxLetters

self:SetMaxLetters(maxLetters)

Arguments

maxLettersnumber

SetMultiLine

self:SetMultiLine([multiline])

Arguments

multilinebool default false

SetNumber

self:SetNumber(number)

Arguments

numbernumber

SetNumeric

self:SetNumeric([isNumeric])

Arguments

isNumericbool default false

SetNumericFullRange

self:SetNumericFullRange([isNumeric])

Arguments

isNumericbool default false

SetPassword

self:SetPassword([isPassword])

Arguments

isPasswordbool default false

SetSecureText

self:SetSecureText([isSecure])

Arguments

isSecurebool default false

SetSecurityDisablePaste

self:SetSecurityDisablePaste()

SetSecurityDisableSetText

self:SetSecurityDisableSetText()

SetShadowColor

self:SetShadowColor(colorR, colorG, colorB, [a])

Arguments

colorRnumber
colorGnumber
colorBnumber
aSingleColorValue may be nil

SetShadowOffset

self:SetShadowOffset(offsetX, offsetY)

Arguments

offsetXnumber
offsetYnumber

SetSpacing

self:SetSpacing(fontHeight)

Arguments

fontHeightuiUnit

SetText

self:SetText(text)

Arguments

textcstring

SetTextColor

self:SetTextColor(colorR, colorG, colorB, [a])

Arguments

colorRnumber
colorGnumber
colorBnumber
aSingleColorValue may be nil

SetTextInsets

self:SetTextInsets(left, right, top, bottom)

Arguments

leftuiUnit
rightuiUnit
topuiUnit
bottomuiUnit

SetVisibleTextByteLimit

self:SetVisibleTextByteLimit(maxVisibleBytes)

Arguments

maxVisibleBytesnumber

ToggleInputLanguage

self:ToggleInputLanguage()

It takes WowAddons

Free, for Windows, macOS and Linux: it puts the addon in your game in one click and keeps it up to date. Open it once, then press Install again.

WowAddons runs on your computer: open wowaddons.gg there.

Download for Windows