Classes | |
| class | Insets |
| class | InsetsF |
| class | Point |
| class | PointF |
| class | Range |
| class | Rect |
| class | RectF |
| class | Size |
| class | SizeF |
| class | Transform |
| class | Vector2d |
| class | Vector2dF |
Typedefs | |
| typedef struct _UnimplementedNativeViewAccessible | UnimplementedNativeViewAccessible |
| typedef UnimplementedNativeViewAccessible * | NativeViewAccessible |
| typedef intptr_t | NativeViewId |
Functions | |
| Insets | operator+ (Insets lhs, const Insets &rhs) |
| Insets | operator- (Insets lhs, const Insets &rhs) |
| InsetsF | operator+ (InsetsF lhs, const InsetsF &rhs) |
| InsetsF | operator- (InsetsF lhs, const InsetsF &rhs) |
| Point | ScaleToCeiledPoint (const Point &point, float x_scale, float y_scale) |
| Point | ScaleToCeiledPoint (const Point &point, float scale) |
| Point | ScaleToFlooredPoint (const Point &point, float x_scale, float y_scale) |
| Point | ScaleToFlooredPoint (const Point &point, float scale) |
| Point | ScaleToRoundedPoint (const Point &point, float x_scale, float y_scale) |
| Point | ScaleToRoundedPoint (const Point &point, float scale) |
| bool | operator== (const Point &lhs, const Point &rhs) |
| bool | operator!= (const Point &lhs, const Point &rhs) |
| Point | operator+ (const Point &lhs, const Vector2d &rhs) |
| Point | operator- (const Point &lhs, const Vector2d &rhs) |
| Vector2d | operator- (const Point &lhs, const Point &rhs) |
| Point | PointAtOffsetFromOrigin (const Vector2d &offset_from_origin) |
| void | PrintTo (const Point &point, ::std::ostream *os) |
| Point | ToFlooredPoint (const PointF &point) |
| Point | ToCeiledPoint (const PointF &point) |
| Point | ToRoundedPoint (const PointF &point) |
| PointF | ScalePoint (const PointF &p, float x_scale, float y_scale) |
| bool | operator== (const PointF &lhs, const PointF &rhs) |
| bool | operator!= (const PointF &lhs, const PointF &rhs) |
| PointF | operator+ (const PointF &lhs, const Vector2dF &rhs) |
| PointF | operator- (const PointF &lhs, const Vector2dF &rhs) |
| Vector2dF | operator- (const PointF &lhs, const PointF &rhs) |
| PointF | PointAtOffsetFromOrigin (const Vector2dF &offset_from_origin) |
| PointF | ScalePoint (const PointF &p, float scale) |
| void | PrintTo (const PointF &point, ::std::ostream *os) |
| TEST (PointTest, ToPointF) | |
| TEST (PointTest, IsOrigin) | |
| TEST (PointTest, VectorArithmetic) | |
| TEST (PointTest, OffsetFromPoint) | |
| TEST (PointTest, ToRoundedPoint) | |
| TEST (PointTest, Scale) | |
| TEST (PointTest, ClampPoint) | |
| TEST (PointTest, ClampPointF) | |
| TEST (PointTest, Offset) | |
| TEST (PointTest, VectorMath) | |
| TEST (PointTest, IntegerOverflow) | |
| void | AdjustAlongAxis (int dst_origin, int dst_size, int *origin, int *size) |
| static void | SaturatedClampRange (int min, int max, int *origin, int *span) |
| Rect | operator+ (const Rect &lhs, const Vector2d &rhs) |
| Rect | operator- (const Rect &lhs, const Vector2d &rhs) |
| Rect | IntersectRects (const Rect &a, const Rect &b) |
| Rect | UnionRects (const Rect &a, const Rect &b) |
| Rect | SubtractRects (const Rect &a, const Rect &b) |
| Rect | BoundingRect (const Point &p1, const Point &p2) |
| bool | operator== (const Rect &lhs, const Rect &rhs) |
| bool | operator!= (const Rect &lhs, const Rect &rhs) |
| Rect | operator+ (const Vector2d &lhs, const Rect &rhs) |
| Rect | ScaleToEnclosingRect (const Rect &rect, float x_scale, float y_scale) |
| Rect | ScaleToEnclosingRect (const Rect &rect, float scale) |
| Rect | ScaleToEnclosingRectSafe (const Rect &rect, float x_scale, float y_scale) |
| Rect | ScaleToEnclosingRectSafe (const Rect &rect, float scale) |
| Rect | ScaleToEnclosedRect (const Rect &rect, float x_scale, float y_scale) |
| Rect | ScaleToEnclosedRect (const Rect &rect, float scale) |
| Rect | ScaleToRoundedRect (const Rect &rect, float x_scale, float y_scale) |
| Rect | ScaleToRoundedRect (const Rect &rect, float scale) |
| void | PrintTo (const Rect &rect, ::std::ostream *os) |
| Rect | ToEnclosingRect (const RectF &r) |
| Rect | ToEnclosingRectIgnoringError (const RectF &r, float error) |
| Rect | ToEnclosedRect (const RectF &rect) |
| Rect | ToEnclosedRectIgnoringError (const RectF &r, float error) |
| Rect | ToNearestRect (const RectF &rect) |
| bool | IsNearestRectWithinDistance (const gfx::RectF &rect, float distance) |
| gfx::Rect | ToRoundedRect (const gfx::RectF &rect) |
| Rect | ToFlooredRectDeprecated (const RectF &rect) |
| static void | AdjustAlongAxis (float dst_origin, float dst_size, float *origin, float *size) |
| RectF | IntersectRects (const RectF &a, const RectF &b) |
| RectF | UnionRects (const RectF &a, const RectF &b) |
| RectF | SubtractRects (const RectF &a, const RectF &b) |
| RectF | BoundingRect (const PointF &p1, const PointF &p2) |
| bool | operator== (const RectF &lhs, const RectF &rhs) |
| bool | operator!= (const RectF &lhs, const RectF &rhs) |
| RectF | operator+ (const RectF &lhs, const Vector2dF &rhs) |
| RectF | operator- (const RectF &lhs, const Vector2dF &rhs) |
| RectF | operator+ (const Vector2dF &lhs, const RectF &rhs) |
| RectF | ScaleRect (const RectF &r, float x_scale, float y_scale) |
| RectF | ScaleRect (const RectF &r, float scale) |
| void | PrintTo (const RectF &rect, ::std::ostream *os) |
| template<typename T , size_t N> | |
| constexpr size_t | size (const T(&array)[N]) noexcept |
| TEST (RectTest, Contains) | |
| TEST (RectTest, Intersects) | |
| TEST (RectTest, Intersect) | |
| TEST (RectTest, Union) | |
| TEST (RectTest, Equals) | |
| TEST (RectTest, AdjustToFit) | |
| TEST (RectTest, Subtract) | |
| TEST (RectTest, IsEmpty) | |
| TEST (RectTest, SplitVertically) | |
| TEST (RectTest, CenterPoint) | |
| TEST (RectTest, CenterPointF) | |
| TEST (RectTest, SharesEdgeWith) | |
| TEST (RectTest, ScaleRect) | |
| TEST (RectTest, ToEnclosedRect) | |
| TEST (RectTest, ToEnclosingRect) | |
| TEST (RectTest, ToEnclosingRectIgnoringError) | |
| TEST (RectTest, ToNearestRect) | |
| TEST (RectTest, ToFlooredRect) | |
| TEST (RectTest, ScaleToEnclosedRect) | |
| TEST (RectTest, ScaleToEnclosingRect) | |
| TEST (RectTest, ToRectF) | |
| TEST (RectTest, BoundingRect) | |
| TEST (RectTest, IsExpressibleAsRect) | |
| TEST (RectTest, Offset) | |
| TEST (RectTest, Corners) | |
| TEST (RectTest, Centers) | |
| TEST (RectTest, Transpose) | |
| TEST (RectTest, ManhattanDistanceToPoint) | |
| TEST (RectTest, ManhattanInternalDistance) | |
| TEST (RectTest, IntegerOverflow) | |
| TEST (RectTest, ScaleToEnclosingRectSafe) | |
| Size | ScaleToCeiledSize (const Size &size, float x_scale, float y_scale) |
| Size | ScaleToCeiledSize (const Size &size, float scale) |
| Size | ScaleToFlooredSize (const Size &size, float x_scale, float y_scale) |
| Size | ScaleToFlooredSize (const Size &size, float scale) |
| Size | ScaleToRoundedSize (const Size &size, float x_scale, float y_scale) |
| Size | ScaleToRoundedSize (const Size &size, float scale) |
| bool | operator== (const Size &lhs, const Size &rhs) |
| bool | operator!= (const Size &lhs, const Size &rhs) |
| Size | operator+ (Size lhs, const Size &rhs) |
| Size | operator- (Size lhs, const Size &rhs) |
| void | PrintTo (const Size &size, ::std::ostream *os) |
| Size | ToFlooredSize (const SizeF &size) |
| Size | ToCeiledSize (const SizeF &size) |
| Size | ToRoundedSize (const SizeF &size) |
| SizeF | ScaleSize (const SizeF &s, float x_scale, float y_scale) |
| bool | operator== (const SizeF &lhs, const SizeF &rhs) |
| bool | operator!= (const SizeF &lhs, const SizeF &rhs) |
| SizeF | ScaleSize (const SizeF &p, float scale) |
| void | PrintTo (const SizeF &size, ::std::ostream *os) |
| TEST (SizeTest, ToSizeF) | |
| TEST (SizeTest, ToFlooredSize) | |
| TEST (SizeTest, ToCeiledSize) | |
| TEST (SizeTest, ToRoundedSize) | |
| TEST (SizeTest, ClampSize) | |
| TEST (SizeTest, ClampSizeF) | |
| TEST (SizeTest, Enlarge) | |
| TEST (SizeTest, IntegerOverflow) | |
| TEST (SizeTest, TrivialDimensionTests) | |
| TEST (SizeTest, ClampsToZero) | |
| TEST (SizeTest, ConsistentClamping) | |
| TEST (SizeTest, StaysSmall) | |
| TEST (SizeTest, OperatorAddSub) | |
| TEST (SizeTest, OperatorAddOverflow) | |
| TEST (SizeTest, OperatorSubClampAtZero) | |
| TEST (SizeTest, OperatorCompare) | |
| constexpr Vector2d | operator- (const Vector2d &v) |
| Vector2d | operator+ (const Vector2d &lhs, const Vector2d &rhs) |
| Vector2d | operator- (const Vector2d &lhs, const Vector2d &rhs) |
| void | PrintTo (const Vector2d &vector, ::std::ostream *os) |
| Vector2d | ToFlooredVector2d (const Vector2dF &vector2d) |
| Vector2d | ToCeiledVector2d (const Vector2dF &vector2d) |
| Vector2d | ToRoundedVector2d (const Vector2dF &vector2d) |
| double | CrossProduct (const Vector2dF &lhs, const Vector2dF &rhs) |
| double | DotProduct (const Vector2dF &lhs, const Vector2dF &rhs) |
| Vector2dF | ScaleVector2d (const Vector2dF &v, float x_scale, float y_scale) |
| constexpr bool | operator== (const Vector2dF &lhs, const Vector2dF &rhs) |
| constexpr bool | operator!= (const Vector2dF &lhs, const Vector2dF &rhs) |
| constexpr Vector2dF | operator- (const Vector2dF &v) |
| Vector2dF | operator+ (const Vector2dF &lhs, const Vector2dF &rhs) |
| Vector2dF | operator- (const Vector2dF &lhs, const Vector2dF &rhs) |
| Vector2dF | ScaleVector2d (const Vector2dF &v, float scale) |
| void | PrintTo (const Vector2dF &vector, ::std::ostream *os) |
| TEST (Vector2dTest, ConversionToFloat) | |
| TEST (Vector2dTest, IsZero) | |
| TEST (Vector2dTest, Add) | |
| TEST (Vector2dTest, Negative) | |
| TEST (Vector2dTest, Scale) | |
| TEST (Vector2dTest, Length) | |
| TEST (Vector2dTest, ClampVector2d) | |
| TEST (Vector2dTest, ClampVector2dF) | |
| TEST (Vector2dTest, IntegerOverflow) | |
| GFX_EXPORT NSRect | ScreenRectToNSRect (const Rect &rect) |
| GFX_EXPORT Rect | ScreenRectFromNSRect (const NSRect &point) |
| GFX_EXPORT NSPoint | ScreenPointToNSPoint (const Point &point) |
| GFX_EXPORT Point | ScreenPointFromNSPoint (const NSPoint &point) |
| std::ostream & | operator<< (std::ostream &os, const Range &range) |
| ::testing::AssertionResult | AssertPointFloatEqual (const char *lhs_expr, const char *rhs_expr, const PointF &lhs, const PointF &rhs) |
| ::testing::AssertionResult | AssertRectFloatEqual (const char *lhs_expr, const char *rhs_expr, const RectF &lhs, const RectF &rhs) |
| ::testing::AssertionResult | AssertSizeFFloatEqual (const char *lhs_expr, const char *rhs_expr, const SizeF &lhs, const SizeF &rhs) |
| void | PrintTo (const Transform &transform, ::std::ostream *os) |
| ::testing::AssertionResult | AssertAxisTransform2dFloatEqual (const char *lhs_expr, const char *rhs_expr, const AxisTransform2d &lhs, const AxisTransform2d &rhs) |
| ::testing::AssertionResult | AssertBoxFloatEqual (const char *lhs_expr, const char *rhs_expr, const BoxF &lhs, const BoxF &rhs) |
Variables | |
| const gfx::NativeCursor | kNullCursor = static_cast<gfx::NativeCursor>(nullptr) |
Definition at line 225 of file native_widget_types.h.
| typedef intptr_t gfx::NativeViewId |
Definition at line 241 of file native_widget_types.h.
| typedef struct _UnimplementedNativeViewAccessible gfx::UnimplementedNativeViewAccessible |
Definition at line 224 of file native_widget_types.h.
|
static |
| void gfx::AdjustAlongAxis | ( | int | dst_origin, |
| int | dst_size, | ||
| int * | origin, | ||
| int * | size | ||
| ) |
Definition at line 49 of file rect.cc.
References AdjustAlongAxis().
Referenced by AdjustAlongAxis(), gfx::Rect::AdjustToFit(), and gfx::RectF::AdjustToFit().
| ::testing::AssertionResult gfx::AssertAxisTransform2dFloatEqual | ( | const char * | lhs_expr, |
| const char * | rhs_expr, | ||
| const AxisTransform2d & | lhs, | ||
| const AxisTransform2d & | rhs | ||
| ) |
| ::testing::AssertionResult gfx::AssertBoxFloatEqual | ( | const char * | lhs_expr, |
| const char * | rhs_expr, | ||
| const BoxF & | lhs, | ||
| const BoxF & | rhs | ||
| ) |
| testing::AssertionResult gfx::AssertPointFloatEqual | ( | const char * | lhs_expr, |
| const char * | rhs_expr, | ||
| const PointF & | lhs, | ||
| const PointF & | rhs | ||
| ) |
Definition at line 33 of file gfx_util.cc.
References gfx::PointF::ToString(), gfx::PointF::x(), and gfx::PointF::y().
| testing::AssertionResult gfx::AssertRectFloatEqual | ( | const char * | lhs_expr, |
| const char * | rhs_expr, | ||
| const RectF & | lhs, | ||
| const RectF & | rhs | ||
| ) |
Definition at line 46 of file gfx_util.cc.
References gfx::RectF::height(), gfx::RectF::ToString(), gfx::RectF::width(), gfx::RectF::x(), and gfx::RectF::y().
| testing::AssertionResult gfx::AssertSizeFFloatEqual | ( | const char * | lhs_expr, |
| const char * | rhs_expr, | ||
| const SizeF & | lhs, | ||
| const SizeF & | rhs | ||
| ) |
Definition at line 61 of file gfx_util.cc.
References gfx::SizeF::height(), gfx::SizeF::ToString(), and gfx::SizeF::width().
| GFX_EXPORT Rect gfx::BoundingRect | ( | const Point & | p1, |
| const Point & | p2 | ||
| ) |
Definition at line 336 of file rect.cc.
References gfx::Rect::SetByBounds(), gfx::Point::x(), and gfx::Point::y().
Referenced by BoundingRect(), and TEST().
| GFX_EXPORT RectF gfx::BoundingRect | ( | const PointF & | p1, |
| const PointF & | p2 | ||
| ) |
Definition at line 254 of file rect_f.cc.
References BoundingRect(), gfx::PointF::x(), and gfx::PointF::y().
| GFX_EXPORT double gfx::CrossProduct | ( | const Vector2dF & | lhs, |
| const Vector2dF & | rhs | ||
| ) |
Definition at line 44 of file vector2d_f.cc.
References gfx::Vector2dF::x(), and gfx::Vector2dF::y().
| GFX_EXPORT double gfx::DotProduct | ( | const Vector2dF & | lhs, |
| const Vector2dF & | rhs | ||
| ) |
Definition at line 49 of file vector2d_f.cc.
References gfx::Vector2dF::x(), and gfx::Vector2dF::y().
| GFX_EXPORT Rect gfx::IntersectRects | ( | const Rect & | a, |
| const Rect & | b | ||
| ) |
Definition at line 318 of file rect.cc.
References gfx::Rect::Intersect().
Referenced by IntersectRects(), and TEST().
| GFX_EXPORT RectF gfx::IntersectRects | ( | const RectF & | a, |
| const RectF & | b | ||
| ) |
Definition at line 236 of file rect_f.cc.
References gfx::RectF::Intersect(), and IntersectRects().
| GFX_EXPORT bool gfx::IsNearestRectWithinDistance | ( | const gfx::RectF & | rect, |
| float | distance | ||
| ) |
Definition at line 94 of file rect_conversions.cc.
References gfx::RectF::bottom(), base::ClampRound(), gfx::RectF::right(), gfx::RectF::x(), and gfx::RectF::y().
Definition at line 75 of file vector2d_f.h.
| GFX_EXPORT Rect gfx::operator+ | ( | const Rect & | lhs, |
| const Vector2d & | rhs | ||
| ) |
Definition at line 203 of file rect_f.h.
References gfx::RectF::height(), gfx::RectF::width(), gfx::RectF::x(), gfx::Vector2dF::x(), gfx::RectF::y(), and gfx::Vector2dF::y().
Definition at line 79 of file vector2d.h.
References gfx::Vector2d::Add().
Definition at line 83 of file vector2d_f.h.
References gfx::Vector2dF::Add().
Definition at line 91 of file insets_f.h.
Definition at line 116 of file point.h.
References gfx::Point::x(), and gfx::Point::y().
Definition at line 103 of file point_f.h.
References gfx::PointF::x(), and gfx::PointF::y().
| GFX_EXPORT Rect gfx::operator- | ( | const Rect & | lhs, |
| const Vector2d & | rhs | ||
| ) |
Definition at line 207 of file rect_f.h.
References gfx::RectF::height(), gfx::RectF::width(), gfx::RectF::x(), gfx::Vector2dF::x(), gfx::RectF::y(), and gfx::Vector2dF::y().
Definition at line 85 of file vector2d.h.
References gfx::Vector2d::Add().
Definition at line 75 of file vector2d.h.
References gfx::Vector2d::x(), and gfx::Vector2d::y().
Definition at line 89 of file vector2d_f.h.
References gfx::Vector2dF::Add().
Definition at line 79 of file vector2d_f.h.
References gfx::Vector2dF::x(), and gfx::Vector2dF::y().
Definition at line 96 of file insets_f.h.
| GFX_RANGE_EXPORT std::ostream & gfx::operator<< | ( | std::ostream & | os, |
| const Range & | range | ||
| ) |
Definition at line 96 of file point.h.
References gfx::Point::x(), and gfx::Point::y().
Definition at line 83 of file point_f.h.
References gfx::PointF::x(), and gfx::PointF::y().
Definition at line 239 of file rect.h.
References gfx::Rect::origin(), and gfx::Rect::size().
Definition at line 195 of file rect_f.h.
References gfx::RectF::origin(), and gfx::RectF::size().
Definition at line 79 of file size.h.
References gfx::Size::height(), and gfx::Size::width().
Definition at line 65 of file size_f.h.
References gfx::SizeF::height(), and gfx::SizeF::width().
Definition at line 71 of file vector2d_f.h.
References gfx::Vector2dF::x(), and gfx::Vector2dF::y().
Definition at line 120 of file point.h.
References gfx::Vector2d::x(), and gfx::Vector2d::y().
Definition at line 107 of file point_f.h.
References gfx::Vector2dF::x(), and gfx::Vector2dF::y().
| void gfx::PrintTo | ( | const Point & | point, |
| ::std::ostream * | os | ||
| ) |
Definition at line 74 of file gfx_util.cc.
References gfx::Point::ToString().
| void gfx::PrintTo | ( | const PointF & | point, |
| ::std::ostream * | os | ||
| ) |
Definition at line 78 of file gfx_util.cc.
References gfx::PointF::ToString().
| void gfx::PrintTo | ( | const Rect & | rect, |
| ::std::ostream * | os | ||
| ) |
Definition at line 82 of file gfx_util.cc.
References gfx::Rect::ToString().
| void gfx::PrintTo | ( | const RectF & | rect, |
| ::std::ostream * | os | ||
| ) |
Definition at line 86 of file gfx_util.cc.
References gfx::RectF::ToString().
| void gfx::PrintTo | ( | const Size & | size, |
| ::std::ostream * | os | ||
| ) |
| void gfx::PrintTo | ( | const SizeF & | size, |
| ::std::ostream * | os | ||
| ) |
| void gfx::PrintTo | ( | const Transform & | transform, |
| ::std::ostream * | os | ||
| ) |
Definition at line 98 of file gfx_util.cc.
References transform.
| void gfx::PrintTo | ( | const Vector2d & | vector, |
| ::std::ostream * | os | ||
| ) |
Definition at line 102 of file gfx_util.cc.
References gfx::Vector2d::ToString().
| void gfx::PrintTo | ( | const Vector2dF & | vector, |
| ::std::ostream * | os | ||
| ) |
Definition at line 106 of file gfx_util.cc.
References gfx::Vector2dF::ToString().
|
static |
Definition at line 63 of file rect.cc.
Referenced by gfx::Rect::SetByBounds().
Definition at line 113 of file point_f.h.
References ScalePoint().
| GFX_EXPORT PointF gfx::ScalePoint | ( | const PointF & | p, |
| float | x_scale, | ||
| float | y_scale | ||
| ) |
Definition at line 25 of file point_f.cc.
References gfx::PointF::Scale().
Referenced by gfx::RectF::Scale(), ScalePoint(), ScaleToCeiledPoint(), ScaleToCeiledPoint(), ScaleToFlooredPoint(), ScaleToFlooredPoint(), ScaleToRoundedPoint(), ScaleToRoundedPoint(), and TEST().
Definition at line 219 of file rect_f.h.
References gfx::RectF::height(), gfx::RectF::width(), gfx::RectF::x(), and gfx::RectF::y().
Referenced by ScaleRect(), and TEST().
| GFX_EXPORT SizeF gfx::ScaleSize | ( | const SizeF & | s, |
| float | x_scale, | ||
| float | y_scale | ||
| ) |
Definition at line 33 of file size_f.cc.
References gfx::SizeF::Scale().
Referenced by gfx::RectF::Scale(), ScaleSize(), ScaleToCeiledSize(), ScaleToCeiledSize(), ScaleToFlooredSize(), ScaleToFlooredSize(), ScaleToRoundedSize(), and ScaleToRoundedSize().
| GFX_EXPORT Point gfx::ScaleToCeiledPoint | ( | const Point & | point, |
| float | scale | ||
| ) |
Definition at line 73 of file point.cc.
References ScalePoint(), ScaleToCeiledPoint(), and ToCeiledPoint().
| GFX_EXPORT Point gfx::ScaleToCeiledPoint | ( | const Point & | point, |
| float | x_scale, | ||
| float | y_scale | ||
| ) |
Definition at line 67 of file point.cc.
References ScalePoint(), ScaleToCeiledPoint(), and ToCeiledPoint().
Referenced by ScaleToCeiledPoint(), and ScaleToCeiledPoint().
| GFX_EXPORT Size gfx::ScaleToCeiledSize | ( | const Size & | size, |
| float | scale | ||
| ) |
Definition at line 90 of file size.cc.
References ScaleSize(), ScaleToCeiledSize(), and ToCeiledSize().
| GFX_EXPORT Size gfx::ScaleToCeiledSize | ( | const Size & | size, |
| float | x_scale, | ||
| float | y_scale | ||
| ) |
Definition at line 84 of file size.cc.
References ScaleSize(), ScaleToCeiledSize(), and ToCeiledSize().
Referenced by ScaleToCeiledSize(), and ScaleToCeiledSize().
Definition at line 323 of file rect.h.
References ScaleToEnclosedRect().
Definition at line 309 of file rect.h.
References BASE_DCHECK, gfx::Rect::bottom(), gfx::Rect::height(), gfx::Rect::right(), gfx::Rect::width(), x, gfx::Rect::x(), y, and gfx::Rect::y().
Referenced by ScaleToEnclosedRect(), and TEST().
Definition at line 287 of file rect.h.
References ScaleToEnclosingRect().
Definition at line 269 of file rect.h.
References BASE_DCHECK, gfx::Rect::bottom(), gfx::Rect::height(), gfx::Rect::right(), gfx::Rect::width(), x, gfx::Rect::x(), y, and gfx::Rect::y().
Referenced by ScaleToEnclosingRect(), and TEST().
Definition at line 305 of file rect.h.
References ScaleToEnclosingRectSafe().
Definition at line 295 of file rect.h.
References base::ClampCeil(), base::ClampFloor(), gfx::Rect::height(), gfx::Rect::width(), x, gfx::Rect::x(), y, and gfx::Rect::y().
Referenced by ScaleToEnclosingRectSafe(), TEST(), and TEST().
| GFX_EXPORT Point gfx::ScaleToFlooredPoint | ( | const Point & | point, |
| float | scale | ||
| ) |
Definition at line 85 of file point.cc.
References ScalePoint(), ScaleToFlooredPoint(), and ToFlooredPoint().
| GFX_EXPORT Point gfx::ScaleToFlooredPoint | ( | const Point & | point, |
| float | x_scale, | ||
| float | y_scale | ||
| ) |
Definition at line 79 of file point.cc.
References ScalePoint(), ScaleToFlooredPoint(), and ToFlooredPoint().
Referenced by ScaleToFlooredPoint(), and ScaleToFlooredPoint().
| GFX_EXPORT Size gfx::ScaleToFlooredSize | ( | const Size & | size, |
| float | scale | ||
| ) |
Definition at line 102 of file size.cc.
References ScaleSize(), ScaleToFlooredSize(), and ToFlooredSize().
| GFX_EXPORT Size gfx::ScaleToFlooredSize | ( | const Size & | size, |
| float | x_scale, | ||
| float | y_scale | ||
| ) |
Definition at line 96 of file size.cc.
References ScaleSize(), ScaleToFlooredSize(), and ToFlooredSize().
Referenced by ScaleToFlooredSize(), and ScaleToFlooredSize().
| GFX_EXPORT Point gfx::ScaleToRoundedPoint | ( | const Point & | point, |
| float | scale | ||
| ) |
Definition at line 97 of file point.cc.
References ScalePoint(), ScaleToRoundedPoint(), and ToRoundedPoint().
| GFX_EXPORT Point gfx::ScaleToRoundedPoint | ( | const Point & | point, |
| float | x_scale, | ||
| float | y_scale | ||
| ) |
Definition at line 91 of file point.cc.
References ScalePoint(), ScaleToRoundedPoint(), and ToRoundedPoint().
Referenced by ScaleToRoundedPoint(), and ScaleToRoundedPoint().
Definition at line 350 of file rect.h.
References ScaleToRoundedRect().
Definition at line 333 of file rect.h.
References BASE_DCHECK, gfx::Rect::bottom(), gfx::Rect::height(), gfx::Rect::right(), gfx::Rect::width(), x, gfx::Rect::x(), y, and gfx::Rect::y().
Referenced by ScaleToRoundedRect().
| GFX_EXPORT Size gfx::ScaleToRoundedSize | ( | const Size & | size, |
| float | scale | ||
| ) |
Definition at line 114 of file size.cc.
References ScaleSize(), ScaleToRoundedSize(), and ToRoundedSize().
| GFX_EXPORT Size gfx::ScaleToRoundedSize | ( | const Size & | size, |
| float | x_scale, | ||
| float | y_scale | ||
| ) |
Definition at line 108 of file size.cc.
References ScaleSize(), ScaleToRoundedSize(), and ToRoundedSize().
Referenced by ScaleToRoundedSize(), and ScaleToRoundedSize().
Definition at line 108 of file vector2d_f.h.
References ScaleVector2d().
| GFX_EXPORT Vector2dF gfx::ScaleVector2d | ( | const Vector2dF & | v, |
| float | x_scale, | ||
| float | y_scale | ||
| ) |
Definition at line 54 of file vector2d_f.cc.
References gfx::Vector2dF::Scale().
Referenced by ScaleVector2d(), and TEST().
| Point gfx::ScreenPointFromNSPoint | ( | const NSPoint & | point | ) |
Definition at line 38 of file coordinate_conversion.mm.
| NSPoint gfx::ScreenPointToNSPoint | ( | const Point & | point | ) |
Definition at line 34 of file coordinate_conversion.mm.
References gfx::Point::x(), and gfx::Point::y().
| Rect gfx::ScreenRectFromNSRect | ( | const NSRect & | point | ) |
Definition at line 29 of file coordinate_conversion.mm.
| NSRect gfx::ScreenRectToNSRect | ( | const Rect & | rect | ) |
Definition at line 24 of file coordinate_conversion.mm.
References gfx::Rect::height(), gfx::Rect::width(), gfx::Rect::x(), and gfx::Rect::y().
|
constexprnoexcept |
Definition at line 21 of file rect_unittest.cc.
Referenced by AdjustAlongAxis(), PrintTo(), PrintTo(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), ToCeiledSize(), ToFlooredSize(), and ToRoundedSize().
| GFX_EXPORT Rect gfx::SubtractRects | ( | const Rect & | a, |
| const Rect & | b | ||
| ) |
Definition at line 330 of file rect.cc.
References gfx::Rect::Subtract().
Referenced by SubtractRects().
| GFX_EXPORT RectF gfx::SubtractRects | ( | const RectF & | a, |
| const RectF & | b | ||
| ) |
Definition at line 248 of file rect_f.cc.
References gfx::RectF::Subtract(), and SubtractRects().
| gfx::TEST | ( | PointTest | , |
| ClampPoint | |||
| ) |
Definition at line 108 of file point_unittest.cc.
References gfx::Point::SetToMax(), gfx::Point::SetToMin(), and gfx::Point::ToString().
| gfx::TEST | ( | PointTest | , |
| ClampPointF | |||
| ) |
Definition at line 134 of file point_unittest.cc.
References gfx::PointF::SetToMax(), gfx::PointF::SetToMin(), and gfx::PointF::ToString().
| gfx::TEST | ( | PointTest | , |
| IntegerOverflow | |||
| ) |
Definition at line 176 of file point_unittest.cc.
References gfx::Point::Offset().
| gfx::TEST | ( | PointTest | , |
| IsOrigin | |||
| ) |
Definition at line 23 of file point_unittest.cc.
| gfx::TEST | ( | PointTest | , |
| Offset | |||
| ) |
Definition at line 160 of file point_unittest.cc.
References gfx::Point::Offset().
| gfx::TEST | ( | PointTest | , |
| OffsetFromPoint | |||
| ) |
Definition at line 61 of file point_unittest.cc.
| gfx::TEST | ( | PointTest | , |
| Scale | |||
| ) |
Definition at line 87 of file point_unittest.cc.
References gfx::PointF::Scale(), ScalePoint(), and gfx::PointF::ToString().
| gfx::TEST | ( | PointTest | , |
| ToPointF | |||
| ) |
Definition at line 14 of file point_unittest.cc.
References gfx::Point::x(), and gfx::Point::y().
| gfx::TEST | ( | PointTest | , |
| ToRoundedPoint | |||
| ) |
| gfx::TEST | ( | PointTest | , |
| VectorArithmetic | |||
| ) |
Definition at line 41 of file point_unittest.cc.
References i.
| gfx::TEST | ( | PointTest | , |
| VectorMath | |||
| ) |
| gfx::TEST | ( | RectTest | , |
| AdjustToFit | |||
| ) |
Definition at line 164 of file rect_unittest.cc.
References gfx::Rect::AdjustToFit(), gfx::Rect::height(), i, size(), gfx::Rect::width(), gfx::Rect::x(), and gfx::Rect::y().
| gfx::TEST | ( | RectTest | , |
| BoundingRect | |||
| ) |
Definition at line 760 of file rect_unittest.cc.
References BoundingRect(), EXPECT_RECTF_EQ, i, and size().
| gfx::TEST | ( | RectTest | , |
| CenterPoint | |||
| ) |
Definition at line 297 of file rect_unittest.cc.
References gfx::Rect::CenterPoint().
| gfx::TEST | ( | RectTest | , |
| CenterPointF | |||
| ) |
Definition at line 327 of file rect_unittest.cc.
References gfx::RectF::CenterPoint().
| gfx::TEST | ( | RectTest | , |
| Centers | |||
| ) |
Definition at line 883 of file rect_unittest.cc.
References gfx::RectF::bottom_center(), i, gfx::RectF::left_center(), gfx::RectF::right_center(), gfx::RectF::top_center(), gfx::PointF::x(), and gfx::PointF::y().
| gfx::TEST | ( | RectTest | , |
| Contains | |||
| ) |
Definition at line 25 of file rect_unittest.cc.
References gfx::Rect::Contains(), i, size(), and value.
| gfx::TEST | ( | RectTest | , |
| Corners | |||
| ) |
Definition at line 868 of file rect_unittest.cc.
References gfx::RectF::bottom_left(), gfx::RectF::bottom_right(), i, gfx::RectF::origin(), and gfx::RectF::top_right().
| gfx::TEST | ( | RectTest | , |
| Equals | |||
| ) |
Definition at line 155 of file rect_unittest.cc.
| gfx::TEST | ( | RectTest | , |
| IntegerOverflow | |||
| ) |
Definition at line 971 of file rect_unittest.cc.
References gfx::Rect::bottom(), gfx::Rect::height(), gfx::Rect::Inset(), gfx::Rect::Offset(), gfx::Rect::origin(), gfx::Rect::right(), gfx::Rect::set_height(), gfx::Rect::set_origin(), gfx::Rect::set_size(), gfx::Rect::set_width(), gfx::Rect::set_x(), gfx::Rect::set_y(), gfx::Rect::SetRect(), gfx::Rect::size(), size(), UnionRects(), gfx::Rect::width(), gfx::Rect::x(), and gfx::Rect::y().
| gfx::TEST | ( | RectTest | , |
| Intersect | |||
| ) |
Definition at line 82 of file rect_unittest.cc.
References gfx::Rect::height(), i, IntersectRects(), size(), gfx::Rect::width(), gfx::Rect::x(), and gfx::Rect::y().
| gfx::TEST | ( | RectTest | , |
| Intersects | |||
| ) |
Definition at line 53 of file rect_unittest.cc.
References i, gfx::Rect::Intersects(), and size().
| gfx::TEST | ( | RectTest | , |
| IsEmpty | |||
| ) |
Definition at line 262 of file rect_unittest.cc.
References size().
| gfx::TEST | ( | RectTest | , |
| IsExpressibleAsRect | |||
| ) |
Definition at line 817 of file rect_unittest.cc.
| gfx::TEST | ( | RectTest | , |
| ManhattanDistanceToPoint | |||
| ) |
Definition at line 908 of file rect_unittest.cc.
References i, and gfx::RectF::ManhattanDistanceToPoint().
| gfx::TEST | ( | RectTest | , |
| ManhattanInternalDistance | |||
| ) |
Definition at line 936 of file rect_unittest.cc.
References i, and gfx::RectF::ManhattanInternalDistance().
| gfx::TEST | ( | RectTest | , |
| Offset | |||
| ) |
| gfx::TEST | ( | RectTest | , |
| ScaleRect | |||
| ) |
Definition at line 399 of file rect_unittest.cc.
References EXPECT_FLOAT_AND_NAN_EQ, gfx::RectF::height(), i, ScaleRect(), size(), gfx::RectF::width(), gfx::RectF::x(), and gfx::RectF::y().
| gfx::TEST | ( | RectTest | , |
| ScaleToEnclosedRect | |||
| ) |
Definition at line 643 of file rect_unittest.cc.
References i, ScaleToEnclosedRect(), and size().
| gfx::TEST | ( | RectTest | , |
| ScaleToEnclosingRect | |||
| ) |
Definition at line 691 of file rect_unittest.cc.
References i, ScaleToEnclosingRect(), ScaleToEnclosingRectSafe(), and size().
| gfx::TEST | ( | RectTest | , |
| ScaleToEnclosingRectSafe | |||
| ) |
Definition at line 1132 of file rect_unittest.cc.
References ScaleToEnclosingRectSafe().
| gfx::TEST | ( | RectTest | , |
| SharesEdgeWith | |||
| ) |
Definition at line 357 of file rect_unittest.cc.
References gfx::Rect::SharesEdgeWith().
| gfx::TEST | ( | RectTest | , |
| SplitVertically | |||
| ) |
Definition at line 273 of file rect_unittest.cc.
References gfx::Rect::SplitVertically().
| gfx::TEST | ( | RectTest | , |
| Subtract | |||
| ) |
Definition at line 196 of file rect_unittest.cc.
References gfx::Rect::Subtract().
| gfx::TEST | ( | RectTest | , |
| ToEnclosedRect | |||
| ) |
Definition at line 434 of file rect_unittest.cc.
References gfx::Rect::bottom(), height, gfx::Rect::height(), i, gfx::Rect::right(), size(), ToEnclosedRect(), width, gfx::Rect::width(), x, gfx::Rect::x(), y, and gfx::Rect::y().
| gfx::TEST | ( | RectTest | , |
| ToEnclosingRect | |||
| ) |
Definition at line 493 of file rect_unittest.cc.
References gfx::Rect::bottom(), height, gfx::Rect::height(), i, gfx::Rect::right(), size(), ToEnclosingRect(), width, gfx::Rect::width(), x, gfx::Rect::x(), y, and gfx::Rect::y().
| gfx::TEST | ( | RectTest | , |
| ToEnclosingRectIgnoringError | |||
| ) |
Definition at line 556 of file rect_unittest.cc.
References error, height, gfx::Rect::height(), i, size(), ToEnclosingRectIgnoringError(), width, gfx::Rect::width(), x, gfx::Rect::x(), y, and gfx::Rect::y().
| gfx::TEST | ( | RectTest | , |
| ToFlooredRect | |||
| ) |
Definition at line 614 of file rect_unittest.cc.
References gfx::Rect::height(), i, size(), ToFlooredRectDeprecated(), gfx::Rect::width(), gfx::Rect::x(), and gfx::Rect::y().
| gfx::TEST | ( | RectTest | , |
| ToNearestRect | |||
| ) |
Definition at line 603 of file rect_unittest.cc.
References ToNearestRect().
| gfx::TEST | ( | RectTest | , |
| ToRectF | |||
| ) |
| gfx::TEST | ( | RectTest | , |
| Transpose | |||
| ) |
Definition at line 898 of file rect_unittest.cc.
References i, and gfx::RectF::Transpose().
| gfx::TEST | ( | RectTest | , |
| Union | |||
| ) |
Definition at line 120 of file rect_unittest.cc.
References gfx::Rect::height(), i, size(), UnionRects(), gfx::Rect::width(), gfx::Rect::x(), and gfx::Rect::y().
| gfx::TEST | ( | SizeTest | , |
| ClampSize | |||
| ) |
Definition at line 75 of file size_unittest.cc.
References gfx::Size::SetToMax(), gfx::Size::SetToMin(), and gfx::Size::ToString().
| gfx::TEST | ( | SizeTest | , |
| ClampSizeF | |||
| ) |
Definition at line 101 of file size_unittest.cc.
References gfx::SizeF::SetToMax(), gfx::SizeF::SetToMin(), and gfx::SizeF::ToString().
| gfx::TEST | ( | SizeTest | , |
| ClampsToZero | |||
| ) |
Definition at line 203 of file size_unittest.cc.
References gfx::SizeF::Enlarge(), gfx::SizeF::height(), gfx::SizeF::Scale(), gfx::SizeF::SetSize(), and gfx::SizeF::width().
| gfx::TEST | ( | SizeTest | , |
| ConsistentClamping | |||
| ) |
Definition at line 237 of file size_unittest.cc.
References gfx::SizeF::SetSize().
| gfx::TEST | ( | SizeTest | , |
| Enlarge | |||
| ) |
Definition at line 127 of file size_unittest.cc.
References gfx::Size::Enlarge().
| gfx::TEST | ( | SizeTest | , |
| IntegerOverflow | |||
| ) |
Definition at line 133 of file size_unittest.cc.
References gfx::Size::Enlarge().
| gfx::TEST | ( | SizeTest | , |
| OperatorAddOverflow | |||
| ) |
Definition at line 271 of file size_unittest.cc.
| gfx::TEST | ( | SizeTest | , |
| OperatorAddSub | |||
| ) |
Definition at line 253 of file size_unittest.cc.
| gfx::TEST | ( | SizeTest | , |
| OperatorCompare | |||
| ) |
Definition at line 290 of file size_unittest.cc.
| gfx::TEST | ( | SizeTest | , |
| OperatorSubClampAtZero | |||
| ) |
| gfx::TEST | ( | SizeTest | , |
| StaysSmall | |||
| ) |
Definition at line 249 of file size_unittest.cc.
| gfx::TEST | ( | SizeTest | , |
| ToCeiledSize | |||
| ) |
| gfx::TEST | ( | SizeTest | , |
| ToFlooredSize | |||
| ) |
| gfx::TEST | ( | SizeTest | , |
| ToRoundedSize | |||
| ) |
| gfx::TEST | ( | SizeTest | , |
| ToSizeF | |||
| ) |
Definition at line 22 of file size_unittest.cc.
References width, and gfx::Size::width().
| gfx::TEST | ( | SizeTest | , |
| TrivialDimensionTests | |||
| ) |
Definition at line 159 of file size_unittest.cc.
References gfx::SizeF::IsEmpty(), gfx::SizeF::set_height(), gfx::SizeF::set_width(), and gfx::SizeF::SetSize().
| gfx::TEST | ( | Vector2dTest | , |
| Add | |||
| ) |
Definition at line 38 of file vector2d_unittest.cc.
| gfx::TEST | ( | Vector2dTest | , |
| ClampVector2d | |||
| ) |
Definition at line 176 of file vector2d_unittest.cc.
References gfx::Vector2d::SetToMax(), gfx::Vector2d::SetToMin(), and gfx::Vector2d::ToString().
| gfx::TEST | ( | Vector2dTest | , |
| ClampVector2dF | |||
| ) |
Definition at line 202 of file vector2d_unittest.cc.
References gfx::Vector2dF::SetToMax(), gfx::Vector2dF::SetToMin(), and gfx::Vector2dF::ToString().
| gfx::TEST | ( | Vector2dTest | , |
| ConversionToFloat | |||
| ) |
| gfx::TEST | ( | Vector2dTest | , |
| IntegerOverflow | |||
| ) |
Definition at line 228 of file vector2d_unittest.cc.
| gfx::TEST | ( | Vector2dTest | , |
| IsZero | |||
| ) |
Definition at line 26 of file vector2d_unittest.cc.
References gfx::Vector2d::IsZero(), and gfx::Vector2dF::IsZero().
| gfx::TEST | ( | Vector2dTest | , |
| Length | |||
| ) |
Definition at line 135 of file vector2d_unittest.cc.
References i, length, gfx::Vector2d::Length(), gfx::Vector2dF::Length(), gfx::Vector2d::LengthSquared(), gfx::Vector2dF::LengthSquared(), and size().
| gfx::TEST | ( | Vector2dTest | , |
| Negative | |||
| ) |
Definition at line 68 of file vector2d_unittest.cc.
| gfx::TEST | ( | Vector2dTest | , |
| Scale | |||
| ) |
Definition at line 95 of file vector2d_unittest.cc.
References i, gfx::Vector2dF::Scale(), ScaleVector2d(), size(), gfx::Vector2dF::x(), and gfx::Vector2dF::y().
| GFX_EXPORT Point gfx::ToCeiledPoint | ( | const PointF & | point | ) |
Definition at line 15 of file point_conversions.cc.
References base::ClampCeil(), gfx::PointF::x(), and gfx::PointF::y().
Referenced by ScaleToCeiledPoint(), and ScaleToCeiledPoint().
| GFX_EXPORT Size gfx::ToCeiledSize | ( | const SizeF & | size | ) |
Definition at line 15 of file size_conversions.cc.
References base::ClampCeil(), and size().
Referenced by ScaleToCeiledSize(), ScaleToCeiledSize(), and TEST().
| GFX_EXPORT Vector2d gfx::ToCeiledVector2d | ( | const Vector2dF & | vector2d | ) |
Definition at line 16 of file vector2d_conversions.cc.
References base::ClampCeil(), gfx::Vector2dF::x(), and gfx::Vector2dF::y().
| GFX_EXPORT Rect gfx::ToEnclosedRect | ( | const RectF & | rect | ) |
Definition at line 51 of file rect_conversions.cc.
References gfx::RectF::bottom(), base::ClampCeil(), base::ClampFloor(), gfx::RectF::right(), gfx::Rect::SetByBounds(), gfx::RectF::x(), and gfx::RectF::y().
Referenced by TEST().
| GFX_EXPORT Rect gfx::ToEnclosedRectIgnoringError | ( | const RectF & | r, |
| float | error | ||
| ) |
Definition at line 59 of file rect_conversions.cc.
References gfx::RectF::bottom(), error, gfx::RectF::height(), gfx::RectF::right(), gfx::Rect::SetByBounds(), gfx::RectF::width(), gfx::RectF::x(), and gfx::RectF::y().
| GFX_EXPORT Rect gfx::ToEnclosingRect | ( | const RectF & | r | ) |
Definition at line 29 of file rect_conversions.cc.
References gfx::RectF::bottom(), base::ClampCeil(), base::ClampFloor(), gfx::RectF::height(), gfx::RectF::right(), gfx::Rect::SetByBounds(), gfx::RectF::width(), gfx::RectF::x(), and gfx::RectF::y().
Referenced by ui::TestAXNodeHelper::GetBoundsRect(), ui::TestAXNodeWrapper::GetBoundsRect(), flutter::FlutterPlatformNodeDelegate::GetBoundsRect(), flutter::FlutterPlatformNodeDelegateMac::GetBoundsRect(), ui::TestAXNodeWrapper::GetHypertextRangeBoundsRect(), ui::TestAXNodeHelper::GetInnerTextRangeBoundsRect(), ui::TestAXNodeWrapper::GetInnerTextRangeBoundsRect(), ui::AXPlatformNodeBase::ScrollToNode(), and TEST().
| GFX_EXPORT Rect gfx::ToEnclosingRectIgnoringError | ( | const RectF & | r, |
| float | error | ||
| ) |
Definition at line 40 of file rect_conversions.cc.
References gfx::RectF::bottom(), error, gfx::RectF::height(), gfx::RectF::right(), gfx::Rect::SetByBounds(), gfx::RectF::width(), gfx::RectF::x(), and gfx::RectF::y().
Referenced by TEST().
| GFX_EXPORT Point gfx::ToFlooredPoint | ( | const PointF & | point | ) |
Definition at line 11 of file point_conversions.cc.
References base::ClampFloor(), gfx::PointF::x(), and gfx::PointF::y().
Referenced by ScaleToFlooredPoint(), and ScaleToFlooredPoint().
| GFX_EXPORT Rect gfx::ToFlooredRectDeprecated | ( | const RectF & | rect | ) |
Definition at line 121 of file rect_conversions.cc.
References base::ClampFloor(), gfx::RectF::height(), gfx::RectF::width(), gfx::RectF::x(), and gfx::RectF::y().
Referenced by TEST().
| GFX_EXPORT Size gfx::ToFlooredSize | ( | const SizeF & | size | ) |
Definition at line 11 of file size_conversions.cc.
References base::ClampFloor(), and size().
Referenced by ScaleToFlooredSize(), ScaleToFlooredSize(), and TEST().
| GFX_EXPORT Vector2d gfx::ToFlooredVector2d | ( | const Vector2dF & | vector2d | ) |
Definition at line 11 of file vector2d_conversions.cc.
References base::ClampFloor(), gfx::Vector2dF::x(), and gfx::Vector2dF::y().
| GFX_EXPORT Rect gfx::ToNearestRect | ( | const RectF & | rect | ) |
Definition at line 70 of file rect_conversions.cc.
References BASE_DCHECK, gfx::RectF::bottom(), base::ClampRound(), gfx::RectF::right(), gfx::Rect::SetByBounds(), gfx::RectF::x(), and gfx::RectF::y().
Referenced by TEST().
| GFX_EXPORT Point gfx::ToRoundedPoint | ( | const PointF & | point | ) |
Definition at line 19 of file point_conversions.cc.
References base::ClampRound(), gfx::PointF::x(), and gfx::PointF::y().
Referenced by ScaleToRoundedPoint(), ScaleToRoundedPoint(), and TEST().
| GFX_EXPORT gfx::Rect gfx::ToRoundedRect | ( | const gfx::RectF & | rect | ) |
Definition at line 111 of file rect_conversions.cc.
References gfx::RectF::bottom(), base::ClampRound(), gfx::RectF::right(), gfx::Rect::SetByBounds(), gfx::RectF::x(), and gfx::RectF::y().
| GFX_EXPORT Size gfx::ToRoundedSize | ( | const SizeF & | size | ) |
Definition at line 19 of file size_conversions.cc.
References base::ClampRound(), and size().
Referenced by ScaleToRoundedSize(), ScaleToRoundedSize(), and TEST().
| GFX_EXPORT Vector2d gfx::ToRoundedVector2d | ( | const Vector2dF & | vector2d | ) |
Definition at line 20 of file vector2d_conversions.cc.
References base::ClampRound(), gfx::Vector2dF::x(), and gfx::Vector2dF::y().
| GFX_EXPORT Rect gfx::UnionRects | ( | const Rect & | a, |
| const Rect & | b | ||
| ) |
Definition at line 324 of file rect.cc.
References gfx::Rect::Union().
Referenced by TEST(), TEST(), and UnionRects().
| GFX_EXPORT RectF gfx::UnionRects | ( | const RectF & | a, |
| const RectF & | b | ||
| ) |
Definition at line 242 of file rect_f.cc.
References gfx::RectF::Union(), and UnionRects().
| const gfx::NativeCursor gfx::kNullCursor = static_cast<gfx::NativeCursor>(nullptr) |
Definition at line 233 of file native_widget_types.h.