pub struct CreateComponentOptions {
pub id: String,
pub kind: ComponentKind,
pub props: ComponentProps,
pub anchor: ComponentAnchor,
pub dx: f64,
pub dy: f64,
pub below: bool,
pub children: Option<Vec<CreateComponentOptions>>,
}Fields§
§id: StringStable identifier, reported back in component events.
kind: ComponentKind§props: ComponentProps§anchor: ComponentAnchor§dx: f64Offset from the anchor, in points (dx grows inward/right, dy inward/down).
dy: f64§below: boolInsert the view below the webview instead of above it. The webview is made transparent so unpainted DOM regions reveal the view — this is how glass panels sit behind DOM content (text stays sharp on top while the glass refracts what’s behind the page).
children: Option<Vec<CreateComponentOptions>>Child components, when kind == container — arranged along
props.axis. Each child is a full component spec (so containers may
nest, and a tabBar or button can live inside).
Trait Implementations§
Source§impl Clone for CreateComponentOptions
impl Clone for CreateComponentOptions
Source§fn clone(&self) -> CreateComponentOptions
fn clone(&self) -> CreateComponentOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateComponentOptions
impl Debug for CreateComponentOptions
Source§impl<'de> Deserialize<'de> for CreateComponentOptions
impl<'de> Deserialize<'de> for CreateComponentOptions
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
Auto Trait Implementations§
impl Freeze for CreateComponentOptions
impl RefUnwindSafe for CreateComponentOptions
impl Send for CreateComponentOptions
impl Sync for CreateComponentOptions
impl Unpin for CreateComponentOptions
impl UnsafeUnpin for CreateComponentOptions
impl UnwindSafe for CreateComponentOptions
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