Skip to main content
Version: 0.1.1

API Reference

This section provides detailed documentation for all public modules, structs, enums, traits, and macros within the OSUI library.

Core Concepts & Structure

  • Screen: The main application context for managing widgets and extensions.
  • Widget Model: Element, Component, Widget (Static/Dynamic), and WidgetLoad.
  • Rendering & Scope: RenderScope, RenderMethod, and ElementRenderer.
  • State Management: State<T> and DependencyHandler for reactivity.
  • Frontend & Macros: RsxElement, Rsx, and the event!, component!, transform!, rsx! macros.
  • Utilities: Helper functions for terminal control and string manipulation.

Built-in Components & Extensions

Built-in UI Elements

  • Elements Overview: General Element trait and String as an Element.
  • Div: A generic container element.
  • Flex Containers: FlexRow and FlexCol for automatic horizontal/vertical layout.
  • Heading: Renders large ASCII art text.
  • Input: An interactive text input field.
  • Paginator: Manages and navigates between multiple pages/children.