47 VDKRgb(
int r = 0,
int g = 0,
int b = 0): red(r),green(g),blue(b)
63 red = green = blue = -1;
65 if(gdk_color_parse(name, &color))
68 green = color.green >> 8;
69 blue = color.blue >> 8;
75 bool IsValid()
const {
return red != -1 && green != -1 && blue != -1 ; }
81 return ( (red == c.red) && (green == c.green) && (blue == c.blue) );
156 X()
const {
return x; }
158 Y()
const {
return y; }
190 left = top = right = bottom =
w = h = 0;
201 left = x; top = y; right = x+_w; bottom = y+_h;
208 left = r.
left; right = r.right; top = r.top; bottom = r.bottom;
225 W()
const {
return w; }
230 H()
const {
return h; }
238 return point.X() >=
left && point.X() < right
239 && point.Y() >= top && point.Y() < bottom;
247 return r.
left >=
left && r.right <= right
248 && r.top >= top && r.bottom <= bottom;