Module: ui.app

Source: ./ui/app.reef


Overview

ui/app.reef - Application lifecycle management Part of reef-stdlib UI module

This module provides the main application structure for UI programs. Manages windows, themes, and the main event loop.


Types

AppState (enum)

Variants:

  • Starting
  • Running
  • Paused
  • Stopping
  • Stopped

App

Fields:

Name Type
current_theme theme.Theme
state AppState
frame_count int
elapsed_ms int
needs_redraw bool

Functions

fn app_state_starting(): AppState

fn app_state_running(): AppState

fn app_state_paused(): AppState

fn app_state_stopping(): AppState

fn app_state_stopped(): AppState

fn new_app(): App

fn new_app_with_theme(t: theme.Theme): App

fn app_theme(a: App): theme.Theme

fn app_state(a: App): AppState

fn app_is_running(a: App): bool

fn app_frame_count(a: App): int

fn app_elapsed_time(a: App): float


Procedures

proc app_set_theme(a: App, t: theme.Theme)

proc app_start(a: App)

proc app_stop(a: App)

proc app_pause(a: App)

proc app_resume(a: App)

proc app_process_events(a: App)

proc app_request_redraw(a: App)


Generated by reefc doc