pub trait UiBase {
// Required methods
fn name_node(&mut self) -> &mut Name;
fn node_node(&mut self) -> &mut Node;
// Provided methods
fn name(self, name: impl Into<Cow<'static, str>>) -> Self
where Self: Sized { ... }
fn padding(self, padding: UiRect) -> Self
where Self: Sized { ... }
fn frame(self, width: Val, height: Val) -> Self
where Self: Sized { ... }
fn width(self, width: Val) -> Self
where Self: Sized { ... }
fn height(self, height: Val) -> Self
where Self: Sized { ... }
}Expand description
Provides common builder-style methods for UI configuration
Required Methods§
Provided Methods§
Sourcefn name(self, name: impl Into<Cow<'static, str>>) -> Selfwhere
Self: Sized,
fn name(self, name: impl Into<Cow<'static, str>>) -> Selfwhere
Self: Sized,
Sets the Name component