Skip to main content

rust_macios/core_graphics/
traits.rs

1/// Internal object of objects that belong to the Core Graphics framework
2pub trait CGTypeObject {
3    type Ref;
4
5    /// Retrieves the internal object
6    fn get_internal_object(&self) -> Self::Ref;
7
8    fn create_with_ref(obj: Self::Ref) -> Self;
9}