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

## Functions

### ApplySnapshot

```lua
success = self:ApplySnapshot(texture, snapshotID)
```

Arguments:
- `texture`: SimpleTexture
- `snapshotID`: number

Returns:
- `success`: bool

### Flush

```lua
self:Flush()
```

### GetMaxSnapshots

```lua
maxSnapshots = self:GetMaxSnapshots()
```

Returns:
- `maxSnapshots`: number

### IsSnapshotValid

```lua
isValid = self:IsSnapshotValid(snapshotID)
```

Arguments:
- `snapshotID`: number

Returns:
- `isValid`: bool

### SetMaxSnapshots

```lua
self:SetMaxSnapshots(maxSnapshots)
```

Arguments:
- `maxSnapshots`: number

### TakeSnapshot

```lua
snapshotID = self:TakeSnapshot()
```

Returns:
- `snapshotID`: number, may be nil

### TestPrintToFile

```lua
success = self:TestPrintToFile(snapshotID, filename)
```

Unavailable in public builds

Arguments:
- `snapshotID`: number
- `filename`: cstring

Returns:
- `success`: bool

### UsesNPOT

```lua
usesNPOT = self:UsesNPOT()
```

Returns:
- `usesNPOT`: bool, 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."
