[][src]Struct makepad_render::MetalWindow

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: usizefirst_draw: boolwindow_geom: WindowGeomcal_size: Vec2ca_layer: *mut Objectcocoa_window: CocoaWindow

Methods

impl MetalWindow[src]

pub fn new(
    window_id: usize,
    metal_cx: &MetalCx,
    cocoa_app: &mut CocoaApp,
    inner_size: Vec2,
    position: Option<Vec2>,
    title: &str
) -> MetalWindow
[src]

pub fn set_vsync_enable(&mut self, enable: bool)[src]

pub fn set_buffer_count(&mut self, _count: u64)[src]

pub fn resize_core_animation_layer(&mut self, _metal_cx: &MetalCx) -> bool[src]

Trait Implementations

impl Clone for MetalWindow[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.