Realm

oa::ui::ViewportDesc

Viewport rectangle and depth range. Donor: oa::ViewportDesc.

StRust public API

Declaration

pub struct ViewportDesc { pub x: i32, pub y: i32, pub width: i32, pub height: i32, pub min_depth: f32, pub max_depth: f32, }
Public Rust declaration.

Public Methods

pub fn is_valid(&self) -> bool
pub fn aspect_ratio(&self) -> Result<f32>
fn clone(&self) -> ViewportDesc
fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn eq(&self, other: &ViewportDesc) -> bool

Associated Functions

fn default() -> Self

Public Data Members

xi32field
yi32field
widthi32field
heighti32field
min_depthf32field
max_depthf32field

Public Method Documentation

pub fn is_valid( &self ) -> bool
No public source comment is attached to this declaration.
pub fn aspect_ratio( &self ) -> Result<f32>
No public source comment is attached to this declaration.
fn clone( &self ) -> ViewportDesc
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
fn eq( &self, other: &ViewportDesc ) -> bool
No public source comment is attached to this declaration.
fn default() -> Self
No public source comment is attached to this declaration.