Viewer

class joy.vui.viewer.MenuViewer(surface)[source]

MenuViewer class

draw()[source]

Draw the viewer onto its surface.

class joy.vui.viewer.SomeViewer(surface)[source]
class joy.vui.viewer.Viewer(surface)[source]

Base Viewer class

close()[source]

Close the viewer and release any resources, etc…

draw()[source]

Draw the viewer onto its surface.

split(y)[source]

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.