MonobjcMonobjc Documented Class Library
NSViewLayerContentsRedrawPolicy Enumeration
NamespacesMonobjc.AppKitNSViewLayerContentsRedrawPolicy

These constants specify how layer resizing is handled when a view is layer-backed or layer-hosting. See layerContentsRedrawPolicy and setLayerContentsRedrawPolicy: for more information.

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public enum NSViewLayerContentsRedrawPolicy
Public Enumeration NSViewLayerContentsRedrawPolicy
public enum class NSViewLayerContentsRedrawPolicy
Members
MemberDescription
NSViewLayerContentsRedrawNever

Leave the layer's contents alone. Never mark the layer as needing display, or draw the view's contents to the layer. This is how developer created layers (layer-hosting views) are treated.

Available in Mac OS X v10.6 and later.


NSViewLayerContentsRedrawOnSetNeedsDisplay

Any of the setNeedsDisplay... methods sent to the view will cause the view redraw the affected layer parts by invoking the view's drawRect:, but neither the layer or the view are marked as needing display when the view's size changes.

Available in Mac OS X v10.6 and later.


NSViewLayerContentsRedrawDuringViewResize

Resize the view’s backing-layer and redraw the view to the layer when the view's size changes. If the resize is animated, AppKit will drive the resize animation itself and will do this resize and redraw at each step of the animation. Affected parts of the layer will also be redrawn when the view is marked as needing display. This mode is a superset of NSViewLayerContentsRedrawOnSetNeedsDisplay. This is the way that layer-backed views are currently treated.

Available in Mac OS X v10.6 and later.


NSViewLayerContentsRedrawBeforeViewResize

Resize the layer and redraw the view to the layer when the view's size changes. This will be done just once at the beginning of a resize animation, not at each frame of the animation. Affected parts of the layer will also be redrawn when the view is marked as needing display. This mode is a superset of NSViewLayerContentsRedrawOnSetNeedsDisplay.

Available in Mac OS X v10.6 and later.


Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)