Example #1
0
 void BeveledRoundedRectangle(Pt ul, Pt lr, Clr color, Clr border_color, bool up, unsigned int corner_radius/* = 5*/, unsigned int bevel_thick/* = 2*/)
 {
     RoundedRectangle(ul, lr, color,
                      (up ? LightColor(border_color) : DarkColor(border_color)),
                      (up ? DarkColor(border_color) : LightColor(border_color)),
                      corner_radius, bevel_thick);
 }
Example #2
0
 void FlatRoundedRectangle(Pt ul, Pt lr, Clr color, Clr border_color,
                           unsigned int corner_radius/* = 5*/,
                           unsigned int border_thick/* = 2*/)
 {
     RoundedRectangle(ul, lr, color, border_color, border_color,
                      corner_radius, border_thick);
 }
Example #3
0
void
gfxContext::Ellipse(const gfxPoint& center, const gfxSize& dimensions)
{
    gfxSize halfDim = dimensions / 2.0;
    gfxRect r(center - gfxPoint(halfDim.width, halfDim.height), dimensions);
    gfxCornerSizes c(halfDim, halfDim, halfDim, halfDim);

    RoundedRectangle (r, c);
}
Example #4
0
Painter& Painter::RoundedRectangle(double x, double y, double cx, double cy, double r)
{
	return RoundedRectangle(x, y, cx, cy, r, r);
}