C# Class exUIScrollView, ex2d-v1

Inheritance: exUIElement
Show file Open project: exdev/ex2d-v1 Class Usage Examples

Public Properties

Property Type Description
bounce float
bounceBackDuration float
clipRect exClipping,
contentAnchor Transform
deceleration float
horizontalBar exSpriteBorder,
horizontalSlider exSpriteBorder,
scrollDirection ScrollDirection
showSliderOnDragging bool
verticalBar exSpriteBorder,
verticalSlider exSpriteBorder,

Protected Properties

Property Type Description
contentHeight float
contentOffset Vector2
contentWidth float
destX float
destY float
flickingStop float
flickingX bool
flickingY bool
isDragging bool
isPressing bool
maxX float
maxY float
minX float
minY float
pressPoint Vector2
pressTime float
scrollingToX bool
scrollingToY bool
srcX float
srcY float
timerX float
timerY float
velocity Vector2

Public Methods

Method Description
AddElement ( exUIElement, _el ) : void
Clear ( ) : void
MoveTo ( Vector2 _destOffset, float _duration ) : void
OnEvent ( exUIEvent, _e ) : bool
SetOffset ( Vector2 _offset ) : void
UpdateChildPosition ( ) : void
UpdateClipList ( ) : void
UpdateLayout ( ) : void
easing ( float _t ) : float

Protected Methods

Method Description
FadeTo ( FadeToParams _params ) : IEnumerator
FadeToHorizontal ( FadeToParams _params ) : IEnumerator
FadeToVertical ( FadeToParams _params ) : IEnumerator
GetContentHeight ( ) : float
GetContentWidth ( ) : float
MoveTo_CO ( MoveToParams, _params ) : IEnumerator
OnSizeChanged ( float _newWidth, float _newHeight ) : void
Start ( ) : void
Update ( ) : void

Method Details

AddElement() public method

public AddElement ( exUIElement, _el ) : void
_el exUIElement,
return void

Clear() public method

public Clear ( ) : void
return void

FadeTo() protected method

protected FadeTo ( FadeToParams _params ) : IEnumerator
_params FadeToParams
return IEnumerator

FadeToHorizontal() protected method

protected FadeToHorizontal ( FadeToParams _params ) : IEnumerator
_params FadeToParams
return IEnumerator

FadeToVertical() protected method

protected FadeToVertical ( FadeToParams _params ) : IEnumerator
_params FadeToParams
return IEnumerator

GetContentHeight() protected method

protected GetContentHeight ( ) : float
return float

GetContentWidth() protected method

protected GetContentWidth ( ) : float
return float

MoveTo() public method

public MoveTo ( Vector2 _destOffset, float _duration ) : void
_destOffset Vector2
_duration float
return void

MoveTo_CO() protected method

protected MoveTo_CO ( MoveToParams, _params ) : IEnumerator
_params MoveToParams,
return IEnumerator

OnEvent() public method

public OnEvent ( exUIEvent, _e ) : bool
_e exUIEvent,
return bool

OnSizeChanged() protected method

protected OnSizeChanged ( float _newWidth, float _newHeight ) : void
_newWidth float
_newHeight float
return void

SetOffset() public method

public SetOffset ( Vector2 _offset ) : void
_offset Vector2
return void

Start() protected method

protected Start ( ) : void
return void

Update() protected method

protected Update ( ) : void
return void

UpdateChildPosition() public method

public UpdateChildPosition ( ) : void
return void

UpdateClipList() public method

public UpdateClipList ( ) : void
return void

UpdateLayout() public method

public UpdateLayout ( ) : void
return void

easing() public static method

public static easing ( float _t ) : float
_t float
return float

Property Details

bounce public property

public float bounce
return float

bounceBackDuration public property

public float bounceBackDuration
return float

clipRect public property

public exClipping, clipRect
return exClipping,

contentAnchor public property

public Transform contentAnchor
return Transform

contentHeight protected property

protected float contentHeight
return float

contentOffset protected property

protected Vector2 contentOffset
return Vector2

contentWidth protected property

protected float contentWidth
return float

deceleration public property

public float deceleration
return float

destX protected property

protected float destX
return float

destY protected property

protected float destY
return float

flickingStop protected static property

protected static float flickingStop
return float

flickingX protected property

protected bool flickingX
return bool

flickingY protected property

protected bool flickingY
return bool

horizontalBar public property

public exSpriteBorder, horizontalBar
return exSpriteBorder,

horizontalSlider public property

public exSpriteBorder, horizontalSlider
return exSpriteBorder,

isDragging protected property

protected bool isDragging
return bool

isPressing protected property

protected bool isPressing
return bool

maxX protected property

protected float maxX
return float

maxY protected property

protected float maxY
return float

minX protected property

protected float minX
return float

minY protected property

protected float minY
return float

pressPoint protected property

protected Vector2 pressPoint
return Vector2

pressTime protected property

protected float pressTime
return float

scrollDirection public property

public ScrollDirection scrollDirection
return ScrollDirection

scrollingToX protected property

protected bool scrollingToX
return bool

scrollingToY protected property

protected bool scrollingToY
return bool

showSliderOnDragging public property

public bool showSliderOnDragging
return bool

srcX protected property

protected float srcX
return float

srcY protected property

protected float srcY
return float

timerX protected property

protected float timerX
return float

timerY protected property

protected float timerY
return float

velocity protected property

protected Vector2 velocity
return Vector2

verticalBar public property

public exSpriteBorder, verticalBar
return exSpriteBorder,

verticalSlider public property

public exSpriteBorder, verticalSlider
return exSpriteBorder,