FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Visual3D

    struct · ferroui-media3d · v0.5.0

    struct Visual3D
    

    WPF's Visual3D: the base of the 3D visuals, with a Transform.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<Visual3D>
    

    Returns a strong reference to this object.

    Source

    transform_property

    fn transform_property() -> &'static StyledProperty<Option<Ref<Transform3D>>>
    

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see FerroObject::construct.

    Source

    transform

    fn transform(self: &Self) -> Option<Ref<Transform3D>>
    

    The transform of the visual; none is the identity.

    Source

    set_transform

    fn set_transform(self: &Self, value: Option<Ref<Transform3D>>)
    

    Source

    changed

    fn changed(self: &Self, handler: impl Fn(Scene3DChange) -> () + 'static) -> Subscription
    

    Calls handler on every change of the visual or of what it shows, until the returned guard is dropped.

    Source

    descendant_bounds

    fn descendant_bounds(self: &Self) -> Rect3D
    

    The bounds of what the visual and its descendants show, in the coordinates of its parent (its transform applied); WPF's VisualTreeHelper.GetDescendantBounds with the content.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.