Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include "core/fxcrt/fx_coordinates.h"
#include <limits>
#include <vector>
#include "core/fxcrt/fx_system.h"
#include "testing/gtest/include/gtest/gtest.h"
Go to the source code of this file.
Macros | |
#define | EXPECT_NEAR_FIVE_PLACES(a, b) |
Functions | |
TEST (CFX_FloatRect, FromFXRect) | |
TEST (CFX_FloatRect, GetBBox) | |
TEST (CFX_FloatRect, GetInnerRect) | |
TEST (CFX_FloatRect, GetOuterRect) | |
TEST (CFX_FloatRect, Normalize) | |
TEST (CFX_FloatRect, Scale) | |
TEST (CFX_FloatRect, ScaleEmpty) | |
TEST (CFX_FloatRect, ScaleFromCenterPoint) | |
TEST (CFX_FloatRect, ScaleFromCenterPointEmpty) | |
TEST (CFX_FloatRect, Print) | |
TEST (CFX_RectF, Print) | |
TEST (CFX_Matrix, ReverseIdentity) | |
TEST (CFX_Matrix, SetIdentity) | |
TEST (CFX_Matrix, GetInverse) | |
TEST (CFX_Matrix, GetInverseCR702041) | |
TEST (CFX_Matrix, GetInverseCR714187) | |
TEST (CFX_Matrix, ComposeTransformations) | |
TEST (CFX_Matrix, TransformRectForRectF) | |
TEST (CFX_Matrix, TransformRectForFloatRect) | |
Definition at line 458 of file fx_coordinates_unittest.cpp.
TEST | ( | CFX_FloatRect | , |
FromFXRect | ) |
Definition at line 23 of file fx_coordinates_unittest.cpp.
References CFX_FloatRect::CFX_FloatRect(), FX_RECT::FX_RECT(), CFX_FloatRect::bottom, CFX_FloatRect::left, CFX_FloatRect::right, and CFX_FloatRect::top.
TEST | ( | CFX_FloatRect | , |
GetBBox | ) |
Definition at line 32 of file fx_coordinates_unittest.cpp.
References CFX_FloatRect::bottom, CFX_FloatRect::GetBBox(), CFX_FloatRect::left, CFX_FloatRect::right, and CFX_FloatRect::top.
TEST | ( | CFX_FloatRect | , |
GetInnerRect | ) |
Definition at line 88 of file fx_coordinates_unittest.cpp.
References CFX_FloatRect::CFX_FloatRect(), FX_RECT::bottom, CFX_FloatRect::GetInnerRect(), FX_RECT::left, CFX_FloatRect::operator=(), FX_RECT::operator=(), FX_RECT::right, and FX_RECT::top.
TEST | ( | CFX_FloatRect | , |
GetOuterRect | ) |
Definition at line 142 of file fx_coordinates_unittest.cpp.
References CFX_FloatRect::CFX_FloatRect(), FX_RECT::bottom, CFX_FloatRect::GetOuterRect(), FX_RECT::left, CFX_FloatRect::operator=(), FX_RECT::operator=(), FX_RECT::right, and FX_RECT::top.
TEST | ( | CFX_FloatRect | , |
Normalize | ) |
Definition at line 194 of file fx_coordinates_unittest.cpp.
References CFX_FloatRect::CFX_FloatRect(), CFX_FloatRect::bottom, CFX_FloatRect::left, CFX_FloatRect::Normalize(), CFX_FloatRect::operator=(), CFX_FloatRect::right, CFX_FloatRect::Scale(), and CFX_FloatRect::top.
TEST | ( | CFX_FloatRect | , |
) |
Definition at line 323 of file fx_coordinates_unittest.cpp.
References CFX_FloatRect::CFX_FloatRect(), and CFX_FloatRect::operator=().
TEST | ( | CFX_FloatRect | , |
Scale | ) |
Definition at line 216 of file fx_coordinates_unittest.cpp.
References CFX_FloatRect::CFX_FloatRect(), CFX_FloatRect::bottom, CFX_FloatRect::left, CFX_FloatRect::right, CFX_FloatRect::Scale(), and CFX_FloatRect::top.
TEST | ( | CFX_FloatRect | , |
ScaleEmpty | ) |
Definition at line 245 of file fx_coordinates_unittest.cpp.
References CFX_FloatRect::bottom, CFX_FloatRect::left, CFX_FloatRect::right, CFX_FloatRect::Scale(), and CFX_FloatRect::top.
TEST | ( | CFX_FloatRect | , |
ScaleFromCenterPoint | ) |
Definition at line 269 of file fx_coordinates_unittest.cpp.
References CFX_FloatRect::CFX_FloatRect(), CFX_FloatRect::bottom, CFX_FloatRect::left, CFX_FloatRect::right, CFX_FloatRect::ScaleFromCenterPoint(), and CFX_FloatRect::top.
TEST | ( | CFX_FloatRect | , |
ScaleFromCenterPointEmpty | ) |
Definition at line 298 of file fx_coordinates_unittest.cpp.
References CFX_FloatRect::bottom, CFX_FloatRect::left, CFX_FloatRect::right, CFX_FloatRect::ScaleFromCenterPoint(), and CFX_FloatRect::top.
TEST | ( | CFX_Matrix | , |
ComposeTransformations | ) |
Definition at line 460 of file fx_coordinates_unittest.cpp.
References CFX_Matrix::CFX_Matrix(), CFX_Matrix::a, CFX_Matrix::b, CFX_Matrix::c, CFX_Matrix::Concat(), CFX_Matrix::d, CFX_Matrix::e, CFX_Matrix::f, CFX_Matrix::operator*(), CFX_Matrix::operator=(), CFX_Matrix::Rotate(), CFX_Matrix::Scale(), CFX_Matrix::Transform(), and CFX_Matrix::Translate().
TEST | ( | CFX_Matrix | , |
GetInverse | ) |
Definition at line 397 of file fx_coordinates_unittest.cpp.
References CFX_Matrix::CFX_Matrix(), CFX_Matrix::a, CFX_Matrix::b, CFX_Matrix::c, CFX_Matrix::d, CFX_Matrix::e, CFX_Matrix::f, and CFX_Matrix::GetInverse().
TEST | ( | CFX_Matrix | , |
GetInverseCR702041 | ) |
Definition at line 416 of file fx_coordinates_unittest.cpp.
References CFX_Matrix::CFX_Matrix(), CFX_Matrix::a, CFX_Matrix::b, CFX_Matrix::c, CFX_Matrix::d, CFX_Matrix::e, CFX_Matrix::f, and CFX_Matrix::GetInverse().
TEST | ( | CFX_Matrix | , |
GetInverseCR714187 | ) |
Definition at line 437 of file fx_coordinates_unittest.cpp.
References CFX_Matrix::CFX_Matrix(), CFX_Matrix::a, CFX_Matrix::b, CFX_Matrix::c, CFX_Matrix::d, CFX_Matrix::e, CFX_Matrix::f, and CFX_Matrix::GetInverse().
TEST | ( | CFX_Matrix | , |
ReverseIdentity | ) |
Definition at line 358 of file fx_coordinates_unittest.cpp.
References CFX_Matrix::CFX_Matrix(), CFX_Matrix::a, CFX_Matrix::b, CFX_Matrix::c, CFX_Matrix::d, CFX_Matrix::e, CFX_Matrix::f, and CFX_Matrix::GetInverse().
TEST | ( | CFX_Matrix | , |
SetIdentity | ) |
Definition at line 374 of file fx_coordinates_unittest.cpp.
References CFX_Matrix::CFX_Matrix(), CFX_Matrix::a, CFX_Matrix::b, CFX_Matrix::c, CFX_Matrix::d, CFX_Matrix::e, CFX_Matrix::f, CFX_Matrix::IsIdentity(), and CFX_Matrix::operator=().
TEST | ( | CFX_Matrix | , |
TransformRectForFloatRect | ) |
Definition at line 608 of file fx_coordinates_unittest.cpp.
References CFX_FloatRect::CFX_FloatRect(), CFX_FloatRect::Bottom(), CFX_FloatRect::Left(), CFX_FloatRect::operator=(), CFX_FloatRect::Right(), CFX_Matrix::Rotate(), CFX_Matrix::Scale(), CFX_FloatRect::Top(), and CFX_Matrix::TransformRect().
TEST | ( | CFX_Matrix | , |
TransformRectForRectF | ) |
Definition at line 587 of file fx_coordinates_unittest.cpp.
References CFX_RectF::CFX_RectF(), CFX_RectF::Height(), CFX_RectF::Left(), CFX_RectF::operator=(), CFX_Matrix::Rotate(), CFX_Matrix::Scale(), CFX_RectF::Top(), CFX_Matrix::TransformRect(), and CFX_RectF::Width().
Definition at line 340 of file fx_coordinates_unittest.cpp.
References CFX_RectF::CFX_RectF(), and CFX_RectF::operator=().