Module penrose::draw [−][src]
Expand description
Traits and utilities for rendering custom windows
The traits and related structs in this module provide a way for rendering and managing simple graphical applications within Penrose itself. While definitely not what you would want to use for writing a full GUI application, the Draw and DrawContext traits are enough for setting up simple text based UI elements such as status bars and menus.
Modules
Structs
A simple RGBA based color
A simple status bar that works via hooks
A set of styling options for a text string
Enums
Enum to store the various ways that operations can fail when rendering windows
The position of a status bar
Traits
A simple drawing abstraction
Used for simple drawing to the screen
A status bar Widget that can be automatically rendered using a DrawContext when triggered via WindowManager Hook calls.
Something that can respond to user KeyPress events
A status bar widget that can be rendered using a DrawContext
Functions
Create a default dwm style status bar that displays content pulled from the WM_NAME property of the root window.
Type Definitions
Result type for fallible methods on Draw and DrawContext