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

## Functions

### GetAlpha

```lua
alpha = self:GetAlpha()
```

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

Returns:
- `alpha`: SingleColorValue

### GetDrawLayer

```lua
layer, sublayer = self:GetDrawLayer()
```

Returns:
- `layer`: DrawLayer
- `sublayer`: number

### GetEffectiveScale

```lua
effectiveScale = self:GetEffectiveScale()
```

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

Returns:
- `effectiveScale`: number

### GetScale

```lua
scale = self:GetScale()
```

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

Returns:
- `scale`: number

### GetVertexColor

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

May return nothing.

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

### IsIgnoringParentAlpha

```lua
isIgnoring = self:IsIgnoringParentAlpha()
```

Returns:
- `isIgnoring`: bool

### IsIgnoringParentScale

```lua
isIgnoring = self:IsIgnoringParentScale()
```

Returns:
- `isIgnoring`: bool

### IsObjectLoaded

```lua
isLoaded = self:IsObjectLoaded()
```

Returns:
- `isLoaded`: bool

### SetAlpha

```lua
self:SetAlpha(alpha)
```

Arguments:
- `alpha`: SingleColorValue

### SetAlphaFromBoolean

```lua
self:SetAlphaFromBoolean(value, [alphaIfTrue], [alphaIfFalse])
```

Arguments:
- `value`: bool
- `alphaIfTrue`: SingleColorValue, default 255
- `alphaIfFalse`: SingleColorValue, default 0

### SetDrawLayer

```lua
self:SetDrawLayer(layer, [sublevel])
```

Arguments:
- `layer`: DrawLayer
- `sublevel`: number, default 0

### SetIgnoreParentAlpha

```lua
self:SetIgnoreParentAlpha(ignore)
```

Arguments:
- `ignore`: bool

### SetIgnoreParentScale

```lua
self:SetIgnoreParentScale(ignore)
```

Protected: only Blizzard's own code may call it.

Arguments:
- `ignore`: bool

### SetScale

```lua
self:SetScale(scale)
```

Protected: only Blizzard's own code may call it.

Arguments:
- `scale`: number

### SetVertexColor

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

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

### SetVertexColorFromBoolean

```lua
self:SetVertexColorFromBoolean(value, colorIfTrue, colorIfFalse)
```

Arguments:
- `value`: bool
- `colorIfTrue`: colorRGBA
- `colorIfFalse`: colorRGBA

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