Struct cocoa::quartzcore::CALayer

source ·
pub struct CALayer(_);

Implementations§

source§

impl CALayer

source

pub fn id(&self) -> id

source

pub fn new() -> CALayer

source

pub fn from_layer(other: &CALayer) -> CALayer

source

pub fn presentation_layer(&self) -> CALayer

source

pub fn model_layer(&self) -> CALayer

source

pub fn default_value_for_key(key: &CFString) -> id

source

pub fn needs_display_for_key(key: &CFString) -> bool

source

pub fn should_archive_value_for_key(key: &CFString) -> bool

source

pub fn bounds(&self) -> CGRect

source

pub fn set_bounds(&self, bounds: &CGRect)

source

pub fn position(&self) -> CGPoint

source

pub fn set_position(&self, position: &CGPoint)

source

pub fn z_position(&self) -> CGFloat

source

pub fn set_z_position(&self, z_position: CGFloat)

source

pub fn anchor_point(&self) -> CGPoint

source

pub fn set_anchor_point(&self, anchor_point: &CGPoint)

source

pub fn anchor_point_z(&self) -> CGFloat

source

pub fn set_anchor_point_z(&self, anchor_point_z: CGFloat)

source

pub fn transform(&self) -> CATransform3D

source

pub fn set_transform(&self, transform: &CATransform3D)

source

pub fn affine_transform(&self) -> CGAffineTransform

source

pub fn set_affine_transform(&self, affine_transform: &CGAffineTransform)

source

pub fn frame(&self) -> CGRect

source

pub fn set_frame(&self, frame: &CGRect)

source

pub fn is_hidden(&self) -> bool

source

pub fn set_hidden(&self, hidden: bool)

source

pub fn is_double_sided(&self) -> bool

source

pub fn set_double_sided(&self, double_sided: bool)

source

pub fn is_geometry_flipped(&self) -> bool

source

pub fn set_geometry_flipped(&self, geometry_flipped: bool)

source

pub fn contents_are_flipped(&self) -> bool

source

pub fn superlayer(&self) -> Option<CALayer>

source

pub fn remove_from_superlayer(&self)

source

pub fn sublayers(&self) -> CFArray<CALayer>

source

pub fn add_sublayer(&self, sublayer: &CALayer)

source

pub fn insert_sublayer_at_index(&self, sublayer: &CALayer, index: u32)

source

pub fn insert_sublayer_below(&self, sublayer: &CALayer, sibling: &CALayer)

source

pub fn insert_sublayer_above(&self, sublayer: &CALayer, sibling: &CALayer)

source

pub fn replace_sublayer_with(&self, old_layer: &CALayer, new_layer: &CALayer)

source

pub fn sublayer_transform(&self) -> CATransform3D

source

pub fn set_sublayer_transform(&self, sublayer_transform: CATransform3D)

source

pub fn mask(&self) -> Option<CALayer>

source

pub fn set_mask(&self, mask: Option<CALayer>)

source

pub fn masks_to_bounds(&self) -> bool

source

pub fn set_masks_to_bounds(&self, flag: bool)

source

pub fn convert_point_from_layer( &self, point: &CGPoint, layer: Option<CALayer> ) -> CGPoint

source

pub fn convert_point_to_layer( &self, point: &CGPoint, layer: Option<CALayer> ) -> CGPoint

source

pub fn convert_rect_from_layer( &self, rect: &CGRect, layer: Option<CALayer> ) -> CGRect

source

pub fn convert_rect_to_layer( &self, rect: &CGRect, layer: Option<CALayer> ) -> CGRect

source

pub fn convert_time_from_layer( &self, time: CFTimeInterval, layer: Option<CALayer> ) -> CFTimeInterval

source

pub fn convert_time_to_layer( &self, time: CFTimeInterval, layer: Option<CALayer> ) -> CFTimeInterval

source

pub fn hit_test(&self, point: &CGPoint) -> Option<CALayer>

source

pub fn contains_point(&self, point: &CGPoint) -> bool

source

pub fn contents(&self) -> id

source

pub unsafe fn set_contents(&self, contents: id)

source

pub fn contents_rect(&self) -> CGRect

source

pub fn set_contents_rect(&self, contents_rect: &CGRect)

source

pub fn contents_gravity(&self) -> ContentsGravity

source

pub fn set_contents_gravity(&self, new_contents_gravity: ContentsGravity)

source

pub fn contents_scale(&self) -> CGFloat

source

pub fn set_contents_scale(&self, new_contents_scale: CGFloat)

source

pub fn contents_center(&self) -> CGRect

source

pub fn set_contents_center(&self, new_rect: &CGRect)

source

pub fn contents_format(&self) -> ContentsFormat

source

pub fn set_contents_format(&self, new_contents_format: ContentsFormat)

source

pub fn minification_filter(&self) -> Filter

source

pub fn set_minification_filter(&self, new_filter: Filter)

source

pub fn magnification_filter(&self) -> Filter

source

pub fn set_magnification_filter(&self, new_filter: Filter)

source

pub fn minification_filter_bias(&self) -> f32

source

pub fn set_minification_filter_bias(&self, new_filter_bias: f32)

source

pub fn is_opaque(&self) -> bool

source

pub fn set_opaque(&self, opaque: bool)

source

pub fn display(&self)

source

pub fn set_needs_display(&self)

source

pub fn set_needs_display_in_rect(&self, rect: &CGRect)

source

pub fn needs_display(&self) -> bool

source

pub fn display_if_needed(&self)

source

pub fn needs_display_on_bounds_change(&self) -> bool

source

pub fn set_needs_display_on_bounds_change(&self, flag: bool)

source

pub fn draws_asynchronously(&self) -> bool

source

pub fn set_draws_asynchronously(&self, flag: bool)

source

pub fn draw_in_context(&self, context: &CGContext)

source

pub fn render_in_context(&self, context: &CGContext)

source

pub fn edge_antialiasing_mask(&self) -> EdgeAntialiasingMask

source

pub fn set_edge_antialiasing_mask(&self, mask: EdgeAntialiasingMask)

source

pub fn background_color(&self) -> Option<CGColor>

source

pub fn set_background_color(&self, color: Option<CGColor>)

source

pub fn corner_radius(&self) -> CGFloat

source

pub fn set_corner_radius(&self, radius: CGFloat)

source

pub fn masked_corners(&self) -> CornerMask

source

pub fn set_masked_corners(&self, mask: CornerMask)

source

pub fn border_width(&self) -> CGFloat

source

pub fn set_border_width(&self, border_width: CGFloat)

source

pub fn border_color(&self) -> Option<CGColor>

source

pub fn set_border_color(&self, color: Option<CGColor>)

source

pub fn opacity(&self) -> f32

source

pub fn set_opacity(&self, opacity: f32)

source

pub fn compositing_filter(&self) -> id

source

pub unsafe fn set_compositing_filter(&self, filter: id)

source

pub unsafe fn filters(&self) -> Option<CFArray>

source

pub unsafe fn set_filters(&self, filters: Option<CFArray>)

source

pub unsafe fn background_filters(&self) -> Option<CFArray>

source

pub unsafe fn set_background_filters(&self, filters: Option<CFArray>)

source

pub fn should_rasterize(&self) -> bool

source

pub fn set_should_rasterize(&self, flag: bool)

source

pub fn rasterization_scale(&self) -> CGFloat

source

pub fn set_rasterization_scale(&self, scale: CGFloat)

source

pub fn shadow_color(&self) -> Option<CGColor>

source

pub fn set_shadow_color(&self, color: Option<CGColor>)

source

pub fn shadow_opacity(&self) -> f32

source

pub fn set_shadow_opacity(&self, opacity: f32)

source

pub fn shadow_offset(&self) -> CGSize

source

pub fn set_shadow_offset(&self, offset: &CGSize)

source

pub fn shadow_radius(&self) -> CGFloat

source

pub fn set_shadow_radius(&self, radius: CGFloat)

source

pub fn shadow_path(&self) -> Option<CGPath>

source

pub fn set_shadow_path(&self, path: Option<CGPath>)

source

pub fn autoresizing_mask(&self) -> AutoresizingMask

source

pub fn set_autoresizing_mask(&self, mask: AutoresizingMask)

source

pub fn layout_manager(&self) -> id

source

pub unsafe fn set_layout_manager(&self, manager: id)

source

pub fn preferred_frame_size(&self) -> CGSize

source

pub fn set_needs_layout(&self)

source

pub fn needs_layout(&self) -> bool

source

pub fn layout_if_needed(&self)

source

pub fn layout_sublayers(&self)

source

pub fn resize_sublayers_with_old_size(&self, size: &CGSize)

source

pub fn resize_with_old_superlayer_size(&self, size: &CGSize)

source

pub fn default_action_for_key(event: &str) -> id

source

pub fn action_for_key(&self, event: &str) -> id

source

pub fn actions(&self) -> CFDictionary<CFStringRef, CFTypeRef>

source

pub unsafe fn set_actions(&self, actions: CFDictionary<CFStringRef, CFTypeRef>)

source

pub unsafe fn add_animation_for_key(&self, animation: id, for_key: Option<&str>)

source

pub fn remove_all_animation(&self)

source

pub fn remove_animation_for_key(&self, key: &str)

source

pub fn animation_keys(&self) -> Vec<String>

source

pub fn animation_for_key(&self, key: &str) -> id

source

pub fn name(&self) -> String

source

pub fn set_name(&self, name: &str)

source

pub fn delegate(&self) -> id

source

pub unsafe fn set_delegate(&self, delegate: id)

source

pub fn style(&self) -> Option<CFDictionary>

source

pub fn set_style(&self, dictionary: Option<CFDictionary>)

source

pub fn reload_value_for_key_path(&self, key: &str)

source

pub fn set_contents_opaque(&self, opaque: bool)

Trait Implementations§

source§

impl Clone for CALayer

source§

fn clone(&self) -> CALayer

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Drop for CALayer

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl Send for CALayer

source§

impl Sync for CALayer

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.