Lines Matching refs:crect
161 static const SkRect& AsRect(const sk_rect_t& crect) {
162 return reinterpret_cast<const SkRect&>(crect);
289 void sk_path_add_rect(sk_path_t* cpath, const sk_rect_t* crect, sk_path_direction_t cdir) {
294 as_path(cpath)->addRect(AsRect(*crect), dir);
297 void sk_path_add_oval(sk_path_t* cpath, const sk_rect_t* crect, sk_path_direction_t cdir) {
302 as_path(cpath)->addOval(AsRect(*crect), dir);
305 bool sk_path_get_bounds(const sk_path_t* cpath, sk_rect_t* crect) {
309 if (crect) {
310 *crect = ToRect(SkRect::MakeEmpty());
315 if (crect) {
316 *crect = ToRect(path.getBounds());
327 void sk_canvas_save_layer(sk_canvas_t* ccanvas, const sk_rect_t* crect, const sk_paint_t* cpaint) {
328 AsCanvas(ccanvas)->drawRect(AsRect(*crect), AsPaint(*cpaint));
362 void sk_canvas_clip_rect(sk_canvas_t* ccanvas, const sk_rect_t* crect) {
363 AsCanvas(ccanvas)->clipRect(AsRect(*crect));
374 void sk_canvas_draw_rect(sk_canvas_t* ccanvas, const sk_rect_t* crect, const sk_paint_t* cpaint) {
375 AsCanvas(ccanvas)->drawRect(AsRect(*crect), AsPaint(*cpaint));
383 void sk_canvas_draw_oval(sk_canvas_t* ccanvas, const sk_rect_t* crect, const sk_paint_t* cpaint) {
384 AsCanvas(ccanvas)->drawOval(AsRect(*crect), AsPaint(*cpaint));