#ifndef UI_GFX_GEOMETRY_POINT_H_
#define UI_GFX_GEOMETRY_POINT_H_
#include <iosfwd>
#include <string>
#include <tuple>
#include "base/numerics/clamped_math.h"
#include "build/build_config.h"
#include "ui/gfx/geometry/geometry_export.h"
#include "ui/gfx/geometry/vector2d.h"
#if BUILDFLAG(IS_WIN)
typedef unsigned long DWORD;
typedef struct tagPOINT POINT;
#elif BUILDFLAG(IS_APPLE)
typedef struct CGPoint CGPoint;
#endif
namespace gfx {
class GEOMETRY_EXPORT Point { … };
constexpr bool operator==(const Point& lhs, const Point& rhs) { … }
inline bool operator!=(const Point& lhs, const Point& rhs) { … }
inline Point operator+(const Point& lhs, const Vector2d& rhs) { … }
inline Point operator-(const Point& lhs, const Vector2d& rhs) { … }
inline Vector2d operator-(const Point& lhs, const Point& rhs) { … }
inline Point PointAtOffsetFromOrigin(const Vector2d& offset_from_origin) { … }
inline Point TransposePoint(const gfx::Point& p) { … }
void PrintTo(const Point& point, ::std::ostream* os);
GEOMETRY_EXPORT Point ScaleToCeiledPoint(const Point& point,
float x_scale,
float y_scale);
GEOMETRY_EXPORT Point ScaleToCeiledPoint(const Point& point, float x_scale);
GEOMETRY_EXPORT Point ScaleToFlooredPoint(const Point& point,
float x_scale,
float y_scale);
GEOMETRY_EXPORT Point ScaleToFlooredPoint(const Point& point, float x_scale);
GEOMETRY_EXPORT Point ScaleToRoundedPoint(const Point& point,
float x_scale,
float y_scale);
GEOMETRY_EXPORT Point ScaleToRoundedPoint(const Point& point, float x_scale);
}
#endif