Home | History | Annotate | Download | only in gfx

Lines Matching refs:rect

8 #include "ui/gfx/rect.h"
13 // Returns the smallest Rect that encloses the given RectF.
14 UI_EXPORT Rect ToEnclosingRect(const RectF& rect);
16 // Returns the largest Rect that is enclosed by the given RectF.
17 UI_EXPORT Rect ToEnclosedRect(const RectF& rect);
19 // Returns the Rect after snapping the corners of the RectF to an integer grid.
21 // integer rect with floating point error. If it is an arbitrary RectF, then
23 UI_EXPORT Rect ToNearestRect(const RectF& rect);
25 // Returns true if the Rect produced after snapping the corners of the RectF
28 const gfx::RectF& rect, float distance);
30 // Returns a Rect obtained by flooring the values of the given RectF.
32 UI_EXPORT Rect ToFlooredRectDeprecated(const RectF& rect);