Struct DebugColor

    Definition

    Namespace:
    Tizen.NUI.Physics2D.Chipmunk
    Assembly:
    Tizen.NUI.Physics2D.dll

    RGBA channels as floats used to represent the color for debug drawing.

    public struct DebugColor : IEquatable<DebugColor>
    Implements
    IEquatable<><DebugColor>

    Constructors

    View Source

    DebugColor(float, float, float, float)

    Create a DebugColor with the given color channel values.

    Declaration
    public DebugColor(float red, float green, float blue, float alpha)
    Parameters
    Type Name Description
    float red
    float green
    float blue
    float alpha
    View Source

    DebugColor(float, float, float)

    Create a DebugColor with the given color channel values.

    Declaration
    public DebugColor(float red, float green, float blue)
    Parameters
    Type Name Description
    float red
    float green
    float blue

    Properties

    View Source

    Alpha

    Alpha component in the RGBA color space.

    Declaration
    public float Alpha { get; }
    Property Value
    Type Description
    float
    View Source

    Blue

    Blue component in the RGBA color space.

    Declaration
    public float Blue { get; }
    Property Value
    Type Description
    float
    View Source

    Green

    Green component in the RGBA color space.

    Declaration
    public float Green { get; }
    Property Value
    Type Description
    float
    View Source

    Red

    Red component in the RGBA color space.

    Declaration
    public float Red { get; }
    Property Value
    Type Description
    float

    Methods

    View Source

    Equals(object)

    Check if a DebugColor is equal to another object.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    View Source

    Equals(DebugColor)

    Check if a DebugColor is reference-equal to the other.

    Declaration
    public bool Equals(DebugColor color)
    Parameters
    Type Name Description
    DebugColor color
    Returns
    Type Description
    bool
    View Source

    GetHashCode()

    Get the hash code.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    View Source

    ToString()

    Return a string formatted as "(R, G, B, A)".

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    Operators

    View Source

    operator ==(DebugColor, DebugColor)

    Return true if two DebugColor are reference-equal.

    Declaration
    public static bool operator ==(DebugColor a, DebugColor b)
    Parameters
    Type Name Description
    DebugColor a
    DebugColor b
    Returns
    Type Description
    bool
    View Source

    operator !=(DebugColor, DebugColor)

    Return true if two DebugColor are not reference-equal.

    Declaration
    public static bool operator !=(DebugColor a, DebugColor b)
    Parameters
    Type Name Description
    DebugColor a
    DebugColor b
    Returns
    Type Description
    bool

    Implements

    IEquatable<>

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX