#[repr(C)]pub struct SCNLayer { /* private fields */ }SCNLayer and crate feature objc2-quartz-core and non-watchOS only.Expand description
A SCNLayer is a layer that can display a SCNScene.
See also Apple’s documentation
Implementations§
Source§impl SCNLayer
impl SCNLayer
Methods from Deref<Target = CAOpenGLLayer>§
pub unsafe fn isAsynchronous(&self) -> bool
CALayer only.Sourcepub unsafe fn setAsynchronous(&self, asynchronous: bool)
👎Deprecated: OpenGL is deprecatedAvailable on crate feature CALayer only.
pub unsafe fn setAsynchronous(&self, asynchronous: bool)
CALayer only.Setter for isAsynchronous.
pub unsafe fn wantsExtendedDynamicRangeContent(&self) -> bool
CALayer only.Sourcepub unsafe fn setWantsExtendedDynamicRangeContent(
&self,
wants_extended_dynamic_range_content: bool,
)
👎Deprecated: OpenGL is deprecatedAvailable on crate feature CALayer only.
pub unsafe fn setWantsExtendedDynamicRangeContent( &self, wants_extended_dynamic_range_content: bool, )
CALayer only.Setter for wantsExtendedDynamicRangeContent.
Methods from Deref<Target = CALayer>§
pub unsafe fn presentationLayer(&self) -> Option<Retained<CALayer>>
pub unsafe fn modelLayer(&self) -> Retained<CALayer>
pub unsafe fn shouldArchiveValueForKey(&self, key: &NSString) -> bool
Sourcepub fn bounds(&self) -> CGRect
Available on crate feature objc2-core-foundation only.
pub fn bounds(&self) -> CGRect
objc2-core-foundation only.Geometry and layer hierarchy properties. *
Sourcepub fn setBounds(&self, bounds: CGRect)
Available on crate feature objc2-core-foundation only.
pub fn setBounds(&self, bounds: CGRect)
objc2-core-foundation only.Setter for bounds.
pub fn position(&self) -> CGPoint
objc2-core-foundation only.Sourcepub fn setPosition(&self, position: CGPoint)
Available on crate feature objc2-core-foundation only.
pub fn setPosition(&self, position: CGPoint)
objc2-core-foundation only.Setter for position.
pub fn zPosition(&self) -> f64
objc2-core-foundation only.Sourcepub fn setZPosition(&self, z_position: f64)
Available on crate feature objc2-core-foundation only.
pub fn setZPosition(&self, z_position: f64)
objc2-core-foundation only.Setter for zPosition.
pub fn anchorPoint(&self) -> CGPoint
objc2-core-foundation only.Sourcepub fn setAnchorPoint(&self, anchor_point: CGPoint)
Available on crate feature objc2-core-foundation only.
pub fn setAnchorPoint(&self, anchor_point: CGPoint)
objc2-core-foundation only.Setter for anchorPoint.
pub fn anchorPointZ(&self) -> f64
objc2-core-foundation only.Sourcepub fn setAnchorPointZ(&self, anchor_point_z: f64)
Available on crate feature objc2-core-foundation only.
pub fn setAnchorPointZ(&self, anchor_point_z: f64)
objc2-core-foundation only.Setter for anchorPointZ.
pub fn transform(&self) -> CATransform3D
CATransform3D and objc2-core-foundation only.Sourcepub fn setTransform(&self, transform: CATransform3D)
Available on crate features CATransform3D and objc2-core-foundation only.
pub fn setTransform(&self, transform: CATransform3D)
CATransform3D and objc2-core-foundation only.Setter for transform.
pub fn affineTransform(&self) -> CGAffineTransform
objc2-core-foundation only.pub fn setAffineTransform(&self, m: CGAffineTransform)
objc2-core-foundation only.pub fn frame(&self) -> CGRect
objc2-core-foundation only.Sourcepub fn setFrame(&self, frame: CGRect)
Available on crate feature objc2-core-foundation only.
pub fn setFrame(&self, frame: CGRect)
objc2-core-foundation only.Setter for frame.
pub fn isHidden(&self) -> bool
pub fn isDoubleSided(&self) -> bool
Sourcepub fn setDoubleSided(&self, double_sided: bool)
pub fn setDoubleSided(&self, double_sided: bool)
Setter for isDoubleSided.
pub fn isGeometryFlipped(&self) -> bool
Sourcepub fn setGeometryFlipped(&self, geometry_flipped: bool)
pub fn setGeometryFlipped(&self, geometry_flipped: bool)
Setter for isGeometryFlipped.
pub fn contentsAreFlipped(&self) -> bool
pub fn superlayer(&self) -> Option<Retained<CALayer>>
pub fn removeFromSuperlayer(&self)
pub unsafe fn sublayers(&self) -> Option<Retained<NSArray<CALayer>>>
pub fn addSublayer(&self, layer: &CALayer)
pub fn insertSublayer_atIndex(&self, layer: &CALayer, idx: u32)
pub fn insertSublayer_below(&self, layer: &CALayer, sibling: Option<&CALayer>)
pub fn insertSublayer_above(&self, layer: &CALayer, sibling: Option<&CALayer>)
pub unsafe fn replaceSublayer_with( &self, old_layer: &CALayer, new_layer: &CALayer, )
pub fn sublayerTransform(&self) -> CATransform3D
CATransform3D and objc2-core-foundation only.Sourcepub fn setSublayerTransform(&self, sublayer_transform: CATransform3D)
Available on crate features CATransform3D and objc2-core-foundation only.
pub fn setSublayerTransform(&self, sublayer_transform: CATransform3D)
CATransform3D and objc2-core-foundation only.Setter for sublayerTransform.
pub fn mask(&self) -> Option<Retained<CALayer>>
pub fn masksToBounds(&self) -> bool
Sourcepub fn setMasksToBounds(&self, masks_to_bounds: bool)
pub fn setMasksToBounds(&self, masks_to_bounds: bool)
Setter for masksToBounds.
Sourcepub fn convertPoint_fromLayer(&self, p: CGPoint, l: Option<&CALayer>) -> CGPoint
Available on crate feature objc2-core-foundation only.
pub fn convertPoint_fromLayer(&self, p: CGPoint, l: Option<&CALayer>) -> CGPoint
objc2-core-foundation only.Mapping between layer coordinate and time spaces. *
pub fn convertPoint_toLayer(&self, p: CGPoint, l: Option<&CALayer>) -> CGPoint
objc2-core-foundation only.pub fn convertRect_fromLayer(&self, r: CGRect, l: Option<&CALayer>) -> CGRect
objc2-core-foundation only.pub fn convertRect_toLayer(&self, r: CGRect, l: Option<&CALayer>) -> CGRect
objc2-core-foundation only.pub fn convertTime_fromLayer(&self, t: f64, l: Option<&CALayer>) -> f64
objc2-core-foundation only.pub fn convertTime_toLayer(&self, t: f64, l: Option<&CALayer>) -> f64
objc2-core-foundation only.Sourcepub fn hitTest(&self, p: CGPoint) -> Option<Retained<CALayer>>
Available on crate feature objc2-core-foundation only.
pub fn hitTest(&self, p: CGPoint) -> Option<Retained<CALayer>>
objc2-core-foundation only.Hit testing methods. *
pub fn containsPoint(&self, p: CGPoint) -> bool
objc2-core-foundation only.Sourcepub unsafe fn contents(&self) -> Option<Retained<AnyObject>>
pub unsafe fn contents(&self) -> Option<Retained<AnyObject>>
Layer content properties and methods. *
Sourcepub unsafe fn setContents(&self, contents: Option<&AnyObject>)
pub unsafe fn setContents(&self, contents: Option<&AnyObject>)
Setter for contents.
pub fn contentsRect(&self) -> CGRect
objc2-core-foundation only.Sourcepub fn setContentsRect(&self, contents_rect: CGRect)
Available on crate feature objc2-core-foundation only.
pub fn setContentsRect(&self, contents_rect: CGRect)
objc2-core-foundation only.Setter for contentsRect.
pub fn contentsGravity(&self) -> Retained<NSString>
Sourcepub fn setContentsGravity(&self, contents_gravity: &NSString)
pub fn setContentsGravity(&self, contents_gravity: &NSString)
Setter for contentsGravity.
pub fn contentsScale(&self) -> f64
objc2-core-foundation only.Sourcepub fn setContentsScale(&self, contents_scale: f64)
Available on crate feature objc2-core-foundation only.
pub fn setContentsScale(&self, contents_scale: f64)
objc2-core-foundation only.Setter for contentsScale.
pub fn contentsCenter(&self) -> CGRect
objc2-core-foundation only.Sourcepub fn setContentsCenter(&self, contents_center: CGRect)
Available on crate feature objc2-core-foundation only.
pub fn setContentsCenter(&self, contents_center: CGRect)
objc2-core-foundation only.Setter for contentsCenter.
pub fn contentsFormat(&self) -> Retained<NSString>
Sourcepub fn setContentsFormat(&self, contents_format: &NSString)
pub fn setContentsFormat(&self, contents_format: &NSString)
Setter for contentsFormat.
pub unsafe fn wantsExtendedDynamicRangeContent(&self) -> bool
Sourcepub unsafe fn setWantsExtendedDynamicRangeContent(
&self,
wants_extended_dynamic_range_content: bool,
)
pub unsafe fn setWantsExtendedDynamicRangeContent( &self, wants_extended_dynamic_range_content: bool, )
Setter for wantsExtendedDynamicRangeContent.
pub unsafe fn toneMapMode(&self) -> Retained<NSString>
Sourcepub unsafe fn setToneMapMode(&self, tone_map_mode: &NSString)
pub unsafe fn setToneMapMode(&self, tone_map_mode: &NSString)
Setter for toneMapMode.
pub unsafe fn wantsDynamicContentScaling(&self) -> bool
Sourcepub unsafe fn setWantsDynamicContentScaling(
&self,
wants_dynamic_content_scaling: bool,
)
pub unsafe fn setWantsDynamicContentScaling( &self, wants_dynamic_content_scaling: bool, )
Setter for wantsDynamicContentScaling.
pub fn minificationFilter(&self) -> Retained<NSString>
Sourcepub fn setMinificationFilter(&self, minification_filter: &NSString)
pub fn setMinificationFilter(&self, minification_filter: &NSString)
Setter for minificationFilter.
pub fn magnificationFilter(&self) -> Retained<NSString>
Sourcepub fn setMagnificationFilter(&self, magnification_filter: &NSString)
pub fn setMagnificationFilter(&self, magnification_filter: &NSString)
Setter for magnificationFilter.
pub fn minificationFilterBias(&self) -> f32
Sourcepub fn setMinificationFilterBias(&self, minification_filter_bias: f32)
pub fn setMinificationFilterBias(&self, minification_filter_bias: f32)
Setter for minificationFilterBias.
pub fn isOpaque(&self) -> bool
pub fn display(&self)
pub fn setNeedsDisplay(&self)
pub fn setNeedsDisplayInRect(&self, r: CGRect)
objc2-core-foundation only.pub fn needsDisplay(&self) -> bool
pub fn displayIfNeeded(&self)
pub fn needsDisplayOnBoundsChange(&self) -> bool
Sourcepub fn setNeedsDisplayOnBoundsChange(
&self,
needs_display_on_bounds_change: bool,
)
pub fn setNeedsDisplayOnBoundsChange( &self, needs_display_on_bounds_change: bool, )
Setter for needsDisplayOnBoundsChange.
pub fn drawsAsynchronously(&self) -> bool
Sourcepub fn setDrawsAsynchronously(&self, draws_asynchronously: bool)
pub fn setDrawsAsynchronously(&self, draws_asynchronously: bool)
Setter for drawsAsynchronously.
pub fn edgeAntialiasingMask(&self) -> CAEdgeAntialiasingMask
Sourcepub fn setEdgeAntialiasingMask(
&self,
edge_antialiasing_mask: CAEdgeAntialiasingMask,
)
pub fn setEdgeAntialiasingMask( &self, edge_antialiasing_mask: CAEdgeAntialiasingMask, )
Setter for edgeAntialiasingMask.
pub fn allowsEdgeAntialiasing(&self) -> bool
Sourcepub fn setAllowsEdgeAntialiasing(&self, allows_edge_antialiasing: bool)
pub fn setAllowsEdgeAntialiasing(&self, allows_edge_antialiasing: bool)
Setter for allowsEdgeAntialiasing.
pub fn cornerRadius(&self) -> f64
objc2-core-foundation only.Sourcepub fn setCornerRadius(&self, corner_radius: f64)
Available on crate feature objc2-core-foundation only.
pub fn setCornerRadius(&self, corner_radius: f64)
objc2-core-foundation only.Setter for cornerRadius.
pub fn maskedCorners(&self) -> CACornerMask
Sourcepub fn setMaskedCorners(&self, masked_corners: CACornerMask)
pub fn setMaskedCorners(&self, masked_corners: CACornerMask)
Setter for maskedCorners.
pub fn cornerCurve(&self) -> Retained<NSString>
Sourcepub fn setCornerCurve(&self, corner_curve: &NSString)
pub fn setCornerCurve(&self, corner_curve: &NSString)
Setter for cornerCurve.
pub fn borderWidth(&self) -> f64
objc2-core-foundation only.Sourcepub fn setBorderWidth(&self, border_width: f64)
Available on crate feature objc2-core-foundation only.
pub fn setBorderWidth(&self, border_width: f64)
objc2-core-foundation only.Setter for borderWidth.
pub fn opacity(&self) -> f32
Sourcepub fn setOpacity(&self, opacity: f32)
pub fn setOpacity(&self, opacity: f32)
Setter for opacity.
pub fn allowsGroupOpacity(&self) -> bool
Sourcepub fn setAllowsGroupOpacity(&self, allows_group_opacity: bool)
pub fn setAllowsGroupOpacity(&self, allows_group_opacity: bool)
Setter for allowsGroupOpacity.
pub unsafe fn compositingFilter(&self) -> Option<Retained<AnyObject>>
Sourcepub unsafe fn setCompositingFilter(
&self,
compositing_filter: Option<&AnyObject>,
)
pub unsafe fn setCompositingFilter( &self, compositing_filter: Option<&AnyObject>, )
Setter for compositingFilter.
pub unsafe fn filters(&self) -> Option<Retained<NSArray>>
Sourcepub unsafe fn setFilters(&self, filters: Option<&NSArray>)
pub unsafe fn setFilters(&self, filters: Option<&NSArray>)
Setter for filters.
pub unsafe fn backgroundFilters(&self) -> Option<Retained<NSArray>>
Sourcepub unsafe fn setBackgroundFilters(&self, background_filters: Option<&NSArray>)
pub unsafe fn setBackgroundFilters(&self, background_filters: Option<&NSArray>)
Setter for backgroundFilters.
pub fn shouldRasterize(&self) -> bool
Sourcepub fn setShouldRasterize(&self, should_rasterize: bool)
pub fn setShouldRasterize(&self, should_rasterize: bool)
Setter for shouldRasterize.
pub fn rasterizationScale(&self) -> f64
objc2-core-foundation only.Sourcepub fn setRasterizationScale(&self, rasterization_scale: f64)
Available on crate feature objc2-core-foundation only.
pub fn setRasterizationScale(&self, rasterization_scale: f64)
objc2-core-foundation only.Setter for rasterizationScale.
pub fn shadowOpacity(&self) -> f32
Sourcepub fn setShadowOpacity(&self, shadow_opacity: f32)
pub fn setShadowOpacity(&self, shadow_opacity: f32)
Setter for shadowOpacity.
pub fn shadowOffset(&self) -> CGSize
objc2-core-foundation only.Sourcepub fn setShadowOffset(&self, shadow_offset: CGSize)
Available on crate feature objc2-core-foundation only.
pub fn setShadowOffset(&self, shadow_offset: CGSize)
objc2-core-foundation only.Setter for shadowOffset.
pub fn shadowRadius(&self) -> f64
objc2-core-foundation only.Sourcepub fn setShadowRadius(&self, shadow_radius: f64)
Available on crate feature objc2-core-foundation only.
pub fn setShadowRadius(&self, shadow_radius: f64)
objc2-core-foundation only.Setter for shadowRadius.
Sourcepub fn autoresizingMask(&self) -> CAAutoresizingMask
pub fn autoresizingMask(&self) -> CAAutoresizingMask
Layout methods. *
Sourcepub fn setAutoresizingMask(&self, autoresizing_mask: CAAutoresizingMask)
pub fn setAutoresizingMask(&self, autoresizing_mask: CAAutoresizingMask)
Setter for autoresizingMask.
pub fn layoutManager( &self, ) -> Option<Retained<ProtocolObject<dyn CALayoutManager>>>
Sourcepub fn setLayoutManager(
&self,
layout_manager: Option<&ProtocolObject<dyn CALayoutManager>>,
)
pub fn setLayoutManager( &self, layout_manager: Option<&ProtocolObject<dyn CALayoutManager>>, )
Setter for layoutManager.
pub fn preferredFrameSize(&self) -> CGSize
objc2-core-foundation only.pub fn setNeedsLayout(&self)
pub fn needsLayout(&self) -> bool
pub fn layoutIfNeeded(&self)
pub fn layoutSublayers(&self)
pub fn resizeSublayersWithOldSize(&self, size: CGSize)
objc2-core-foundation only.pub fn resizeWithOldSuperlayerSize(&self, size: CGSize)
objc2-core-foundation only.pub fn actionForKey( &self, event: &NSString, ) -> Option<Retained<ProtocolObject<dyn CAAction>>>
pub fn actions( &self, ) -> Option<Retained<NSDictionary<NSString, ProtocolObject<dyn CAAction>>>>
Sourcepub fn setActions(
&self,
actions: Option<&NSDictionary<NSString, ProtocolObject<dyn CAAction>>>,
)
pub fn setActions( &self, actions: Option<&NSDictionary<NSString, ProtocolObject<dyn CAAction>>>, )
Setter for actions.
Sourcepub fn addAnimation_forKey(&self, anim: &CAAnimation, key: Option<&NSString>)
Available on crate feature CAAnimation only.
pub fn addAnimation_forKey(&self, anim: &CAAnimation, key: Option<&NSString>)
CAAnimation only.Animation methods. *
pub fn removeAllAnimations(&self)
pub fn removeAnimationForKey(&self, key: &NSString)
pub fn animationKeys(&self) -> Option<Retained<NSArray<NSString>>>
pub unsafe fn animationForKey( &self, key: &NSString, ) -> Option<Retained<CAAnimation>>
CAAnimation only.pub fn delegate(&self) -> Option<Retained<ProtocolObject<dyn CALayerDelegate>>>
Sourcepub fn setDelegate(
&self,
delegate: Option<&ProtocolObject<dyn CALayerDelegate>>,
)
pub fn setDelegate( &self, delegate: Option<&ProtocolObject<dyn CALayerDelegate>>, )
This is a weak property.
Setter for delegate.
pub unsafe fn style(&self) -> Option<Retained<NSDictionary>>
Sourcepub unsafe fn setStyle(&self, style: Option<&NSDictionary>)
pub unsafe fn setStyle(&self, style: Option<&NSDictionary>)
Setter for style.
Methods from Deref<Target = NSObject>§
Sourcepub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
Handle messages the object doesn’t recognize.
See Apple’s documentation for details.
Methods from Deref<Target = AnyObject>§
Sourcepub fn class(&self) -> &'static AnyClass
pub fn class(&self) -> &'static AnyClass
Dynamically find the class of this object.
§Example
Check that an instance of NSObject has the precise class NSObject.
use objc2::ClassType;
use objc2::runtime::NSObject;
let obj = NSObject::new();
assert_eq!(obj.class(), NSObject::class());Sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load instead.
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Ivar::load instead.Use Ivar::load instead.
§Safety
The object must have an instance variable with the given name, and it
must be of type T.
See Ivar::load_ptr for details surrounding this.
Sourcepub fn downcast_ref<T>(&self) -> Option<&T>where
T: DowncastTarget,
pub fn downcast_ref<T>(&self) -> Option<&T>where
T: DowncastTarget,
Attempt to downcast the object to a class of type T.
This is the reference-variant. Use Retained::downcast if you want
to convert a retained object to another type.
§Mutable classes
Some classes have immutable and mutable variants, such as NSString
and NSMutableString.
When some Objective-C API signature says it gives you an immutable class, it generally expects you to not mutate that, even though it may technically be mutable “under the hood”.
So using this method to convert a NSString to a NSMutableString,
while not unsound, is generally frowned upon unless you created the
string yourself, or the API explicitly documents the string to be
mutable.
See Apple’s documentation on mutability and on
isKindOfClass: for more details.
§Generic classes
Objective-C generics are called “lightweight generics”, and that’s because they aren’t exposed in the runtime. This makes it impossible to safely downcast to generic collections, so this is disallowed by this method.
You can, however, safely downcast to generic collections where all the
type-parameters are AnyObject.
§Panics
This works internally by calling isKindOfClass:. That means that the
object must have the instance method of that name, and an exception
will be thrown (if CoreFoundation is linked) or the process will abort
if that is not the case. In the vast majority of cases, you don’t need
to worry about this, since both root objects NSObject and
NSProxy implement this method.
§Examples
Cast an NSString back and forth from NSObject.
use objc2::rc::Retained;
use objc2_foundation::{NSObject, NSString};
let obj: Retained<NSObject> = NSString::new().into_super();
let string = obj.downcast_ref::<NSString>().unwrap();
// Or with `downcast`, if we do not need the object afterwards
let string = obj.downcast::<NSString>().unwrap();Try (and fail) to cast an NSObject to an NSString.
use objc2_foundation::{NSObject, NSString};
let obj = NSObject::new();
assert!(obj.downcast_ref::<NSString>().is_none());Try to cast to an array of strings.
use objc2_foundation::{NSArray, NSObject, NSString};
let arr = NSArray::from_retained_slice(&[NSObject::new()]);
// This is invalid and doesn't type check.
let arr = arr.downcast_ref::<NSArray<NSString>>();This fails to compile, since it would require enumerating over the array to ensure that each element is of the desired type, which is a performance pitfall.
Downcast when processing each element instead.
use objc2_foundation::{NSArray, NSObject, NSString};
let arr = NSArray::from_retained_slice(&[NSObject::new()]);
for elem in arr {
if let Some(data) = elem.downcast_ref::<NSString>() {
// handle `data`
}
}Trait Implementations§
Source§impl AsRef<CAOpenGLLayer> for SCNLayer
impl AsRef<CAOpenGLLayer> for SCNLayer
Source§fn as_ref(&self) -> &CAOpenGLLayer
fn as_ref(&self) -> &CAOpenGLLayer
Source§impl Borrow<CAOpenGLLayer> for SCNLayer
impl Borrow<CAOpenGLLayer> for SCNLayer
Source§fn borrow(&self) -> &CAOpenGLLayer
fn borrow(&self) -> &CAOpenGLLayer
Source§impl CAMediaTiming for SCNLayer
impl CAMediaTiming for SCNLayer
Source§unsafe fn setBeginTime(&self, begin_time: f64)
unsafe fn setBeginTime(&self, begin_time: f64)
objc2-core-foundation only.beginTime.Source§unsafe fn setDuration(&self, duration: f64)
unsafe fn setDuration(&self, duration: f64)
objc2-core-foundation only.duration.unsafe fn speed(&self) -> f32
Source§unsafe fn timeOffset(&self) -> f64
unsafe fn timeOffset(&self) -> f64
objc2-core-foundation only.Source§unsafe fn setTimeOffset(&self, time_offset: f64)
unsafe fn setTimeOffset(&self, time_offset: f64)
objc2-core-foundation only.timeOffset.unsafe fn repeatCount(&self) -> f32
Source§unsafe fn setRepeatCount(&self, repeat_count: f32)
unsafe fn setRepeatCount(&self, repeat_count: f32)
repeatCount.Source§unsafe fn repeatDuration(&self) -> f64
unsafe fn repeatDuration(&self) -> f64
objc2-core-foundation only.Source§unsafe fn setRepeatDuration(&self, repeat_duration: f64)
unsafe fn setRepeatDuration(&self, repeat_duration: f64)
objc2-core-foundation only.repeatDuration.unsafe fn autoreverses(&self) -> bool
Source§unsafe fn setAutoreverses(&self, autoreverses: bool)
unsafe fn setAutoreverses(&self, autoreverses: bool)
autoreverses.unsafe fn fillMode(&self) -> Retained<NSString>
Source§impl ClassType for SCNLayer
impl ClassType for SCNLayer
Source§const NAME: &'static str = "SCNLayer"
const NAME: &'static str = "SCNLayer"
Source§type Super = CAOpenGLLayer
type Super = CAOpenGLLayer
Source§type ThreadKind = <<SCNLayer as ClassType>::Super as ClassType>::ThreadKind
type ThreadKind = <<SCNLayer as ClassType>::Super as ClassType>::ThreadKind
Source§impl NSObjectProtocol for SCNLayer
impl NSObjectProtocol for SCNLayer
Source§fn isEqual(&self, other: Option<&AnyObject>) -> bool
fn isEqual(&self, other: Option<&AnyObject>) -> bool
Source§fn hash(&self) -> usize
fn hash(&self) -> usize
Source§fn isKindOfClass(&self, cls: &AnyClass) -> bool
fn isKindOfClass(&self, cls: &AnyClass) -> bool
Source§fn is_kind_of<T>(&self) -> bool
fn is_kind_of<T>(&self) -> bool
isKindOfClass directly, or cast your objects with AnyObject::downcast_refSource§fn isMemberOfClass(&self, cls: &AnyClass) -> bool
fn isMemberOfClass(&self, cls: &AnyClass) -> bool
Source§fn respondsToSelector(&self, aSelector: Sel) -> bool
fn respondsToSelector(&self, aSelector: Sel) -> bool
Source§fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
Source§fn debugDescription(&self) -> Retained<NSObject>
fn debugDescription(&self) -> Retained<NSObject>
Source§impl NSSecureCoding for SCNLayer
impl NSSecureCoding for SCNLayer
Source§impl RefEncode for SCNLayer
impl RefEncode for SCNLayer
Source§const ENCODING_REF: Encoding = <CAOpenGLLayer as ::objc2::RefEncode>::ENCODING_REF
const ENCODING_REF: Encoding = <CAOpenGLLayer as ::objc2::RefEncode>::ENCODING_REF
Source§impl SCNSceneRenderer for SCNLayer
Available on crate feature SCNSceneRenderer only.
impl SCNSceneRenderer for SCNLayer
SCNSceneRenderer only.Source§unsafe fn scene(&self) -> Option<Retained<SCNScene>>
unsafe fn scene(&self) -> Option<Retained<SCNScene>>
SCNScene only.Source§unsafe fn setScene(&self, scene: Option<&SCNScene>)
unsafe fn setScene(&self, scene: Option<&SCNScene>)
SCNScene only.scene.Source§unsafe fn sceneTime(&self) -> NSTimeInterval
unsafe fn sceneTime(&self) -> NSTimeInterval
Source§unsafe fn setSceneTime(&self, scene_time: NSTimeInterval)
unsafe fn setSceneTime(&self, scene_time: NSTimeInterval)
sceneTime.Source§unsafe fn delegate(
&self,
) -> Option<Retained<ProtocolObject<dyn SCNSceneRendererDelegate>>>
unsafe fn delegate( &self, ) -> Option<Retained<ProtocolObject<dyn SCNSceneRendererDelegate>>>
Source§unsafe fn setDelegate(
&self,
delegate: Option<&ProtocolObject<dyn SCNSceneRendererDelegate>>,
)
unsafe fn setDelegate( &self, delegate: Option<&ProtocolObject<dyn SCNSceneRendererDelegate>>, )
delegate.Source§unsafe fn hitTest_options(
&self,
point: CGPoint,
options: Option<&NSDictionary<SCNHitTestOption, AnyObject>>,
) -> Retained<NSArray<SCNHitTestResult>>
unsafe fn hitTest_options( &self, point: CGPoint, options: Option<&NSDictionary<SCNHitTestOption, AnyObject>>, ) -> Retained<NSArray<SCNHitTestResult>>
SCNHitTest and objc2-core-foundation only.Source§unsafe fn isNodeInsideFrustum_withPointOfView(
&self,
node: &SCNNode,
point_of_view: &SCNNode,
) -> bool
unsafe fn isNodeInsideFrustum_withPointOfView( &self, node: &SCNNode, point_of_view: &SCNNode, ) -> bool
SCNNode only.Source§unsafe fn nodesInsideFrustumWithPointOfView(
&self,
point_of_view: &SCNNode,
) -> Retained<NSArray<SCNNode>>
unsafe fn nodesInsideFrustumWithPointOfView( &self, point_of_view: &SCNNode, ) -> Retained<NSArray<SCNNode>>
SCNNode only.Source§unsafe fn projectPoint(&self, point: SCNVector3) -> SCNVector3
unsafe fn projectPoint(&self, point: SCNVector3) -> SCNVector3
SceneKitTypes and objc2-core-foundation only.Source§unsafe fn unprojectPoint(&self, point: SCNVector3) -> SCNVector3
unsafe fn unprojectPoint(&self, point: SCNVector3) -> SCNVector3
SceneKitTypes and objc2-core-foundation only.Source§unsafe fn loops(&self) -> bool
unsafe fn loops(&self) -> bool
Source§unsafe fn pointOfView(&self) -> Option<Retained<SCNNode>>
unsafe fn pointOfView(&self) -> Option<Retained<SCNNode>>
SCNNode only.Source§unsafe fn setPointOfView(&self, point_of_view: Option<&SCNNode>)
unsafe fn setPointOfView(&self, point_of_view: Option<&SCNNode>)
SCNNode only.pointOfView.Source§unsafe fn autoenablesDefaultLighting(&self) -> bool
unsafe fn autoenablesDefaultLighting(&self) -> bool
Source§unsafe fn setAutoenablesDefaultLighting(
&self,
autoenables_default_lighting: bool,
)
unsafe fn setAutoenablesDefaultLighting( &self, autoenables_default_lighting: bool, )
autoenablesDefaultLighting.Source§unsafe fn isJitteringEnabled(&self) -> bool
unsafe fn isJitteringEnabled(&self) -> bool
Source§unsafe fn setJitteringEnabled(&self, jittering_enabled: bool)
unsafe fn setJitteringEnabled(&self, jittering_enabled: bool)
isJitteringEnabled.Source§unsafe fn isTemporalAntialiasingEnabled(&self) -> bool
unsafe fn isTemporalAntialiasingEnabled(&self) -> bool
Source§unsafe fn setTemporalAntialiasingEnabled(
&self,
temporal_antialiasing_enabled: bool,
)
unsafe fn setTemporalAntialiasingEnabled( &self, temporal_antialiasing_enabled: bool, )
isTemporalAntialiasingEnabled.Source§unsafe fn prepareObject_shouldAbortBlock(
&self,
object: &AnyObject,
block: Option<&Block<dyn Fn() -> Bool + '_>>,
) -> bool
unsafe fn prepareObject_shouldAbortBlock( &self, object: &AnyObject, block: Option<&Block<dyn Fn() -> Bool + '_>>, ) -> bool
block2 only.Source§unsafe fn prepareObjects_withCompletionHandler(
&self,
objects: &NSArray,
completion_handler: Option<&Block<dyn Fn(Bool)>>,
)
unsafe fn prepareObjects_withCompletionHandler( &self, objects: &NSArray, completion_handler: Option<&Block<dyn Fn(Bool)>>, )
block2 only.Source§unsafe fn showsStatistics(&self) -> bool
unsafe fn showsStatistics(&self) -> bool
Source§unsafe fn setShowsStatistics(&self, shows_statistics: bool)
unsafe fn setShowsStatistics(&self, shows_statistics: bool)
showsStatistics.Source§unsafe fn debugOptions(&self) -> SCNDebugOptions
unsafe fn debugOptions(&self) -> SCNDebugOptions
Source§unsafe fn setDebugOptions(&self, debug_options: SCNDebugOptions)
unsafe fn setDebugOptions(&self, debug_options: SCNDebugOptions)
debugOptions.Source§unsafe fn renderingAPI(&self) -> SCNRenderingAPI
unsafe fn renderingAPI(&self) -> SCNRenderingAPI
Source§unsafe fn workingColorSpace(&self) -> Retained<CGColorSpace>
unsafe fn workingColorSpace(&self) -> Retained<CGColorSpace>
objc2-core-graphics only.Source§unsafe fn context(&self) -> *mut c_void
unsafe fn context(&self) -> *mut c_void
Source§unsafe fn currentRenderCommandEncoder(
&self,
) -> Option<Retained<ProtocolObject<dyn MTLRenderCommandEncoder>>>
unsafe fn currentRenderCommandEncoder( &self, ) -> Option<Retained<ProtocolObject<dyn MTLRenderCommandEncoder>>>
objc2-metal only.Source§unsafe fn currentRenderPassDescriptor(
&self,
) -> Retained<MTLRenderPassDescriptor>
unsafe fn currentRenderPassDescriptor( &self, ) -> Retained<MTLRenderPassDescriptor>
objc2-metal only.Source§unsafe fn device(&self) -> Option<Retained<ProtocolObject<dyn MTLDevice>>>
unsafe fn device(&self) -> Option<Retained<ProtocolObject<dyn MTLDevice>>>
objc2-metal only.Source§unsafe fn colorPixelFormat(&self) -> MTLPixelFormat
unsafe fn colorPixelFormat(&self) -> MTLPixelFormat
objc2-metal only.Source§unsafe fn depthPixelFormat(&self) -> MTLPixelFormat
unsafe fn depthPixelFormat(&self) -> MTLPixelFormat
objc2-metal only.Source§unsafe fn stencilPixelFormat(&self) -> MTLPixelFormat
unsafe fn stencilPixelFormat(&self) -> MTLPixelFormat
objc2-metal only.Source§unsafe fn commandQueue(
&self,
) -> Option<Retained<ProtocolObject<dyn MTLCommandQueue>>>
unsafe fn commandQueue( &self, ) -> Option<Retained<ProtocolObject<dyn MTLCommandQueue>>>
objc2-metal only.Source§unsafe fn audioEngine(&self) -> Retained<AVAudioEngine>
unsafe fn audioEngine(&self) -> Retained<AVAudioEngine>
objc2-avf-audio only.Source§unsafe fn audioEnvironmentNode(&self) -> Retained<AVAudioEnvironmentNode>
unsafe fn audioEnvironmentNode(&self) -> Retained<AVAudioEnvironmentNode>
objc2-avf-audio only.Source§unsafe fn audioListener(&self) -> Option<Retained<SCNNode>>
unsafe fn audioListener(&self) -> Option<Retained<SCNNode>>
SCNNode only.Source§unsafe fn setAudioListener(&self, audio_listener: Option<&SCNNode>)
unsafe fn setAudioListener(&self, audio_listener: Option<&SCNNode>)
SCNNode only.audioListener.Source§unsafe fn currentViewport(&self) -> CGRect
unsafe fn currentViewport(&self) -> CGRect
objc2-core-foundation only.Source§unsafe fn currentTime(&self) -> NSTimeInterval
unsafe fn currentTime(&self) -> NSTimeInterval
Source§unsafe fn setCurrentTime(&self, current_time: NSTimeInterval)
unsafe fn setCurrentTime(&self, current_time: NSTimeInterval)
currentTime.Source§unsafe fn usesReverseZ(&self) -> bool
unsafe fn usesReverseZ(&self) -> bool
Source§unsafe fn setUsesReverseZ(&self, uses_reverse_z: bool)
unsafe fn setUsesReverseZ(&self, uses_reverse_z: bool)
usesReverseZ.Source§impl SCNTechniqueSupport for SCNLayer
Available on crate feature SCNTechnique only.
impl SCNTechniqueSupport for SCNLayer
SCNTechnique only.