Content


NTL
Core
BorderColor

BorderColor


This union represents four color values which is usually used to store border colors.

You can find more information in comments below.

union BorderColor
{
    struct
    {
        Color Left;
        Color Top;
        Color Right;
        Color Bottom;
    };
    Color Data[4];

    const Color &operator[](const int index) const; // Return element
    Color &operator[](const int index); // Return element
    bool operator==(const BorderColor &b) const; // Check if rects are equal
    bool operator!=(const BorderColor &b) const; // Check if rects are not equal
};

Following operators are also available.

std::wostream &operator<<(std::wostream &stream, const BorderColor &a); // Output as source code
Namespace: nitisa
Include: Nitisa/Image/BorderColor.h