Struct cocoa::quartzcore::CARenderer
source · pub struct CARenderer(_);
Implementations§
source§impl CARenderer
impl CARenderer
pub fn id(&self) -> id
pub unsafe fn from_cgl_context( context: CGLContextObj, color_space: Option<CGColorSpace> ) -> CARenderer
pub unsafe fn from_metal_texture( metal_texture: id, metal_command_queue: id, color_space: Option<CGColorSpace> ) -> CARenderer
pub fn layer(&self) -> Option<CALayer>
pub fn set_layer(&self, layer: Option<CALayer>)
pub fn bounds(&self) -> CGRect
pub fn set_bounds(&self, bounds: CGRect)
pub fn begin_frame_at( &self, time: CFTimeInterval, timestamp: Option<&CVTimeStamp> )
pub fn update_bounds(&self) -> CGRect
pub fn add_update_rect(&self, rect: CGRect)
pub fn render(&self)
pub fn next_frame_time(&self) -> CFTimeInterval
pub fn end_frame(&self)
pub unsafe fn set_destination(&self, metal_texture: id)
Trait Implementations§
source§impl Clone for CARenderer
impl Clone for CARenderer
source§fn clone(&self) -> CARenderer
fn clone(&self) -> CARenderer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Drop for CARenderer
impl Drop for CARenderer
impl Send for CARenderer
impl Sync for CARenderer
Auto Trait Implementations§
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