Module penrose_ui::core

source ·
Expand description

The core Draw and Context structs for rendering UI elements.

If you are only interested in adding functionality to the penrose StatusBar then you do not need to worry about the use and implementation of Draw and Context: the abstractions provided by the Widget trait should be sufficient for your needs. If however you wish to build your own minimal text based UI from scratch then your might find these structs useful.

NOTE: As mentioned in the crate level docs, this crate is definitely not intended as a fully general purpose graphics API. You are unlikely to find full support for operations that are not required for implementing a simple text based status bar.

Structs§

  • A minimal drawing context for rendering text based UI elements
  • A minimal back end for rendering simple text based UIs.
  • A set of styling options for a text string that is to be rendered using Draw.