MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / Text

Class Text

src/render_commands.rs:14–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12/// Represents a text element with styling attributes.
13#[derive(Debug, Clone)]
14pub struct Text {
15 /// The text content.
16 pub text: String,
17 /// The color of the text.
18 pub color: Color,
19 /// The font size.
20 pub font_size: u16,
21 /// The spacing between letters.
22 pub letter_spacing: u16,
23 /// The line height.
24 pub line_height: u16,
25 /// The font asset, if specified via `.font()`.
26 pub font_asset: Option<&'static crate::renderer::FontAsset>,
27}
28
29/// Defines individual corner radii for an element.
30#[derive(Debug, Clone)]

Callers 4

ws_connectFunction · 0.85
send_textMethod · 0.85
try_recvMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected