pub struct MetalWindow {
pub window_id: usize,
pub first_draw: bool,
pub window_geom: WindowGeom,
pub cal_size: Vec2,
pub ca_layer: *mut Object,
pub cocoa_window: CocoaWindow,
}Fields§
§window_id: usize§first_draw: bool§window_geom: WindowGeom§cal_size: Vec2§ca_layer: *mut Object§cocoa_window: CocoaWindowImplementations§
Source§impl MetalWindow
impl MetalWindow
pub fn new( window_id: usize, metal_cx: &MetalCx, cocoa_app: &mut CocoaApp, inner_size: Vec2, position: Option<Vec2>, title: &str, ) -> MetalWindow
pub fn set_vsync_enable(&mut self, enable: bool)
pub fn set_buffer_count(&mut self, _count: u64)
pub fn resize_core_animation_layer(&mut self, _metal_cx: &MetalCx) -> bool
Trait Implementations§
Source§impl Clone for MetalWindow
impl Clone for MetalWindow
Source§fn clone(&self) -> MetalWindow
fn clone(&self) -> MetalWindow
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for MetalWindow
impl !RefUnwindSafe for MetalWindow
impl !Send for MetalWindow
impl !Sync for MetalWindow
impl Unpin for MetalWindow
impl !UnwindSafe for MetalWindow
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