Lines Matching refs:buf
32 static void sp_ctrlrect_render(SPCanvasItem *item, SPCanvasBuf *buf);
60 static void sp_ctrlrect_render(SPCanvasItem *item, SPCanvasBuf *buf)
62 SP_CTRLRECT(item)->render(buf);
93 void CtrlRect::render(SPCanvasBuf *buf)
104 if ( area_w_shadow.intersects(buf->rect) )
107 cairo_save(buf->ct);
108 cairo_translate(buf->ct, -buf->rect.left(), -buf->rect.top());
109 cairo_set_line_width(buf->ct, 1);
110 if (_dashed) cairo_set_dash(buf->ct, dashes, 2, 0);
111 cairo_rectangle(buf->ct, 0.5 + area[X].min(), 0.5 + area[Y].min(),
116 cairo_set_source(buf->ct, cb);
118 cairo_fill_preserve(buf->ct);
121 ink_cairo_set_source_rgba32(buf->ct, _fill_color);
122 cairo_fill_preserve(buf->ct);
125 ink_cairo_set_source_rgba32(buf->ct, _border_color);
126 cairo_stroke(buf->ct);
130 cairo_set_dash(buf->ct, dashes, 2, 4);
131 cairo_rectangle(buf->ct, 0.5 + area[X].min(), 0.5 + area[Y].min(),
134 cairo_rectangle(buf->ct, -0.5 + area[X].min(), -0.5 + area[Y].min(),
137 ink_cairo_set_source_rgba32(buf->ct, _shadow_color);
138 cairo_stroke(buf->ct);
140 ink_cairo_set_source_rgba32(buf->ct, _shadow_color);
141 cairo_rectangle(buf->ct, 1 + area[X].max(), area[Y].min() + _shadow_size,
143 cairo_rectangle(buf->ct, area[X].min() + _shadow_size, 1 + area[Y].max(),
145 cairo_fill(buf->ct);
147 cairo_restore(buf->ct);