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

Class Custom

src/render_commands.rs:83–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81/// Represents a custom element with a background color, corner radii, and associated data.
82#[derive(Debug, Clone)]
83pub struct Custom<CustomElementData> {
84 /// The background color of the custom element.
85 pub background_color: Color,
86 /// The corner radii for rounded edges.
87 pub corner_radii: CornerRadii,
88 /// The custom element data.
89 pub data: CustomElementData,
90}
91
92impl CornerRadii {
93 pub fn clamp_to_size(&mut self, width: f32, height: f32) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected