polyhorn-ui 0.4.0

Shared API contract for multi-platform Polyhorn UI.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::styles::TextStyle;

/// Renders (rich) text to the screen.
#[derive(Default)]
pub struct Text {
    /// Controls the appearance and layout of this text. Note that the
    /// layout-related style properties are only honored if this text is
    /// contained within another view. They are not honored if this text is
    /// nested in another text.
    pub style: TextStyle,
}