C# Class FairyGUI.ScrollPane

Inheritance: EventDispatcher
Afficher le fichier Open project: fairygui/FairyGUI-unity Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

Dispose() public méthode

public Dispose ( ) : void
Résultat void

IsChildInView() public méthode

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

ScrollBottom() public méthode

public ScrollBottom ( ) : void
Résultat void

ScrollBottom() public méthode

public ScrollBottom ( bool ani ) : void
ani bool
Résultat void

ScrollDown() public méthode

public ScrollDown ( ) : void
Résultat void

ScrollDown() public méthode

public ScrollDown ( float speed, bool ani ) : void
speed float
ani bool
Résultat void

ScrollLeft() public méthode

public ScrollLeft ( ) : void
Résultat void

ScrollLeft() public méthode

public ScrollLeft ( float speed, bool ani ) : void
speed float
ani bool
Résultat void

ScrollPane() public méthode

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
Résultat System

ScrollRight() public méthode

public ScrollRight ( ) : void
Résultat void

ScrollRight() public méthode

public ScrollRight ( float speed, bool ani ) : void
speed float
ani bool
Résultat void

ScrollToView() public méthode

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

ScrollToView() public méthode

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
Résultat void

ScrollToView() public méthode

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.
Résultat void

ScrollToView() public méthode

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.
Résultat void

ScrollTop() public méthode

public ScrollTop ( ) : void
Résultat void

ScrollTop() public méthode

public ScrollTop ( bool ani ) : void
ani bool
Résultat void

ScrollUp() public méthode

public ScrollUp ( ) : void
Résultat void

ScrollUp() public méthode

public ScrollUp ( float speed, bool ani ) : void
speed float
ani bool
Résultat void

SetCurrentPageX() public méthode

public SetCurrentPageX ( int value, bool ani ) : void
value int
ani bool
Résultat void

SetCurrentPageY() public méthode

public SetCurrentPageY ( int value, bool ani ) : void
value int
ani bool
Résultat void

SetPercX() public méthode

public SetPercX ( float value, bool ani ) : void
value float
ani bool
Résultat void

SetPercY() public méthode

public SetPercY ( float value, bool ani ) : void
value float
ani bool
Résultat void

SetPosX() public méthode

public SetPosX ( float value, bool ani ) : void
value float
ani bool
Résultat void

SetPosY() public méthode

public SetPosY ( float value, bool ani ) : void
value float
ani bool
Résultat void