Logo Search packages:      
Sourcecode: inkscape version File versions

bool ColorRGBA::operator== ( const ColorRGBA  other  )  const [inline]

Check to ensure that two ColorRGBA's are equal.

other The guy to check against
Whether or not they are equal
Check each value to see if they are equal. If they all are, return TRUE.

Definition at line 96 of file color-rgba.h.

References _c.

        for (int i = 0; i < 4; i++) {
            if (_c[i] != other[i])
                return FALSE;
        return TRUE;

Generated by  Doxygen 1.6.0   Back to index