Lines Matching defs:m_color
74 Color() : m_color(0), m_valid(false) { }
75 Color(RGBA32 col) : m_color(col), m_valid(true) { }
76 Color(int r, int g, int b) : m_color(makeRGB(r, g, b)), m_valid(true) { }
77 Color(int r, int g, int b, int a) : m_color(makeRGBA(r, g, b, a)), m_valid(true) { }
79 Color(float r, float g, float b, float a) : m_color(makeRGBA32FromFloats(r, g, b, a)), m_valid(true) { }
81 Color(float c, float m, float y, float k, float a) : m_color(makeRGBAFromCMYKA(c, m, y, k, a)), m_valid(true) { }
92 int red() const { return (m_color >> 16) & 0xFF; }
93 int green() const { return (m_color >> 8) & 0xFF; }
94 int blue() const { return m_color & 0xFF; }
95 int alpha() const { return (m_color >> 24) & 0xFF; }
97 RGBA32 rgb() const { return m_color; } // Preserve the alpha.
98 void setRGB(int r, int g, int b) { m_color = makeRGB(r, g, b); m_valid = true; }
99 void setRGB(RGBA32 rgb) { m_color = rgb; m_valid = true; }
148 RGBA32 m_color;