void GraphicsContext::strokeRect(const FloatRect& r, float lineWidth) { if (paintingDisabled()) return; CGContextRef context = platformContext(); if (m_state.strokeGradient) { CGContextSaveGState(context); setStrokeThickness(lineWidth); CGContextAddRect(context, r); CGContextReplacePathWithStrokedPath(context); CGContextClip(context); m_state.strokeGradient->paint(this); CGContextRestoreGState(context); return; } if (m_state.strokePattern) applyStrokePattern(); CGContextStrokeRectWithWidth(context, r, lineWidth); }
void GraphicsContext::strokeRect(const FloatRect& r, float lineWidth) { if (paintingDisabled()) return; CGContextStrokeRectWithWidth(platformContext(), r, lineWidth); }
void QuartzWindow::draw_rectangle_black(int x, int y, int w, int h) { set_color(black()); CGContextStrokeRectWithWidth(myContext, CGRectMake(x, y, w, h), 1.0); }
void CGContextStrokeRectWithWidth_wrap( CGContext *con, float x, float y, float width, float height, float stroke_width) { CGContextStrokeRectWithWidth( con, CGRectMake(x, y, width, height), stroke_width); }