# Viewer

class `joy.vui.viewer.``MenuViewer`(surface)

  MenuViewer class

  `draw`()

    Draw the viewer onto its surface.

class `joy.vui.viewer.``SomeViewer`(surface)

class `joy.vui.viewer.``Viewer`(surface)

  Base Viewer class

  `close`()

    Close the viewer and release any resources, etc…

  `draw`()

    Draw the viewer onto its surface.

  `split`(y)

    Split the viewer at the y coordinate (which is relative to the viewer’s surface and must be inside it somewhere) and return the remaining height. The upper part of the viewer remains (and gets redrawn on a new surface) and the lower space is now available for e.g. a new viewer.