-
Notifications
You must be signed in to change notification settings - Fork 421
CAScrollView
CAScrollView is namely scroll view and is responsible for CrossApp’s all scroll operations. It supports cutting rendering outside of its rectangle region and enables its sub view to support slide operation and zoom functionality.
CAView
Access modifier |
Attribute name |
Description |
protected |
ViewSize |
ScrollView container size |
public |
ContentOffset |
Offset relative to view top |
protected |
Bounces |
Scroll bounce, simultaneously control horizontal and vertical directions |
protected |
BounceHorizontal |
Horizontal bounce |
protected |
BouncesVertical |
Vertical bounce |
protected |
ScrollEnabled |
Scrollable or not |
protected |
Tracking |
Is in scroll status or not |
protected |
Decelerating |
Is in inertial motion or not |
protected |
ShowsHorizontalScrollIndicator |
Horizontal indicator |
protected |
ShowsVerticalScrollIndicator |
Vertical indicator |
protected |
Zooming |
Zoom control or not |
protected |
MinimumZoomScale |
Sliding layer zoom minimum limit |
protected |
MaximumZoomScale |
Sliding layer zoom maximum limit |
protected |
ZoomScale |
Sliding layer zoom scale |
public |
BackGroundImage |
background image |
public |
BackGroundColor |
background color |
protected |
HeaderRefreshView |
header refresh view |
protected |
FooterRefreshView |
footer refresh view |
protected |
ScrollViewDelegate |
sliding event delegate |
ViewSize
Type: CCSize
Description: scrollView container size, scrollView’s scroll range limit, get/set{}.
ContentOffset
Type: CCpoint
Description: offset relative to current view, get/set{}.
Bounces
Type: bool
Description: scroll bounce is allowed or not (including horizontal and vertical bounce), it’s enabled by default, is/set{}.
BounceHorizontal
Type: bool
Description: horizontal scroll bounce is allowed or not, it’s enabled by default, is/set{}.
BouncesVertical
Type: bool
Description: vertical scroll bounce is allowed or not, it’s enabled by default, is/set{}.
ScrollEnabled
Type: bool
Description: scroll is allowed or not, it’s allowed by default, is/set{}.
Tracking
Type: bool
Description: it’s in scroll status or not, is/set{}.
Decelerating
Type: bool
Description: it’s in inertial motion or not, namely the period between scrollView touch ending moment and scrollView stopping scroll moment, is/set{}.
ShowsHorizontalScrollIndicator
Type: bool
Description: display horizontal scroll indicator or not, it’s displayed by default, is/set{}.
ShowsVerticalScrollIndicator
Type: bool
Description: display vertical scroll indicator or not, it’s displayed by default, is/set{}.
Zooming
Type: bool
Description: it’s in zoom control status or not, is/set{}.
MinimumZoomScale
Type: float
Description: minimum zoom scale, default value is 1, get/set{}.
MaximumZoomScale
Type: float
Description: maximum zoom scale, default value is 1, get/set{}.
ZoomScal
Type: float
Description: scrollView’s zoom scale, default value is 1, get/set{}.
BackGroundImage
Type: CAImage*
Descripiton: scrollView’s background image, get/set{}.
BackGroundColor
Type: CAColor4B
Descripiton: scrollView’s background color, get/set{}.
HeaderRefreshView
Type: CAPullToRefreshView*
Descripiton: scrollView’s top refresh view, get/set{}.
FooterRefreshView
Type: CAPullToRefreshView*
Descripiton: scrollView’s footer refresh view, get/set{}.
ScrollViewDelegate
Type: CAScrollViewDelegate*
Descripiton: scrollView’s sliding event delegate