#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "ui/gfx/geometry/rrect_f.h"
#include <iomanip>
#include <iostream>
#include <sstream>
#include "base/values.h"
#include "third_party/skia/include/core/SkMatrix.h"
#include "ui/gfx/geometry/rect_conversions.h"
#include "ui/gfx/geometry/rect_f.h"
namespace gfx {
RRectF::RRectF(float x,
float y,
float width,
float height,
float x_rad,
float y_rad)
: … { … }
RRectF::RRectF(float x,
float y,
float width,
float height,
float upper_left_x,
float upper_left_y,
float upper_right_x,
float upper_right_y,
float lower_right_x,
float lower_right_y,
float lower_left_x,
float lower_left_y) { … }
gfx::Vector2dF RRectF::GetSimpleRadii() const { … }
float RRectF::GetSimpleRadius() const { … }
RRectF::Type RRectF::GetType() const { … }
gfx::Vector2dF RRectF::GetCornerRadii(Corner corner) const { … }
void RRectF::GetAllRadii(SkVector radii[4]) const { … }
void RRectF::SetCornerRadii(Corner corner, float x_rad, float y_rad) { … }
gfx::RectF RRectF::CornerBoundingRect(Corner corner) const { … }
void RRectF::Scale(float x_scale, float y_scale) { … }
void RRectF::Offset(float horizontal, float vertical) { … }
const RRectF& RRectF::operator+=(const gfx::Vector2dF& offset) { … }
const RRectF& RRectF::operator-=(const gfx::Vector2dF& offset) { … }
std::string RRectF::ToString() const { … }
namespace {
inline bool AboveTol(float val1, float val2, float tolerance) { … }
}
bool RRectF::ApproximatelyEqual(const RRectF& rect, float tolerance) const { … }
RRectF RRectF::ToEnclosingRRectF(const RRectF& rrect_f) { … }
RRectF RRectF::ToEnclosingRRectFIgnoringError(const RRectF& rrect_f,
float error) { … }
gfx::RoundedCornersF RRectF::GetRoundedCorners() const { … }
}