15#include <CoreGraphics/CoreGraphics.h>
16#elif defined(OS_APPLE)
17#include <ApplicationServices/ApplicationServices.h>
24 POINTS
points = MAKEPOINTS(point);
31Point& Point::operator=(
const POINT& point) {
36#elif defined(OS_APPLE)
41POINT Point::ToPOINT()
const {
47#elif defined(OS_APPLE)
48CGPoint Point::ToCGPoint()
const {
49 return CGPointMake(
x(),
y());
53void Point::SetToMin(
const Point& other) {
54 x_ = x_ <= other.x_ ? x_ : other.x_;
55 y_ = y_ <= other.y_ ? y_ : other.y_;
58void Point::SetToMax(
const Point& other) {
59 x_ = x_ >= other.x_ ? x_ : other.x_;
60 y_ = y_ >= other.y_ ? y_ : other.y_;
68 if (x_scale == 1.f && y_scale == 1.f)
80 if (x_scale == 1.f && y_scale == 1.f)
92 if (x_scale == 1.f && y_scale == 1.f)
static const int points[]
std::string StringPrintf(const std::string &format, Args... args)
Point ScaleToFlooredPoint(const Point &point, float scale)
Point ScaleToRoundedPoint(const Point &point, float scale)
Point ToRoundedPoint(const PointF &point)
PointF ScalePoint(const PointF &p, float x_scale, float y_scale)
Point ScaleToCeiledPoint(const Point &point, float scale)
Point ToCeiledPoint(const PointF &point)
Point ToFlooredPoint(const PointF &point)
static std::string ToString(CompilerBackend::Type type)