Home | History | Annotate | Download | only in gfx

Lines Matching full:rect

15 #include "ui/gfx/rect.h"
113 void Canvas::DrawDashedRect(const gfx::Rect& rect, SkColor color) {
116 // of the focus rect (this may mean that opposing edges of the rect may
152 DrawRect(gfx::Rect(rect.x(), rect.y(), rect.width(), 1), paint);
153 DrawRect(gfx::Rect(rect.x(), rect.y() + rect.height() - 1, rect.width(), 1),
155 DrawRect(gfx::Rect(rect.x(), rect.y(), 1, rect.height()), paint);
156 DrawRect(gfx::Rect(rect.x() + rect.width() - 1, rect.y(), 1, rect.height()),
169 void Canvas::SaveLayerAlpha(uint8 alpha, const gfx::Rect& layer_bounds) {
178 bool Canvas::ClipRect(const gfx::Rect& rect) {
179 return canvas_->clipRect(gfx::RectToSkRect(rect));
186 bool Canvas::GetClipBounds(gfx::Rect* bounds) {
209 void Canvas::FillRect(const gfx::Rect& rect, SkColor color) {
210 FillRect(rect, color, SkXfermode::kSrcOver_Mode);
213 void Canvas::FillRect(const gfx::Rect& rect,
220 DrawRect(rect, paint);
223 void Canvas::DrawRect(const gfx::Rect& rect, SkColor color) {
224 DrawRect(rect, color, SkXfermode::kSrcOver_Mode);
227 void Canvas::DrawRect(const gfx::Rect& rect,
233 // Set a stroke width of 0, which will put us down the stroke rect path. If
239 DrawRect(rect, paint);
242 void Canvas::DrawRect(const gfx::Rect& rect, const SkPaint& paint) {
243 canvas_->drawIRect(RectToSkIRect(rect), paint);
273 void Canvas::DrawRoundRect(const gfx::Rect& rect,
276 canvas_->drawRoundRect(RectToSkRect(rect), SkIntToScalar(radius),
284 void Canvas::DrawFocusRect(const gfx::Rect& rect) {
285 DrawDashedRect(rect, SK_ColorGRAY);
335 NOTREACHED() << "Attempting to draw bitmap from an empty rect!";
387 // The rect will be filled by the bitmap.
422 const gfx::Rect& display_rect) {
435 gfx::Rect(x, y, w, h),
512 bool Canvas::IntersectsClipRect(const gfx::Rect& rect) {
513 return IntersectsClipRectInt(rect.x(), rect.y(),
514 rect.width(), rect.height());