#include <size.h>
Public Types | |
| using | Type = T |
Public Member Functions | |
| constexpr | TSize () |
| constexpr | TSize (Type width, Type height) |
| template<class U > | |
| constexpr | TSize (const TSize< U > &other) |
| constexpr TSize | operator* (Scalar scale) const |
| constexpr TSize | operator/ (Scalar scale) const |
| constexpr TSize | operator/ (const TSize &s) const |
| constexpr bool | operator== (const TSize &s) const |
| constexpr bool | operator!= (const TSize &s) const |
| constexpr TSize | operator+ (const TSize &s) const |
| constexpr TSize | operator- (const TSize &s) const |
| constexpr TSize | operator- () const |
| constexpr TSize | Min (const TSize &o) const |
| constexpr TSize | Max (const TSize &o) const |
| constexpr Type | MaxDimension () const |
| constexpr TSize | Abs () const |
| constexpr TSize | Floor () const |
| constexpr TSize | Ceil () const |
| constexpr TSize | Round () const |
| constexpr Type | Area () const |
| constexpr bool | IsEmpty () const |
| Returns true if either of the width or height are 0, negative, or NaN. More... | |
| constexpr bool | IsSquare () const |
| constexpr size_t | MipCount () const |
Static Public Member Functions | |
| static constexpr TSize | MakeWH (Type width, Type height) |
| static constexpr TSize | Infinite () |
| template<class U > | |
| static constexpr TSize | Ceil (const TSize< U > &other) |
Public Attributes | |
| Type | width = {} |
| Type | height = {} |
| using impeller::TSize< T >::Type = T |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineexplicitconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 102 of file size.h.
Referenced by impeller::TRect< Scalar >::Area(), impeller::DecompressedImage::ConvertToRGBA(), and impeller::TextureDescriptor::GetByteSizeOfBaseMipLevel().
|
inlineconstexpr |
|
inlinestaticconstexpr |
|
inlineconstexpr |
|
inlinestaticconstexpr |
|
inlineconstexpr |
Returns true if either of the width or height are 0, negative, or NaN.
Definition at line 105 of file size.h.
Referenced by impeller::CanAppendToExistingAtlas(), impeller::Canvas::ClipRRect(), impeller::RenderTarget::CreateOffscreen(), impeller::RenderTarget::CreateOffscreenMSAA(), impeller::ComputePass::EncodeCommands(), impeller::TRect< Scalar >::IsEmpty(), impeller::TextureDescriptor::IsValid(), impeller::TSize< Type >::MipCount(), impeller::PairsFitInAtlasOfSize(), and impeller::Picture::ToImage().
|
inlineconstexpr |
Definition at line 107 of file size.h.
Referenced by impeller::TRect< Scalar >::IsSquare().
|
inlinestaticconstexpr |
|
inlineconstexpr |
Definition at line 81 of file size.h.
Referenced by impeller::Playground::OpenPlaygroundHere().
|
inlineconstexpr |
Definition at line 88 of file size.h.
Referenced by impeller::Tessellator::FilledEllipse(), and impeller::Tessellator::FilledRoundRect().
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 115 of file size.h.
Referenced by impeller::CreateTextureForDecompressedImage(), and impeller::testing::TEST().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
| Type impeller::TSize< T >::height = {} |
Definition at line 23 of file size.h.
Referenced by impeller::TSize< Type >::Abs(), impeller::PathBuilder::AddRoundedRect(), impeller::AllocatedTextureSourceVK::AllocatedTextureSourceVK(), impeller::TSize< Type >::Area(), impeller::GaussianBlurFilterContents::CalculateUVs(), impeller::CanAppendToExistingAtlas(), impeller::TSize< Type >::Ceil(), impeller::Canvas::ClipRRect(), impeller::RoundRectGeometry::CoversArea(), impeller::CreateAtlasBitmap(), impeller::Allocator::CreateTexture(), impeller::TRect< Scalar >::Expand(), impeller::Tessellator::FilledRoundRect(), impeller::TSize< Type >::Floor(), impeller::TRect< Scalar >::GetBottom(), impeller::TRect< Scalar >::GetCenter(), impeller::TRect< Scalar >::GetHeight(), impeller::TRect< Scalar >::GetNormalizingTransform(), impeller::TRect< Scalar >::GetTop(), impeller::TRect< Scalar >::GetXYWH(), impeller::TSize< Type >::IsEmpty(), impeller::TSize< Type >::IsSquare(), impeller::Matrix::MakeOrthographic(), impeller::Matrix::MakePerspective(), impeller::testing::MetalScreenshotter::MakeScreenshot(), impeller::TRect< Scalar >::MakeSize(), impeller::TSize< Type >::MakeWH(), impeller::TSize< Type >::Max(), impeller::TSize< Type >::MaxDimension(), impeller::TSize< Type >::Min(), impeller::TSize< Type >::MipCount(), impeller::TSize< Type >::operator!=(), impeller::Trig::operator*(), impeller::TSize< Type >::operator*(), impeller::TRect< Scalar >::operator*(), impeller::TPoint< Type >::operator*(), impeller::TPoint< Type >::operator*=(), impeller::TSize< Type >::operator+(), impeller::TRect< Scalar >::operator+(), impeller::TPoint< Type >::operator+(), impeller::TPoint< Type >::operator+=(), impeller::TSize< Type >::operator-(), impeller::TRect< Scalar >::operator-(), impeller::TPoint< Type >::operator-(), impeller::operator-(), impeller::TPoint< Type >::operator-=(), impeller::TSize< Type >::operator/(), impeller::TPoint< Type >::operator/(), impeller::operator/(), impeller::TPoint< Type >::operator/=(), std::operator<<(), impeller::TSize< Type >::operator==(), impeller::OptimumAtlasSizeForFontGlyphPairs(), impeller::PairsFitInAtlasOfSize(), impeller::TRect< Scalar >::Project(), impeller::TSize< Type >::Round(), impeller::TRect< Scalar >::Scale(), impeller::TRect< Scalar >::Shift(), SizeNear(), impeller::testing::TEST(), impeller::testing::TEST_P(), and impeller::ToMTLTextureDescriptor().
| Type impeller::TSize< T >::width = {} |
Definition at line 22 of file size.h.
Referenced by impeller::TSize< Type >::Abs(), impeller::PathBuilder::AddRoundedRect(), impeller::AllocatedTextureSourceVK::AllocatedTextureSourceVK(), impeller::TSize< Type >::Area(), impeller::GaussianBlurFilterContents::CalculateUVs(), impeller::CanAppendToExistingAtlas(), impeller::TSize< Type >::Ceil(), impeller::Canvas::ClipRRect(), impeller::RoundRectGeometry::CoversArea(), impeller::CreateAtlasBitmap(), impeller::Allocator::CreateTexture(), impeller::TRect< Scalar >::Expand(), impeller::Tessellator::FilledRoundRect(), impeller::TSize< Type >::Floor(), impeller::TextureDescriptor::GetBytesPerRow(), impeller::TRect< Scalar >::GetCenter(), impeller::TRect< Scalar >::GetLeft(), impeller::TRect< Scalar >::GetNormalizingTransform(), impeller::TRect< Scalar >::GetRight(), impeller::TRect< Scalar >::GetWidth(), impeller::TRect< Scalar >::GetXYWH(), impeller::TSize< Type >::IsEmpty(), impeller::TSize< Type >::IsSquare(), impeller::Matrix::MakeOrthographic(), impeller::Matrix::MakePerspective(), impeller::testing::MetalScreenshotter::MakeScreenshot(), impeller::TRect< Scalar >::MakeSize(), impeller::TSize< Type >::MakeWH(), impeller::TSize< Type >::Max(), impeller::TSize< Type >::MaxDimension(), impeller::TSize< Type >::Min(), impeller::TSize< Type >::MipCount(), impeller::TSize< Type >::operator!=(), impeller::Trig::operator*(), impeller::TSize< Type >::operator*(), impeller::TRect< Scalar >::operator*(), impeller::TPoint< Type >::operator*(), impeller::TPoint< Type >::operator*=(), impeller::TSize< Type >::operator+(), impeller::TRect< Scalar >::operator+(), impeller::TPoint< Type >::operator+(), impeller::TPoint< Type >::operator+=(), impeller::TSize< Type >::operator-(), impeller::TRect< Scalar >::operator-(), impeller::TPoint< Type >::operator-(), impeller::operator-(), impeller::TPoint< Type >::operator-=(), impeller::TSize< Type >::operator/(), impeller::TPoint< Type >::operator/(), impeller::operator/(), impeller::TPoint< Type >::operator/=(), std::operator<<(), impeller::TSize< Type >::operator==(), impeller::OptimumAtlasSizeForFontGlyphPairs(), impeller::PairsFitInAtlasOfSize(), impeller::TRect< Scalar >::Project(), impeller::SolidRRectBlurContents::Render(), impeller::TSize< Type >::Round(), impeller::TRect< Scalar >::Scale(), impeller::TRect< Scalar >::Shift(), SizeNear(), impeller::testing::TEST(), impeller::testing::TEST_P(), and impeller::ToMTLTextureDescriptor().