Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Namespaces | Functions
rect_conversions.cc File Reference
#include "rect_conversions.h"
#include <algorithm>
#include <cmath>
#include "base/logging.h"
#include "base/numerics/safe_conversions.h"

Go to the source code of this file.

Namespaces

namespace  gfx
 

Functions

Rect gfx::ToEnclosingRect (const RectF &r)
 
Rect gfx::ToEnclosingRectIgnoringError (const RectF &r, float error)
 
Rect gfx::ToEnclosedRect (const RectF &rect)
 
Rect gfx::ToEnclosedRectIgnoringError (const RectF &r, float error)
 
Rect gfx::ToNearestRect (const RectF &rect)
 
bool gfx::IsNearestRectWithinDistance (const gfx::RectF &rect, float distance)
 
gfx::Rect gfx::ToRoundedRect (const gfx::RectF &rect)
 
Rect gfx::ToFlooredRectDeprecated (const RectF &rect)