Expand description
Helper utilities for the matrix_gui framework.
This module provides utility types and functions for handling optional styling parameters in the GUI framework. It includes:
OptionColor: Wrapper for optional color values with fallback to style defaultsOptionFont: Wrapper for optional font values with fallback to style defaultsOptionU8: Wrapper for optional numeric values with fallback to style defaults
§Purpose
These helper types are used throughout the framework to allow widgets to have optional styling parameters that fall back to default values from the global style configuration when not explicitly set.
§Example
use matrix_gui::prelude::*;
// Create an optional color
let mut color = OptionColor::none();
color.set_color(Rgb565::RED);Modules§
- lw_
geometry - Lightweight geometry types for the matrix_gui framework.
- lw_
primitives - Lightweight primitive types for the matrix_gui framework.
- matrix_
utils - Utility functions for matrix_gui framework.
Structs§
- Option
Color - Wrapper for optional color values with style fallback.
- Option
Font - Wrapper for optional font values with style fallback.
- Option
U8 - Wrapper for optional numeric values with style fallback.