Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cocoa/src/quartzcore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ pub fn current_media_time() -> CFTimeInterval {

// CALayer.h

#[repr(transparent)]
pub struct CALayer(id);

unsafe impl Send for CALayer {}
Expand Down Expand Up @@ -74,6 +75,11 @@ impl CALayer {
}
}

#[inline]
pub unsafe fn from_raw(raw: id) -> Self {
Self(raw)
}

#[inline]
pub fn from_layer(other: &CALayer) -> CALayer {
unsafe {
Expand Down