# SimpleHTMLAPI (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/SimpleHTMLAPI

## Functions

### GetContentHeight

```lua
height = self:GetContentHeight()
```

Returns:
- `height`: uiUnit

### GetFont

```lua
fontFile, height, flags = self:GetFont(textType)
```

Arguments:
- `textType`: HTMLTextType

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

### GetFontObject

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

Arguments:
- `textType`: HTMLTextType

Returns:
- `font`: SimpleFont

### GetHyperlinkFormat

```lua
format = self:GetHyperlinkFormat()
```

Returns:
- `format`: cstring

### GetIndentedWordWrap

```lua
wordWrap = self:GetIndentedWordWrap(textType)
```

Arguments:
- `textType`: HTMLTextType

Returns:
- `wordWrap`: bool

### GetJustifyH

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

Arguments:
- `textType`: HTMLTextType

Returns:
- `justifyH`: JustifyHorizontal

### GetJustifyV

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

Arguments:
- `textType`: HTMLTextType

Returns:
- `justifyV`: JustifyVertical

### GetShadowColor

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

Arguments:
- `textType`: HTMLTextType

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

### GetShadowOffset

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

Arguments:
- `textType`: HTMLTextType

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

### GetSpacing

```lua
spacing = self:GetSpacing(textType)
```

Arguments:
- `textType`: HTMLTextType

Returns:
- `spacing`: uiUnit

### GetTextColor

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

Arguments:
- `textType`: HTMLTextType

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

### GetTextData

```lua
content = self:GetTextData()
```

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

Returns:
- `content`: HTMLContentNode[]

### SetFont

```lua
self:SetFont(textType, fontFile, height, flags)
```

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

### SetFontObject

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

Arguments:
- `textType`: HTMLTextType
- `font`: SimpleFont

### SetHyperlinkFormat

```lua
self:SetHyperlinkFormat(format)
```

Arguments:
- `format`: cstring

### SetIndentedWordWrap

```lua
self:SetIndentedWordWrap(textType, wordWrap)
```

Arguments:
- `textType`: HTMLTextType
- `wordWrap`: bool

### SetJustifyH

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

Arguments:
- `textType`: HTMLTextType
- `justifyH`: JustifyHorizontal

### SetJustifyV

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

Arguments:
- `textType`: HTMLTextType
- `justifyV`: JustifyVertical

### SetShadowColor

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

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

### SetShadowOffset

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

Arguments:
- `textType`: HTMLTextType
- `offsetX`: number
- `offsetY`: number

### SetSpacing

```lua
self:SetSpacing(textType, spacing)
```

Arguments:
- `textType`: HTMLTextType
- `spacing`: uiUnit

### SetText

```lua
self:SetText(text, [ignoreMarkup])
```

Arguments:
- `text`: cstring
- `ignoreMarkup`: bool, default false

### SetTextColor

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

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

---
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."
