pub struct Viewport(/* private fields */);
Implementations§
Source§impl Viewport
impl Viewport
pub fn position(&self) -> [f32; 3]
pub fn set_position(&mut self, val: [f32; 3])
pub fn with_position(self, val: [f32; 3]) -> Self
pub fn rotation(&self) -> [f32; 4]
pub fn set_rotation(&mut self, val: [f32; 4])
pub fn with_rotation(self, val: [f32; 4]) -> Self
pub fn offset(&self) -> f32
pub fn set_offset(&mut self, val: f32)
pub fn with_offset(self, val: f32) -> Self
pub fn ptr(&self) -> *const HAPI_Viewport
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Viewport
impl RefUnwindSafe for Viewport
impl Send for Viewport
impl Sync for Viewport
impl Unpin for Viewport
impl UnwindSafe for Viewport
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