CAEAGLLayer Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Layer used to render OpenGL content.
[Foundation.Register("CAEAGLLayer", true)]
public class CAEAGLLayer : CoreAnimation.CALayer, IDisposable, OpenGLES.IEAGLDrawable
[<Foundation.Register("CAEAGLLayer", true)>]
type CAEAGLLayer = class
inherit CALayer
interface IEAGLDrawable
interface INativeObject
interface IDisposable
- Inheritance
- Attributes
- Implements
Remarks
When you want to use one of the CALayer subclasses as your UIView's backing layer, you need to add the following code snippet to your class:
class MyView : UIView {
//
// This instructs the runtime that whenever a MyView is created
// that it should instantiate a CAEAGLLayer and assign that to the
// UIView.Layer property
//
[Export ("layerClass")]
public static Class LayerClass () {
return new Class (typeof (CAEAGLLayer));
}
}
Constructors
| Name | Description |
|---|---|
| CAEAGLLayer() |
Creates a new CAEAGLLayer with default values. |
| CAEAGLLayer(NativeHandle) |
A constructor used when creating managed representations of unmanaged objects. Called by the runtime. |
| CAEAGLLayer(NSCoder) |
A constructor that initializes the object from the data stored in the unarchiver object. |
| CAEAGLLayer(NSObjectFlag) |
Constructor to call on derived classes to skip initialization and merely allocate the object. |
Properties
| Name | Description |
|---|---|
| AccessibilityAttributedUserInputLabels | (Inherited from NSObject) |
| AccessibilityRespondsToUserInteraction | (Inherited from NSObject) |
| AccessibilityTextualContext | (Inherited from NSObject) |
| AccessibilityUserInputLabels | (Inherited from NSObject) |
| Actions |
NSDictionary containing the layer's actions. (Inherited from CALayer) |
| AffineTransform |
The affine version of the layer's Transform. (Inherited from CALayer) |
| AllowsEdgeAntialiasing |
Whether edge antialiasing is allowed. (Inherited from CALayer) |
| AllowsGroupOpacity |
Whether group opacity is allowed. (Inherited from CALayer) |
| AnchorPoint |
The anchor point for the Bounds rectangle. (Inherited from CALayer) |
| AnchorPointZ |
The anchor point for the Bounds, defined along the Z axis. (Inherited from CALayer) |
| AnimationKeys |
Identifiers for the animations associated with this layer. (Inherited from CALayer) |
| AutoReverses | (Inherited from CALayer) |
| BackgroundColor |
The background color of the layer. (Inherited from CALayer) |
| BackgroundFilters |
An array of Core Image filters that are applied to the content behind this layer. (Inherited from CALayer) |
| BeginTime | (Inherited from CALayer) |
| BorderColor |
The color of the border of the layer. (Inherited from CALayer) |
| BorderWidth |
The width of the border of the layer. (Inherited from CALayer) |
| Bounds | (Inherited from CALayer) |
| Class | (Inherited from NSObject) |
| ClassHandle |
The Objective-C class handle for this class. |
| CompositingFilter |
A Core Image filter that is used for compositing the layer and the content behind it. (Inherited from CALayer) |
| Contents |
The contents of this layer, as a CGImage. (Inherited from CALayer) |
| ContentsAreFlipped |
Whether the layer's contents are implicitly flipped when the layer is rendered. (Inherited from CALayer) |
| ContentsCenter | (Inherited from CALayer) |
| ContentsFormat |
Gets the contents format for the layer. (Inherited from CALayer) |
| ContentsGravity | (Inherited from CALayer) |
| ContentsHeadroom | (Inherited from CALayer) |
| ContentsRect | (Inherited from CALayer) |
| ContentsScale |
The scale factor applied to the layer. (Inherited from CALayer) |
| CornerCurve | (Inherited from CALayer) |
| CornerRadius |
The radius used when drawing rounded corners. (Inherited from CALayer) |
| DebugDescription | (Inherited from NSObject) |
| Delegate |
An instance of the CoreAnimation.ICALayerDelegate model class which acts as the class delegate. (Inherited from CALayer) |
| Description | (Inherited from NSObject) |
| DoubleSided |
Whether the layer draws its content when facing away from the viewer. (Inherited from CALayer) |
| DrawableProperties | |
| DrawsAsynchronously |
Whether drawing commands are deferred and processed asynchronously on a background thread. (Inherited from CALayer) |
| Duration | (Inherited from CALayer) |
| EdgeAntialiasingMask | (Inherited from CALayer) |
| FillMode | (Inherited from CALayer) |
| Filters |
An array of Core Image filters applied to the content of this layer and its sublayers. (Inherited from CALayer) |
| Frame | (Inherited from CALayer) |
| GeometryFlipped | (Inherited from CALayer) |
| Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from NSObject) |
| Hidden |
Whether the layer is not displayed. (Inherited from CALayer) |
| IsDirectBinding |
Gets or sets a value indicating whether this instance uses direct Objective-C binding. (Inherited from NSObject) |
| IsProxy | (Inherited from NSObject) |
| MagnificationFilter | (Inherited from CALayer) |
| Mask |
An optional layer, the alpha channel of which is used to mask the contents of this layer. (Inherited from CALayer) |
| MaskedCorners | (Inherited from CALayer) |
| MasksToBounds |
Whether sublayers are clipped to the Bounds of this layer. (Inherited from CALayer) |
| MinificationFilter | (Inherited from CALayer) |
| MinificationFilterBias | (Inherited from CALayer) |
| ModelLayer | (Inherited from CALayer) |
| Name | (Inherited from CALayer) |
| NeedsDisplay |
Whether the layer has been marked as requiring an update. (Inherited from CALayer) |
| NeedsDisplayOnBoundsChange | (Inherited from CALayer) |
| Opacity |
The transparency of the layer, in the range 0 (transparent) to 1.0 (opaque). (Inherited from CALayer) |
| Opaque |
Whether the layer and its contents are completely opaque. (Inherited from CALayer) |
| Position |
The layer's position in the coordinate space of its SuperLayer. (Inherited from CALayer) |
| PreferredDynamicRange | (Inherited from CALayer) |
| PresentationLayer | (Inherited from CALayer) |
| PresentsWithTransaction |
Gets or sets a Boolean value that controls whether the layer is presented synchronously or asynchronously. |
| RasterizationScale | (Inherited from CALayer) |
| RepeatCount | (Inherited from CALayer) |
| RepeatDuration | (Inherited from CALayer) |
| RetainCount | (Inherited from NSObject) |
| Self | (Inherited from NSObject) |
| ShadowColor | (Inherited from CALayer) |
| ShadowOffset | (Inherited from CALayer) |
| ShadowOpacity | (Inherited from CALayer) |
| ShadowPath | (Inherited from CALayer) |
| ShadowRadius | (Inherited from CALayer) |
| ShouldRasterize | (Inherited from CALayer) |
| Speed | (Inherited from CALayer) |
| Style | (Inherited from CALayer) |
| Sublayers | (Inherited from CALayer) |
| SublayerTransform | (Inherited from CALayer) |
| Superclass | (Inherited from NSObject) |
| SuperHandle |
Handle used to represent the methods in the base class for this NSObject. (Inherited from NSObject) |
| SuperLayer | (Inherited from CALayer) |
| TimeOffset | (Inherited from CALayer) |
| ToneMapMode | (Inherited from CALayer) |
| Transform | (Inherited from CALayer) |
| VisibleRect | (Inherited from CALayer) |
| WantsExtendedDynamicRangeContent | (Inherited from CALayer) |
| WeakDelegate |
An object that can respond to the delegate protocol for this type (Inherited from CALayer) |
| WeakPreferredDynamicRange | (Inherited from CALayer) |
| Zone | (Inherited from NSObject) |
| ZPosition | (Inherited from CALayer) |
Methods
| Name | Description |
|---|---|
| ActionForKey(String) |
Returns the Actions value associated with the specified key. (Inherited from CALayer) |
| AddAnimation(CAAnimation, String) |
Adds the |
| AddObserver(NSObject, NSString, NSKeyValueObservingOptions, IntPtr) | (Inherited from NSObject) |
| AddObserver(NSObject, String, NSKeyValueObservingOptions, IntPtr) | (Inherited from NSObject) |
| AddObserver(NSString, NSKeyValueObservingOptions, Action<NSObservedChange>) |
Registers an object for being observed externally using an arbitrary method. (Inherited from NSObject) |
| AddObserver(String, NSKeyValueObservingOptions, Action<NSObservedChange>) |
Registers an object for being observed externally using an arbitrary method. (Inherited from NSObject) |
| AddSublayer(CALayer) |
Appends the |
| AnimationForKey(String) |
Returns the animation associated with the |
| AwakeFromNib() | (Inherited from NSObject) |
| BeginInvokeOnMainThread(Action) |
Invokes the specified action asynchronously on the main UI thread. (Inherited from NSObject) |
| BeginInvokeOnMainThread(Selector, NSObject) |
Invokes asynchronously the specified code on the main UI thread. (Inherited from NSObject) |
| Clone(CALayer) |
This method should be overwritten to provide cloning capabilities for the layer. (Inherited from CALayer) |
| ConformsToProtocol(NativeHandle) | (Inherited from NSObject) |
| Contains(CGPoint) | (Inherited from CALayer) |
| ConvertPointFromLayer(CGPoint, CALayer) | (Inherited from CALayer) |
| ConvertPointToLayer(CGPoint, CALayer) | (Inherited from CALayer) |
| ConvertRectFromLayer(CGRect, CALayer) | (Inherited from CALayer) |
| ConvertRectToLayer(CGRect, CALayer) | (Inherited from CALayer) |
| ConvertTimeFromLayer(Double, CALayer) | (Inherited from CALayer) |
| ConvertTimeToLayer(Double, CALayer) | (Inherited from CALayer) |
| Copy() | (Inherited from NSObject) |
| Create() |
Creates and returns a new CALayer. |
| DangerousAutorelease() |
Calls the 'autorelease' selector on this object. (Inherited from NSObject) |
| DangerousRelease() |
Calls the 'release' selector on this object. (Inherited from NSObject) |
| DangerousRetain() |
Calls the 'retain' selector on this object. (Inherited from NSObject) |
| DidChange(NSKeyValueChange, NSIndexSet, NSString) | (Inherited from NSObject) |
| DidChange(NSString, NSKeyValueSetMutationKind, NSSet) | (Inherited from NSObject) |
| DidChangeValue(String) | (Inherited from NSObject) |
| Display() | (Inherited from CALayer) |
| DisplayIfNeeded() | (Inherited from CALayer) |
| Dispose() |
Releases the resources used by the NSObject object. (Inherited from NSObject) |
| Dispose(Boolean) | (Inherited from CALayer) |
| DoesNotRecognizeSelector(Selector) | (Inherited from NSObject) |
| DrawInContext(CGContext) |
Draws the layer on the specified context. (Inherited from CALayer) |
| EncodeTo(NSCoder) |
Encodes the state of the object using the provided encoder. (Inherited from CALayer) |
| Equals(NSObject) |
Determines whether the specified NSObject is equal to the current NSObject. (Inherited from NSObject) |
| Equals(Object) |
Determines whether the specified object is equal to the current NSObject. (Inherited from NSObject) |
| GetContentsAs<T>() |
Get the Contents property for an object that is not CGImage. (Inherited from CALayer) |
| GetDictionaryOfValuesFromKeys(NSString[]) | (Inherited from NSObject) |
| GetHashCode() |
Generates a hash code for the current instance. (Inherited from NSObject) |
| GetMethodForSelector(Selector) | (Inherited from NSObject) |
| GetNativeHash() | (Inherited from NSObject) |
| HitTest(CGPoint) |
The furthest descendant in this layer's hierarchy that contains the point |
| Init() |
Initializes the object by calling the Objective-C |
| InitializeHandle(NativeHandle, String) | (Inherited from NSObject) |
| InitializeHandle(NativeHandle) | (Inherited from NSObject) |
| InsertSublayer(CALayer, Int32) |
Inserts the specified layer into the Sublayers array at the specified index. (Inherited from CALayer) |
| InsertSublayerAbove(CALayer, CALayer) |
Inserts the specified layer into the Sublayers array immediately after |
| InsertSublayerBelow(CALayer, CALayer) |
Inserts the specified layer into the Sublayers array immediately prior to |
| Invoke(Action, Double) |
Invokes the specified action after the specified delay. (Inherited from NSObject) |
| Invoke(Action, TimeSpan) |
Invokes the specified action after the specified delay. (Inherited from NSObject) |
| InvokeOnMainThread(Action) |
Invokes the specified action synchronously on the main UI thread. (Inherited from NSObject) |
| InvokeOnMainThread(Selector, NSObject) |
Invokes synchronously the specified code on the main UI thread. (Inherited from NSObject) |
| IsEqual(NSObject) | (Inherited from NSObject) |
| IsKindOfClass(Class) | (Inherited from NSObject) |
| IsMemberOfClass(Class) | (Inherited from NSObject) |
| LayoutIfNeeded() | (Inherited from CALayer) |
| LayoutSublayers() | (Inherited from CALayer) |
| MarkDirty() |
Promotes a regular peer object (IsDirectBinding is true) into a toggleref object. (Inherited from NSObject) |
| MutableCopy() | (Inherited from NSObject) |
| NeedsLayout() | (Inherited from CALayer) |
| ObserveValue(NSString, NSObject, NSDictionary, IntPtr) | (Inherited from NSObject) |
| PerformSelector(Selector, NSObject, Double, NSString[]) | (Inherited from NSObject) |
| PerformSelector(Selector, NSObject, Double) | (Inherited from NSObject) |
| PerformSelector(Selector, NSObject, NSObject) | (Inherited from NSObject) |
| PerformSelector(Selector, NSObject) | (Inherited from NSObject) |
| PerformSelector(Selector, NSThread, NSObject, Boolean, NSString[]) | (Inherited from NSObject) |
| PerformSelector(Selector, NSThread, NSObject, Boolean) | (Inherited from NSObject) |
| PerformSelector(Selector) | (Inherited from NSObject) |
| PreferredFrameSize() |
The preferred size for this layer, in the coordinate of its SuperLayer. (Inherited from CALayer) |
| PrepareForInterfaceBuilder() | (Inherited from NSObject) |
| RemoveAllAnimations() |
Removes all animations currently attached to the layer. (Inherited from CALayer) |
| RemoveAnimation(String) |
Removes the specified animation from the layer. (Inherited from CALayer) |
| RemoveFromSuperLayer() |
Removes |
| RemoveObserver(NSObject, NSString, IntPtr) | (Inherited from NSObject) |
| RemoveObserver(NSObject, NSString) | (Inherited from NSObject) |
| RemoveObserver(NSObject, String, IntPtr) | (Inherited from NSObject) |
| RemoveObserver(NSObject, String) | (Inherited from NSObject) |
| RenderInContext(CGContext) |
Renders the layer into the specified CGContext. (Inherited from CALayer) |
| ReplaceSublayer(CALayer, CALayer) | (Inherited from CALayer) |
| RespondsToSelector(Selector) | (Inherited from NSObject) |
| ScrollPoint(CGPoint) | (Inherited from CALayer) |
| ScrollRectToVisible(CGRect) | (Inherited from CALayer) |
| SetContents(NSObject) |
Set the Contents property to an object that is not CGImage. (Inherited from CALayer) |
| SetNeedsDisplay() | (Inherited from CALayer) |
| SetNeedsDisplayInRect(CGRect) | (Inherited from CALayer) |
| SetNeedsLayout() | (Inherited from CALayer) |
| SetNilValueForKey(NSString) | (Inherited from NSObject) |
| SetValueForKey(NSObject, NSString) | (Inherited from NSObject) |
| SetValueForKeyPath(NativeHandle, NSString) |
Sets the value for the property identified by a given key path to a given value. (Inherited from NSObject) |
| SetValueForKeyPath(NSObject, NSString) | (Inherited from NSObject) |
| SetValueForUndefinedKey(NSObject, NSString) | (Inherited from NSObject) |
| SetValuesForKeysWithDictionary(NSDictionary) | (Inherited from NSObject) |
| ToString() |
Returns a string representation of the value of the current instance. (Inherited from NSObject) |
| ValueForKey(NSString) | (Inherited from NSObject) |
| ValueForKeyPath(NSString) | (Inherited from NSObject) |
| ValueForUndefinedKey(NSString) | (Inherited from NSObject) |
| WillChange(NSKeyValueChange, NSIndexSet, NSString) | (Inherited from NSObject) |
| WillChange(NSString, NSKeyValueSetMutationKind, NSSet) | (Inherited from NSObject) |
| WillChangeValue(String) | (Inherited from NSObject) |