Class: ThemeManager | Spider Monkey Panel

## ThemeManager

`js/foo_spider_monkey_panel.js`, `line 3488`

### Methods

#### DrawThemeBackground(gr, x, y, w, h, clip_xopt, clip_yopt, clip_wopt, clip_hopt)
`js/foo_spider_monkey_panel.js`, `line 3500`

  ##### Parameters:

  Name | Type | Attributes | Default | Description
  --- | --- | --- | --- | ---
  `gr` | GdiGraphics |  |  |
  `x` | number |  |  |
  `y` | number |  |  |
  `w` | number |  |  |
  `h` | number |  |  |
  `clip_x` | number | <optional> | 0 |
  `clip_y` | number | <optional> | 0 |
  `clip_w` | number | <optional> | 0 |
  `clip_h` | number | <optional> | 0 |

#### IsThemePartDefined(partid) → {boolean}
`js/foo_spider_monkey_panel.js`, `line 3506`

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `partid` | number |

  ##### Returns:

  boolean

#### SetPartAndStateID(partid, stateidopt)
`js/foo_spider_monkey_panel.js`, `line 3514`

  See https://docs.microsoft.com/en-us/windows/win32/controls/parts-and-states

  ##### Parameters:

  Name | Type | Attributes | Default | Description
  --- | --- | --- | --- | ---
  `partid` | number |  |  |
  `stateid` | number | <optional> | 0 |