# SimpleEditBoxAPI (widget methods): World of Warcraft Forever API

Forever 1.60.1 (70959), Interface 16001, Lua 5.1, from Blizzard's own API documentation. Page: https://wowaddons.gg/forever-api/SimpleEditBoxAPI

## Functions

### AddHistoryLine

```lua
self:AddHistoryLine(text)
```

Arguments:
- `text`: cstring

### ClearFocus

```lua
self:ClearFocus()
```

### ClearHighlightText

```lua
self:ClearHighlightText()
```

### ClearHistory

```lua
self:ClearHistory()
```

### Disable

```lua
self:Disable()
```

### Enable

```lua
self:Enable()
```

### GetAltArrowKeyMode

```lua
altMode = self:GetAltArrowKeyMode()
```

Returns:
- `altMode`: bool

### GetBlinkSpeed

```lua
cursorBlinkSpeedSec = self:GetBlinkSpeed()
```

Returns:
- `cursorBlinkSpeedSec`: number

### GetCursorPosition

```lua
cursorPosition = self:GetCursorPosition()
```

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

Returns:
- `cursorPosition`: number

### GetDisplayText

```lua
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

```lua
name, fontHeight, flags = self:GetFont()
```

Returns:
- `name`: cstring
- `fontHeight`: uiUnit
- `flags`: TBFFlags

### GetFontObject

```lua
font = self:GetFontObject()
```

Returns:
- `font`: SimpleFont

### GetHighlightColor

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

Returns:
- `colorR`: number
- `colorG`: number
- `colorB`: number
- `colorA`: number

### GetHistoryLines

```lua
numHistoryLines = self:GetHistoryLines()
```

Returns:
- `numHistoryLines`: number

### GetIndentedWordWrap

```lua
isIndented = self:GetIndentedWordWrap()
```

Returns:
- `isIndented`: bool

### GetInputLanguage

```lua
language = self:GetInputLanguage()
```

Returns:
- `language`: cstring

### GetJustifyH

```lua
justifyH = self:GetJustifyH()
```

Returns:
- `justifyH`: JustifyHorizontal

### GetJustifyV

```lua
justifyV = self:GetJustifyV()
```

Returns:
- `justifyV`: JustifyVertical

### GetMaxBytes

```lua
maxBytes = self:GetMaxBytes()
```

Returns:
- `maxBytes`: number

### GetMaxLetters

```lua
maxLetters = self:GetMaxLetters()
```

Returns:
- `maxLetters`: number

### GetNumLetters

```lua
numLetters = self:GetNumLetters()
```

May return nothing.

Returns:
- `numLetters`: number

### GetNumLines

```lua
lines = self:GetNumLines()
```

Returns:
- `lines`: number

### GetNumber

```lua
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

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

Returns:
- `colorR`: number
- `colorG`: number
- `colorB`: number
- `colorA`: number

### GetShadowOffset

```lua
offsetX, offsetY = self:GetShadowOffset()
```

Returns:
- `offsetX`: number
- `offsetY`: number

### GetSpacing

```lua
fontHeight = self:GetSpacing()
```

Returns:
- `fontHeight`: uiUnit

### GetText

```lua
text = self:GetText()
```

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

Returns:
- `text`: cstring

### GetTextColor

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

Returns:
- `colorR`: number
- `colorG`: number
- `colorB`: number
- `colorA`: number

### GetTextInsets

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

Returns:
- `left`: uiUnit
- `right`: uiUnit
- `top`: uiUnit
- `bottom`: uiUnit

### GetUTF8CursorPosition

```lua
cursorPosition = self:GetUTF8CursorPosition()
```

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

Returns:
- `cursorPosition`: number

### GetVisibleTextByteLimit

```lua
maxVisibleBytes = self:GetVisibleTextByteLimit()
```

Returns:
- `maxVisibleBytes`: number

### HasFocus

```lua
hasFocus = self:HasFocus()
```

Returns:
- `hasFocus`: bool

### HasText

```lua
hasText = self:HasText()
```

Returns:
- `hasText`: bool

### HighlightText

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

Arguments:
- `start`: number, default 0
- `stop`: number, default -1

### Insert

```lua
self:Insert(text)
```

Arguments:
- `text`: cstring

### IsAlphabeticOnly

```lua
enabled = self:IsAlphabeticOnly()
```

Returns:
- `enabled`: bool

### IsAutoFocus

```lua
autoFocus = self:IsAutoFocus()
```

Returns:
- `autoFocus`: bool

### IsCountInvisibleLetters

```lua
countInvisibleLetters = self:IsCountInvisibleLetters()
```

Returns:
- `countInvisibleLetters`: bool

### IsEnabled

```lua
isEnabled = self:IsEnabled()
```

Returns:
- `isEnabled`: bool

### IsInIMECompositionMode

```lua
isInIMECompositionMode = self:IsInIMECompositionMode()
```

Returns:
- `isInIMECompositionMode`: bool

### IsMultiLine

```lua
multiline = self:IsMultiLine()
```

Returns:
- `multiline`: bool

### IsNumeric

```lua
isNumeric = self:IsNumeric()
```

Returns:
- `isNumeric`: bool

### IsNumericFullRange

```lua
isNumeric = self:IsNumericFullRange()
```

Returns:
- `isNumeric`: bool

### IsPassword

```lua
isPassword = self:IsPassword()
```

Returns:
- `isPassword`: bool

### IsSecureText

```lua
isSecure = self:IsSecureText()
```

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

Returns:
- `isSecure`: bool

### ResetInputMode

```lua
self:ResetInputMode()
```

### SetAlphabeticOnly

```lua
self:SetAlphabeticOnly([enabled])
```

Arguments:
- `enabled`: bool, default false

### SetAltArrowKeyMode

```lua
self:SetAltArrowKeyMode([altMode])
```

Arguments:
- `altMode`: bool, default false

### SetAutoFocus

```lua
self:SetAutoFocus([autoFocus])
```

Arguments:
- `autoFocus`: bool, default false

### SetBlinkSpeed

```lua
self:SetBlinkSpeed(cursorBlinkSpeedSec)
```

Arguments:
- `cursorBlinkSpeedSec`: number

### SetCountInvisibleLetters

```lua
self:SetCountInvisibleLetters([countInvisibleLetters])
```

Arguments:
- `countInvisibleLetters`: bool, default false

### SetCursorPosition

```lua
self:SetCursorPosition(cursorPosition)
```

Arguments:
- `cursorPosition`: number

### SetEnabled

```lua
self:SetEnabled([enabled])
```

Arguments:
- `enabled`: bool, default false

### SetFocus

```lua
self:SetFocus()
```

### SetFont

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

Arguments:
- `fontFile`: cstring
- `height`: uiFontHeight
- `flags`: TBFFlags

Returns:
- `success`: bool

### SetFontObject

```lua
self:SetFontObject(font)
```

Arguments:
- `font`: SimpleFont

### SetHighlightColor

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

Arguments:
- `colorR`: number
- `colorG`: number
- `colorB`: number
- `a`: SingleColorValue, may be nil

### SetHistoryLines

```lua
self:SetHistoryLines(numHistoryLines)
```

Arguments:
- `numHistoryLines`: number

### SetIndentedWordWrap

```lua
self:SetIndentedWordWrap([isIndented])
```

Arguments:
- `isIndented`: bool, default false

### SetJustifyH

```lua
self:SetJustifyH(justifyH)
```

Arguments:
- `justifyH`: JustifyHorizontal

### SetJustifyV

```lua
self:SetJustifyV(justifyV)
```

Arguments:
- `justifyV`: JustifyVertical

### SetMaxBytes

```lua
self:SetMaxBytes(maxBytes)
```

Arguments:
- `maxBytes`: number

### SetMaxLetters

```lua
self:SetMaxLetters(maxLetters)
```

Arguments:
- `maxLetters`: number

### SetMultiLine

```lua
self:SetMultiLine([multiline])
```

Arguments:
- `multiline`: bool, default false

### SetNumber

```lua
self:SetNumber(number)
```

Arguments:
- `number`: number

### SetNumeric

```lua
self:SetNumeric([isNumeric])
```

Arguments:
- `isNumeric`: bool, default false

### SetNumericFullRange

```lua
self:SetNumericFullRange([isNumeric])
```

Arguments:
- `isNumeric`: bool, default false

### SetPassword

```lua
self:SetPassword([isPassword])
```

Arguments:
- `isPassword`: bool, default false

### SetSecureText

```lua
self:SetSecureText([isSecure])
```

Arguments:
- `isSecure`: bool, default false

### SetSecurityDisablePaste

```lua
self:SetSecurityDisablePaste()
```

### SetSecurityDisableSetText

```lua
self:SetSecurityDisableSetText()
```

### SetShadowColor

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

Arguments:
- `colorR`: number
- `colorG`: number
- `colorB`: number
- `a`: SingleColorValue, may be nil

### SetShadowOffset

```lua
self:SetShadowOffset(offsetX, offsetY)
```

Arguments:
- `offsetX`: number
- `offsetY`: number

### SetSpacing

```lua
self:SetSpacing(fontHeight)
```

Arguments:
- `fontHeight`: uiUnit

### SetText

```lua
self:SetText(text)
```

Arguments:
- `text`: cstring

### SetTextColor

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

Arguments:
- `colorR`: number
- `colorG`: number
- `colorB`: number
- `a`: SingleColorValue, may be nil

### SetTextInsets

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

Arguments:
- `left`: uiUnit
- `right`: uiUnit
- `top`: uiUnit
- `bottom`: uiUnit

### SetVisibleTextByteLimit

```lua
self:SetVisibleTextByteLimit(maxVisibleBytes)
```

Arguments:
- `maxVisibleBytes`: number

### ToggleInputLanguage

```lua
self:ToggleInputLanguage()
```

---
Make an addon with your 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."
