pub struct UiNode {Show 17 fields
pub id: String,
pub role: Role,
pub semantic_label: Option<String>,
pub text: Option<String>,
pub value: Option<String>,
pub state: NodeState,
pub bounds: Rect,
pub clip: Option<Rect>,
pub overflow: Overflow,
pub z_index: i32,
pub parent_id: Option<String>,
pub children: Vec<String>,
pub data_bindings: BTreeMap<String, String>,
pub event_listeners: Vec<String>,
pub transition_id: Option<String>,
pub paint: Vec<PaintPrimitive>,
pub asset: Option<AssetBinding>,
}Fields§
§id: String§role: Role§semantic_label: Option<String>§text: Option<String>§value: Option<String>§state: NodeState§bounds: Rect§clip: Option<Rect>§overflow: Overflow§z_index: i32§parent_id: Option<String>§children: Vec<String>§data_bindings: BTreeMap<String, String>§event_listeners: Vec<String>Renderer-facing event listener names observed on this exact stable target.
transition_id: Option<String>§paint: Vec<PaintPrimitive>§asset: Option<AssetBinding>Implementations§
Source§impl UiNode
impl UiNode
pub fn new(id: impl Into<String>, role: Role, bounds: Rect) -> Self
pub fn label(self, label: impl Into<String>) -> Self
pub fn text(self, text: impl Into<String>) -> Self
pub fn value(self, value: impl Into<String>) -> Self
pub fn parent(self, parent: impl Into<String>) -> Self
pub fn z(self, z_index: i32) -> Self
pub fn clip(self, clip: Rect) -> Self
pub fn paint(self, primitive: PaintPrimitive) -> Self
pub fn bind(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn transition(self, id: impl Into<String>) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UiNode
impl<'de> Deserialize<'de> for UiNode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for UiNode
Auto Trait Implementations§
impl Freeze for UiNode
impl RefUnwindSafe for UiNode
impl Send for UiNode
impl Sync for UiNode
impl Unpin for UiNode
impl UnsafeUnpin for UiNode
impl UnwindSafe for UiNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more