Class AlphaFunction

    Definition

    Namespace:
    Tizen.NUI
    Assembly:
    Tizen.NUI.dll

    Alpha functions are used in animations to specify the rate of change of the animation parameter over time.
    Understanding an animation as a parametric function over time, the alpha function is applied to the parameter of the animation before computing the final animation value.

    public class AlphaFunction : IDisposable
    Inheritance
    object
    AlphaFunction
    Implements
    System.IDisposable

    Constructors

    View Source

    AlphaFunction()

    The default constructor.
    Creates an alpha function object with the default built-in alpha function.

    Declaration
    public AlphaFunction()
    View Source

    AlphaFunction(BuiltinFunctions)

    The constructor.
    Creates an alpha function object with the built-in alpha function passed as a parameter to the constructor.

    Declaration
    public AlphaFunction(AlphaFunction.BuiltinFunctions function)
    Parameters
    Type Name Description
    AlphaFunction.BuiltinFunctions function

    One of the built-in alpha functions.

    View Source

    AlphaFunction(Vector2, Vector2)

    The constructor.
    Creates a bezier alpha function. The bezier will have the first point at (0,0) and the end point at (1,1).

    Declaration
    public AlphaFunction(Vector2 controlPoint0, Vector2 controlPoint1)
    Parameters
    Type Name Description
    Vector2 controlPoint0

    A Vector2 which will be used as the first control point of the curve.

    Vector2 controlPoint1

    A Vector2 which will be used as the second control point of the curve.

    Remarks

    The x components of the control points will be clamped to the range [0, 1] to prevent non-monotonic curves.

    View Source

    AlphaFunction(Delegate)

    The constructor.
    Creates an alpha function object with the user-defined alpha function.

    Declaration
    public AlphaFunction(Delegate func)
    Parameters
    Type Name Description
    Tizen.System.Delegate func

    User defined fuction. It must be a method formatted as float alphafunction(float progress)

    Fields

    View Source

    disposed

    A Flat to check if it is already disposed.

    Declaration
    protected bool disposed
    Field Value
    Type Description
    bool
    View Source

    swigCMemOwn

    swigCMemOwn.

    Declaration
    protected bool swigCMemOwn
    Field Value
    Type Description
    bool

    Methods

    View Source

    Dispose()

    To make the AlphaFunction instance be disposed.

    Declaration
    public void Dispose()
    View Source

    Dispose(DisposeTypes)

    To make the AlphaFunction instance be disposed.

    Declaration
    protected virtual void Dispose(DisposeTypes type)
    Parameters
    Type Name Description
    DisposeTypes type
    View Source

    ~AlphaFunction()

    Dispose.

    Declaration
    protected ~AlphaFunction()
    View Source

    GetBezierControlPoints(out Vector2, out Vector2)

    Retrives the control points of the alpha function.

    Declaration
    public void GetBezierControlPoints(out Vector2 controlPoint0, out Vector2 controlPoint1)
    Parameters
    Type Name Description
    Vector2 controlPoint0

    A Vector2 which will be used as the first control point of the curve.

    Vector2 controlPoint1

    A Vector2 which will be used as the second control point of the curve.

    View Source

    GetBuiltinFunction()

    Returns the built-in function used by the alpha function.
    In case no built-in function has been specified, it will return AlphaFunction::DEFAULT.

    Declaration
    public AlphaFunction.BuiltinFunctions GetBuiltinFunction()
    Returns
    Type Description
    AlphaFunction.BuiltinFunctions

    One of the built-in alpha functions.

    View Source

    GetMode()

    Returns the functioning mode of the alpha function.

    Declaration
    public AlphaFunction.Modes GetMode()
    Returns
    Type Description
    AlphaFunction.Modes

    The functioning mode of the alpha function.

    Implements

    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX