FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    OrthographicCamera

    struct · ferroui-media3d · v0.5.0

    struct OrthographicCamera
    

    WPF's OrthographicCamera: a parallel projection Width wide (2 by default).

    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<OrthographicCamera>
    

    Returns a strong reference to this object.

    Source

    width_property

    fn width_property() -> &'static StyledProperty<f64>
    

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    A camera with WPF's defaults: at the origin, looking down the negative z axis, 2 wide.

    Source

    with_values

    fn with_values(position: Point3D, look_direction: Vector3D, up_direction: Vector3D, width: f64) -> Ref<Self>
    

    A camera at position looking along look_direction with up_direction up, width wide.

    Source

    width

    fn width(self: &Self) -> f64
    

    The width of the view.

    Source

    set_width

    fn set_width(self: &Self, value: f64)
    

    Source

    Trait implementations

    Availability

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