CAScrollLayer Class Reference
| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/QuartzCore.framework |
| Availability | Available in OS X v10.5 and later. |
| Declared in | CAScrollLayer.h |
| Companion guides | |
Overview
The CAScrollLayer class is a subclass of CALayer that simplifies displaying a portion of a layer. The extent of the scrollable area of the CAScrollLayer is defined by the layout of its sublayers. The visible portion of the layer content is set by specifying the origin as a point or a rectangular area of the contents to be displayed. CAScrollLayer does not provide keyboard or mouse event-handling, nor does it provide visible scrollers.
Properties
scrollMode
Defines the axes in which the layer may be scrolled.
Discussion
The possible values are described in “Scroll Modes”. The default is kCAScrollBoth.
Availability
- Available in OS X v10.5 and later.
Declared In
CAScrollLayer.hInstance Methods
scrollToPoint:
Changes the origin of the receiver to the specified point.
Parameters
- thePoint
The new origin.
Availability
- Available in OS X v10.5 and later.
Declared In
CAScrollLayer.hscrollToRect:
Scroll the contents of the receiver to ensure that the rectangle is visible.
Parameters
- theRect
The rectangle that should be visible.
Availability
- Available in OS X v10.5 and later.
Declared In
CAScrollLayer.hConstants
Scroll Modes
These constants describe the supported scroll modes used by the scrollMode property.
NSString * const kCAScrollNone; NSString * const kCAScrollVertically; NSString * const kCAScrollHorizontally; NSString * const kCAScrollBoth;
Constants
kCAScrollNoneThe receiver is unable to scroll.
Available in OS X v10.5 and later.
Declared in
CAScrollLayer.h.kCAScrollVerticallyThe receiver is able to scroll vertically.
Available in OS X v10.5 and later.
Declared in
CAScrollLayer.h.kCAScrollHorizontallyThe receiver is able to scroll horizontally.
Available in OS X v10.5 and later.
Declared in
CAScrollLayer.h.kCAScrollBothThe receiver is able to scroll both horizontally and vertically.
Available in OS X v10.5 and later.
Declared in
CAScrollLayer.h.
Declared In
CAScrollLayer.h© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-07-24)