Struct cocoa::quartzcore::CALayer
source · pub struct CALayer(_);
Implementations§
source§impl CALayer
impl CALayer
pub fn id(&self) -> id
pub fn new() -> CALayer
pub fn from_layer(other: &CALayer) -> CALayer
pub fn presentation_layer(&self) -> CALayer
pub fn model_layer(&self) -> CALayer
pub fn default_value_for_key(key: &CFString) -> id
pub fn needs_display_for_key(key: &CFString) -> bool
pub fn should_archive_value_for_key(key: &CFString) -> bool
pub fn bounds(&self) -> CGRect
pub fn set_bounds(&self, bounds: &CGRect)
pub fn position(&self) -> CGPoint
pub fn set_position(&self, position: &CGPoint)
pub fn z_position(&self) -> CGFloat
pub fn set_z_position(&self, z_position: CGFloat)
pub fn anchor_point(&self) -> CGPoint
pub fn set_anchor_point(&self, anchor_point: &CGPoint)
pub fn anchor_point_z(&self) -> CGFloat
pub fn set_anchor_point_z(&self, anchor_point_z: CGFloat)
pub fn transform(&self) -> CATransform3D
pub fn set_transform(&self, transform: &CATransform3D)
pub fn affine_transform(&self) -> CGAffineTransform
pub fn set_affine_transform(&self, affine_transform: &CGAffineTransform)
pub fn frame(&self) -> CGRect
pub fn set_frame(&self, frame: &CGRect)
pub fn is_double_sided(&self) -> bool
pub fn set_double_sided(&self, double_sided: bool)
pub fn is_geometry_flipped(&self) -> bool
pub fn set_geometry_flipped(&self, geometry_flipped: bool)
pub fn contents_are_flipped(&self) -> bool
pub fn superlayer(&self) -> Option<CALayer>
pub fn remove_from_superlayer(&self)
pub fn sublayers(&self) -> CFArray<CALayer>
pub fn add_sublayer(&self, sublayer: &CALayer)
pub fn insert_sublayer_at_index(&self, sublayer: &CALayer, index: u32)
pub fn insert_sublayer_below(&self, sublayer: &CALayer, sibling: &CALayer)
pub fn insert_sublayer_above(&self, sublayer: &CALayer, sibling: &CALayer)
pub fn replace_sublayer_with(&self, old_layer: &CALayer, new_layer: &CALayer)
pub fn sublayer_transform(&self) -> CATransform3D
pub fn set_sublayer_transform(&self, sublayer_transform: CATransform3D)
pub fn mask(&self) -> Option<CALayer>
pub fn set_mask(&self, mask: Option<CALayer>)
pub fn masks_to_bounds(&self) -> bool
pub fn set_masks_to_bounds(&self, flag: bool)
pub fn convert_point_from_layer( &self, point: &CGPoint, layer: Option<CALayer> ) -> CGPoint
pub fn convert_point_to_layer( &self, point: &CGPoint, layer: Option<CALayer> ) -> CGPoint
pub fn convert_rect_from_layer( &self, rect: &CGRect, layer: Option<CALayer> ) -> CGRect
pub fn convert_rect_to_layer( &self, rect: &CGRect, layer: Option<CALayer> ) -> CGRect
pub fn convert_time_from_layer( &self, time: CFTimeInterval, layer: Option<CALayer> ) -> CFTimeInterval
pub fn convert_time_to_layer( &self, time: CFTimeInterval, layer: Option<CALayer> ) -> CFTimeInterval
pub fn hit_test(&self, point: &CGPoint) -> Option<CALayer>
pub fn contains_point(&self, point: &CGPoint) -> bool
pub fn contents(&self) -> id
pub unsafe fn set_contents(&self, contents: id)
pub fn contents_rect(&self) -> CGRect
pub fn set_contents_rect(&self, contents_rect: &CGRect)
pub fn contents_gravity(&self) -> ContentsGravity
pub fn set_contents_gravity(&self, new_contents_gravity: ContentsGravity)
pub fn contents_scale(&self) -> CGFloat
pub fn set_contents_scale(&self, new_contents_scale: CGFloat)
pub fn contents_center(&self) -> CGRect
pub fn set_contents_center(&self, new_rect: &CGRect)
pub fn contents_format(&self) -> ContentsFormat
pub fn set_contents_format(&self, new_contents_format: ContentsFormat)
pub fn minification_filter(&self) -> Filter
pub fn set_minification_filter(&self, new_filter: Filter)
pub fn magnification_filter(&self) -> Filter
pub fn set_magnification_filter(&self, new_filter: Filter)
pub fn minification_filter_bias(&self) -> f32
pub fn set_minification_filter_bias(&self, new_filter_bias: f32)
pub fn is_opaque(&self) -> bool
pub fn set_opaque(&self, opaque: bool)
pub fn display(&self)
pub fn set_needs_display(&self)
pub fn set_needs_display_in_rect(&self, rect: &CGRect)
pub fn needs_display(&self) -> bool
pub fn display_if_needed(&self)
pub fn needs_display_on_bounds_change(&self) -> bool
pub fn set_needs_display_on_bounds_change(&self, flag: bool)
pub fn draws_asynchronously(&self) -> bool
pub fn set_draws_asynchronously(&self, flag: bool)
pub fn draw_in_context(&self, context: &CGContext)
pub fn render_in_context(&self, context: &CGContext)
pub fn edge_antialiasing_mask(&self) -> EdgeAntialiasingMask
pub fn set_edge_antialiasing_mask(&self, mask: EdgeAntialiasingMask)
pub fn background_color(&self) -> Option<CGColor>
pub fn set_background_color(&self, color: Option<CGColor>)
pub fn corner_radius(&self) -> CGFloat
pub fn set_corner_radius(&self, radius: CGFloat)
pub fn masked_corners(&self) -> CornerMask
pub fn set_masked_corners(&self, mask: CornerMask)
pub fn border_width(&self) -> CGFloat
pub fn set_border_width(&self, border_width: CGFloat)
pub fn border_color(&self) -> Option<CGColor>
pub fn set_border_color(&self, color: Option<CGColor>)
pub fn opacity(&self) -> f32
pub fn set_opacity(&self, opacity: f32)
pub fn compositing_filter(&self) -> id
pub unsafe fn set_compositing_filter(&self, filter: id)
pub unsafe fn filters(&self) -> Option<CFArray>
pub unsafe fn set_filters(&self, filters: Option<CFArray>)
pub unsafe fn background_filters(&self) -> Option<CFArray>
pub unsafe fn set_background_filters(&self, filters: Option<CFArray>)
pub fn should_rasterize(&self) -> bool
pub fn set_should_rasterize(&self, flag: bool)
pub fn rasterization_scale(&self) -> CGFloat
pub fn set_rasterization_scale(&self, scale: CGFloat)
pub fn shadow_color(&self) -> Option<CGColor>
pub fn set_shadow_color(&self, color: Option<CGColor>)
pub fn shadow_opacity(&self) -> f32
pub fn set_shadow_opacity(&self, opacity: f32)
pub fn shadow_offset(&self) -> CGSize
pub fn set_shadow_offset(&self, offset: &CGSize)
pub fn shadow_radius(&self) -> CGFloat
pub fn set_shadow_radius(&self, radius: CGFloat)
pub fn shadow_path(&self) -> Option<CGPath>
pub fn set_shadow_path(&self, path: Option<CGPath>)
pub fn autoresizing_mask(&self) -> AutoresizingMask
pub fn set_autoresizing_mask(&self, mask: AutoresizingMask)
pub fn layout_manager(&self) -> id
pub unsafe fn set_layout_manager(&self, manager: id)
pub fn preferred_frame_size(&self) -> CGSize
pub fn set_needs_layout(&self)
pub fn needs_layout(&self) -> bool
pub fn layout_if_needed(&self)
pub fn layout_sublayers(&self)
pub fn resize_sublayers_with_old_size(&self, size: &CGSize)
pub fn resize_with_old_superlayer_size(&self, size: &CGSize)
pub fn default_action_for_key(event: &str) -> id
pub fn action_for_key(&self, event: &str) -> id
pub fn actions(&self) -> CFDictionary<CFStringRef, CFTypeRef>
pub unsafe fn set_actions(&self, actions: CFDictionary<CFStringRef, CFTypeRef>)
pub unsafe fn add_animation_for_key(&self, animation: id, for_key: Option<&str>)
pub fn remove_all_animation(&self)
pub fn remove_animation_for_key(&self, key: &str)
pub fn animation_keys(&self) -> Vec<String>
pub fn animation_for_key(&self, key: &str) -> id
pub fn name(&self) -> String
pub fn set_name(&self, name: &str)
pub fn delegate(&self) -> id
pub unsafe fn set_delegate(&self, delegate: id)
pub fn style(&self) -> Option<CFDictionary>
pub fn set_style(&self, dictionary: Option<CFDictionary>)
pub fn reload_value_for_key_path(&self, key: &str)
pub fn set_contents_opaque(&self, opaque: bool)
Trait Implementations§
impl Send for CALayer
impl Sync for CALayer
Auto Trait Implementations§
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