pub struct NativeViewLayout {
pub id: u64,
pub kind: String,
pub value: String,
pub bounds: Rect,
}Expand description
A platform view’s identity, content and bounds in logical host coordinates.
Hosts must clip children to their Cranpose container. Only axis-aligned layout is supported; do not apply graphics transforms, effects or rounded clips to a native slot or its ancestors. Native children appear above all Cranpose drawing, so overlapping Cranpose popups require hiding them.
Fields§
§id: u64Stable mount identity, scoped to one host.
kind: StringApplication-defined factory name, such as web or map.
value: StringApplication-defined configuration, interpreted by the native factory.
bounds: RectBounds in logical points, including ancestor content offsets.
Trait Implementations§
Source§impl Clone for NativeViewLayout
impl Clone for NativeViewLayout
Source§impl Debug for NativeViewLayout
impl Debug for NativeViewLayout
Source§impl PartialEq for NativeViewLayout
impl PartialEq for NativeViewLayout
impl StructuralPartialEq for NativeViewLayout
Auto Trait Implementations§
impl Freeze for NativeViewLayout
impl RefUnwindSafe for NativeViewLayout
impl Send for NativeViewLayout
impl Sync for NativeViewLayout
impl Unpin for NativeViewLayout
impl UnsafeUnpin for NativeViewLayout
impl UnwindSafe for NativeViewLayout
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.