C# Class FairyGUI.ScrollPane

Inheritance: EventDispatcher
显示文件 Open project: fairygui/FairyGUI-unity Class Usage Examples

Public Methods

Method Description
CancelDragging ( ) : void

当滚动面板处于拖拽滚动状态或即将进入进入拖拽状态时,可以调用此方法停止或禁止本次拖拽。

Dispose ( ) : void

IsChildInView ( GObject obj ) : bool

ScrollBottom ( ) : void

ScrollBottom ( bool ani ) : void

ScrollDown ( ) : void

ScrollDown ( float speed, bool ani ) : void

ScrollLeft ( ) : void

ScrollLeft ( float speed, bool ani ) : void

ScrollPane ( GComponent owner, ScrollType scrollType, Margin scrollBarMargin, ScrollBarDisplayType scrollBarDisplay, int flags, string vtScrollBarRes, string hzScrollBarRes ) : System
ScrollRight ( ) : void

ScrollRight ( float speed, bool ani ) : void

ScrollToView ( GObject obj ) : void

ScrollToView ( GObject obj, bool ani ) : void

ScrollToView ( GObject obj, bool ani, bool setFirst ) : void

ScrollToView ( Rect rect, bool ani, bool setFirst ) : void

ScrollTop ( ) : void

ScrollTop ( bool ani ) : void

ScrollUp ( ) : void

ScrollUp ( float speed, bool ani ) : void

SetCurrentPageX ( int value, bool ani ) : void
SetCurrentPageY ( int value, bool ani ) : void
SetPercX ( float value, bool ani ) : void

SetPercY ( float value, bool ani ) : void

SetPosX ( float value, bool ani ) : void

SetPosY ( float value, bool ani ) : void

Private Methods

Method Description
AdjustMaskContainer ( ) : void
ChangeContentSizeOnScrolling ( float deltaWidth, float deltaHeight, float deltaPosX, float deltaPosY ) : void
HandleSizeChanged ( bool onScrolling = false ) : void
KillTween ( ) : void
OnOwnerSizeChanged ( ) : void
PosChanged ( bool ani ) : void
Refresh ( ) : void
Refresh2 ( ) : void
SetContentSize ( float aWidth, float aHeight ) : void
SetSize ( float aWidth, float aHeight ) : void
ShowScrollBar ( bool val ) : void
SyncPos ( ) : void
UpdateClipSoft ( ) : void
ValidateHolderPos ( ) : void
__mouseWheel ( EventContext context ) : void
__rollOut ( object e ) : void
__rollOver ( object e ) : void
__showScrollBar ( object obj ) : void
__touchBegin ( EventContext context ) : void
__touchEnd ( EventContext context ) : void
__touchMove ( EventContext context ) : void
__tweenComplete ( ) : void
__tweenComplete2 ( ) : void
__tweenUpdate ( ) : void
__tweenUpdate2 ( ) : void
syncScrollBar ( bool end = false ) : void

Method Details

CancelDragging() public method

当滚动面板处于拖拽滚动状态或即将进入进入拖拽状态时,可以调用此方法停止或禁止本次拖拽。
public CancelDragging ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

IsChildInView() public method

public IsChildInView ( GObject obj ) : bool
obj GObject obj must be the direct child of this container
return bool

ScrollBottom() public method

public ScrollBottom ( ) : void
return void

ScrollBottom() public method

public ScrollBottom ( bool ani ) : void
ani bool
return void

ScrollDown() public method

public ScrollDown ( ) : void
return void

ScrollDown() public method

public ScrollDown ( float speed, bool ani ) : void
speed float
ani bool
return void

ScrollLeft() public method

public ScrollLeft ( ) : void
return void

ScrollLeft() public method

public ScrollLeft ( float speed, bool ani ) : void
speed float
ani bool
return void

ScrollPane() public method

public ScrollPane ( GComponent owner, ScrollType scrollType, Margin scrollBarMargin, ScrollBarDisplayType scrollBarDisplay, int flags, string vtScrollBarRes, string hzScrollBarRes ) : System
owner GComponent
scrollType ScrollType
scrollBarMargin Margin
scrollBarDisplay ScrollBarDisplayType
flags int
vtScrollBarRes string
hzScrollBarRes string
return System

ScrollRight() public method

public ScrollRight ( ) : void
return void

ScrollRight() public method

public ScrollRight ( float speed, bool ani ) : void
speed float
ani bool
return void

ScrollToView() public method

public ScrollToView ( GObject obj ) : void
obj GObject obj can be any object on stage, not limited to the direct child of this container.
return void

ScrollToView() public method

public ScrollToView ( GObject obj, bool ani ) : void
obj GObject obj can be any object on stage, not limited to the direct child of this container.
ani bool If moving to target position with animation
return void

ScrollToView() public method

public ScrollToView ( GObject obj, bool ani, bool setFirst ) : void
obj GObject obj can be any object on stage, not limited to the direct child of this container.
ani bool If moving to target position with animation
setFirst bool If true, scroll to make the target on the top/left; If false, scroll to make the target any position in view.
return void

ScrollToView() public method

public ScrollToView ( Rect rect, bool ani, bool setFirst ) : void
rect Rect Rect in local coordinates
ani bool If moving to target position with animation
setFirst bool If true, scroll to make the target on the top/left; If false, scroll to make the target any position in view.
return void

ScrollTop() public method

public ScrollTop ( ) : void
return void

ScrollTop() public method

public ScrollTop ( bool ani ) : void
ani bool
return void

ScrollUp() public method

public ScrollUp ( ) : void
return void

ScrollUp() public method

public ScrollUp ( float speed, bool ani ) : void
speed float
ani bool
return void

SetCurrentPageX() public method

public SetCurrentPageX ( int value, bool ani ) : void
value int
ani bool
return void

SetCurrentPageY() public method

public SetCurrentPageY ( int value, bool ani ) : void
value int
ani bool
return void

SetPercX() public method

public SetPercX ( float value, bool ani ) : void
value float
ani bool
return void

SetPercY() public method

public SetPercY ( float value, bool ani ) : void
value float
ani bool
return void

SetPosX() public method

public SetPosX ( float value, bool ani ) : void
value float
ani bool
return void

SetPosY() public method

public SetPosY ( float value, bool ani ) : void
value float
ani bool
return void