Lines Matching defs:m_color
84 Color() : m_color(0), m_valid(false) { }
85 Color(RGBA32 col) : m_color(col), m_valid(true) { }
86 Color(int r, int g, int b) : m_color(makeRGB(r, g, b)), m_valid(true) { }
87 Color(int r, int g, int b, int a) : m_color(makeRGBA(r, g, b, a)), m_valid(true) { }
89 Color(float r, float g, float b, float a) : m_color(makeRGBA32FromFloats(r, g, b, a)), m_valid(true) { }
91 Color(float c, float m, float y, float k, float a) : m_color(makeRGBAFromCMYKA(c, m, y, k, a)), m_valid(true) { }
109 int red() const { return redChannel(m_color); }
110 int green() const { return greenChannel(m_color); }
111 int blue() const { return blueChannel(m_color); }
112 int alpha() const { return alphaChannel(m_color); }
114 RGBA32 rgb() const { return m_color; } // Preserve the alpha.
115 void setRGB(int r, int g, int b) { m_color = makeRGB(r, g, b); m_valid = true; }
116 void setRGB(RGBA32 rgb) { m_color = rgb; m_valid = true; }
177 RGBA32 m_color;