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

## Functions

### GetFillStyle

```lua
fillStyle = self:GetFillStyle()
```

Returns:
- `fillStyle`: StatusBarFillStyle

### GetInterpolatedValue

```lua
value = self:GetInterpolatedValue()
```

Returns the current interpolated value displayed by the bar.

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

Returns:
- `value`: number

### GetMinMaxValues

```lua
minValue, maxValue = self:GetMinMaxValues()
```

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

Returns:
- `minValue`: number
- `maxValue`: number

### GetOrientation

```lua
orientation = self:GetOrientation()
```

Returns:
- `orientation`: Orientation

### GetRenderMode

```lua
renderMode = self:GetRenderMode()
```

Returns:
- `renderMode`: StatusBarRenderMode

### GetReverseFill

```lua
isReverseFill = self:GetReverseFill()
```

Returns:
- `isReverseFill`: bool

### GetRotatesTexture

```lua
rotatesTexture = self:GetRotatesTexture()
```

Returns:
- `rotatesTexture`: bool

### GetStatusBarColor

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

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

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

### GetStatusBarDesaturation

```lua
desaturation = self:GetStatusBarDesaturation()
```

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

Returns:
- `desaturation`: normalizedValue

### GetStatusBarTexture

```lua
texture = self:GetStatusBarTexture()
```

Returns:
- `texture`: SimpleTexture

### GetTimerDuration

```lua
duration = self:GetTimerDuration()
```

Returns:
- `duration`: LuaDurationObject

### GetValue

```lua
value = self:GetValue()
```

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

Returns:
- `value`: number

### IsInterpolating

```lua
isInterpolating = self:IsInterpolating()
```

Returns true if the status bar is currently interpolating toward a target value.

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

Returns:
- `isInterpolating`: bool

### IsStatusBarDesaturated

```lua
desaturated = self:IsStatusBarDesaturated()
```

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

Returns:
- `desaturated`: bool

### SetColorFill

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

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

### SetFillStyle

```lua
self:SetFillStyle(fillStyle)
```

Arguments:
- `fillStyle`: StatusBarFillStyle

### SetMinMaxValues

```lua
self:SetMinMaxValues(minValue, maxValue, [interpolation])
```

Arguments:
- `minValue`: number
- `maxValue`: number
- `interpolation`: StatusBarInterpolation, default "Immediate"

### SetOrientation

```lua
self:SetOrientation(orientation)
```

Arguments:
- `orientation`: Orientation

### SetRenderMode

```lua
self:SetRenderMode(renderMode)
```

Arguments:
- `renderMode`: StatusBarRenderMode

### SetReverseFill

```lua
self:SetReverseFill(isReverseFill)
```

Arguments:
- `isReverseFill`: bool

### SetRotatesTexture

```lua
self:SetRotatesTexture(rotatesTexture)
```

Arguments:
- `rotatesTexture`: bool

### SetStatusBarColor

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

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

### SetStatusBarDesaturated

```lua
self:SetStatusBarDesaturated([desaturated])
```

Arguments:
- `desaturated`: bool, default false

### SetStatusBarDesaturation

```lua
self:SetStatusBarDesaturation(desaturation)
```

Arguments:
- `desaturation`: normalizedValue

### SetStatusBarTexture

```lua
success = self:SetStatusBarTexture(asset)
```

Arguments:
- `asset`: TextureAsset

Returns:
- `success`: bool

### SetTimerDuration

```lua
self:SetTimerDuration(duration, [interpolation], [direction])
```

Arguments:
- `duration`: LuaDurationObject
- `interpolation`: StatusBarInterpolation, default "Immediate"
- `direction`: StatusBarTimerDirection, default "ElapsedTime"

### SetToTargetValue

```lua
self:SetToTargetValue()
```

Immediately finishes any interpolation of the bar and snaps it to the target value.

### SetValue

```lua
self:SetValue(value, [interpolation])
```

Arguments:
- `value`: number
- `interpolation`: StatusBarInterpolation, default "Immediate"

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