#ifndef UI_GFX_GEOMETRY_INSETS_H_
#define UI_GFX_GEOMETRY_INSETS_H_
#include "base/numerics/clamped_math.h"
#include "ui/gfx/geometry/geometry_export.h"
#include "ui/gfx/geometry/insets_f.h"
#include "ui/gfx/geometry/insets_outsets_base.h"
namespace gfx {
class Outsets;
class Vector2d;
class GEOMETRY_EXPORT Insets : public InsetsOutsetsBase<Insets> { … };
inline Insets operator+(Insets lhs, const Insets& rhs) { … }
inline Insets operator-(Insets lhs, const Insets& rhs) { … }
inline Insets operator+(Insets insets, const gfx::Vector2d& offset) { … }
GEOMETRY_EXPORT Insets ScaleToCeiledInsets(const Insets& insets,
float x_scale,
float y_scale);
GEOMETRY_EXPORT Insets ScaleToCeiledInsets(const Insets& insets, float scale);
GEOMETRY_EXPORT Insets ScaleToFlooredInsets(const Insets& insets,
float x_scale,
float y_scale);
GEOMETRY_EXPORT Insets ScaleToFlooredInsets(const Insets& insets, float scale);
GEOMETRY_EXPORT Insets ScaleToRoundedInsets(const Insets& insets,
float x_scale,
float y_scale);
GEOMETRY_EXPORT Insets ScaleToRoundedInsets(const Insets& insets, float scale);
void PrintTo(const Insets&, ::std::ostream* os);
}
#endif