# `MacUi.Window`
[🔗](https://github.com/thenatespack/mac_ui/blob/main/lib/mac_ui/window.ex#L1)

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `clear`

Clears all drawing queues for the next frame

# `draw_line`

Queues a line to be drawn

# `draw_pixel`

Queues a pixel to be drawn

# `draw_text`

Queues text to be drawn

# `load_file`

Loads an XML UI file from disk and renders it

# `render_xml`

Parses an XML string, calculates layouts, and renders to the screen

# `set_attr`

Sets an attribute on an element by ID (controller-driven state push-back)

# `set_attrs`

Sets multiple attributes on an element by ID

# `start_link`

# `subscribe`

Subscribe the calling process to receive UI events

# `update_element_text`

Updates the text content of a specific element in the AST by its ID/UUID

# `xmlAttribute`
*macro* 

# `xmlAttribute`
*macro* 

# `xmlElement`
*macro* 

# `xmlElement`
*macro* 

# `xmlText`
*macro* 

# `xmlText`
*macro* 

---

*Consult [api-reference.md](api-reference.md) for complete listing*
