Skip to main content

Module helper

Module helper 

Source
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 defaults
  • OptionFont: Wrapper for optional font values with fallback to style defaults
  • OptionU8: 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§

OptionColor
Wrapper for optional color values with style fallback.
OptionFont
Wrapper for optional font values with style fallback.
OptionU8
Wrapper for optional numeric values with style fallback.