#include <size.h>
Public Types | |
using | Type = T |
Public Member Functions | |
constexpr | TSize () |
constexpr | TSize (Type width, Type height) |
constexpr | TSize (Type dimension) |
template<class U > | |
constexpr | TSize (const TSize< U > &other) |
constexpr TSize | operator* (Scalar scale) const |
template<class U , class = std::enable_if_t<std::is_arithmetic_v<U>>> | |
TSize | operator*= (U scale) |
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 | MinDimension () 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... | |
IsFinite () const | |
constexpr bool | IsSquare () const |
constexpr size_t | MipCount () const |
Return the mip count of the texture. More... | |
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 |
|
inlineexplicitconstexpr |
|
inlineconstexpr |
Definition at line 108 of file size.h.
References impeller::TSize< T >::height, and impeller::TSize< T >::width.
|
inlineconstexpr |
Definition at line 120 of file size.h.
References impeller::TSize< T >::height, and impeller::TSize< T >::width.
Referenced by impeller::DecompressedImage::ConvertToRGBA(), impeller::TextureDescriptor::GetByteSizeOfAllMipLevels(), impeller::TextureDescriptor::GetByteSizeOfBaseMipLevel(), and impeller::UpdateAtlasBitmap().
|
inlineconstexpr |
Definition at line 114 of file size.h.
References impeller::TSize< T >::height, and impeller::TSize< T >::width.
Referenced by impeller::AppendToExistingAtlas(), impeller::PairsFitInAtlasOfSize(), and impeller::Contents::RenderToSnapshot().
|
inlinestaticconstexpr |
Definition at line 131 of file size.h.
References impeller::TSize< T >::height, and impeller::TSize< T >::width.
|
inlineconstexpr |
Definition at line 110 of file size.h.
References impeller::TSize< T >::height, and impeller::TSize< T >::width.
|
inlinestaticconstexpr |
|
inlineconstexpr |
Returns true if either of the width or height are 0, negative, or NaN.
Definition at line 123 of file size.h.
References impeller::TSize< T >::height, and impeller::TSize< T >::width.
Referenced by impeller::AppendToExistingAtlas(), impeller::RoundingRadii::AreAllCornersEmpty(), impeller::BulkUpdateAtlasBitmap(), impeller::CornerContains(), impeller::TypographerContextSkia::CreateGlyphAtlas(), impeller::RenderTargetAllocator::CreateOffscreen(), impeller::RenderTargetCache::CreateOffscreen(), impeller::RenderTargetAllocator::CreateOffscreenMSAA(), impeller::RenderTargetCache::CreateOffscreenMSAA(), impeller::Canvas::DrawImageRect(), impeller::TextureDescriptor::IsValid(), impeller::RoundSuperellipseParam::MakeBoundsRadii(), impeller::TSize< T >::MipCount(), impeller::NormalizeEmptyToZero(), impeller::PairsFitInAtlasOfSize(), and impeller::UpdateAtlasBitmap().
|
inline |
Definition at line 126 of file size.h.
References impeller::TSize< T >::height, and impeller::TSize< T >::width.
Referenced by impeller::RoundRect::IsFinite(), impeller::RoundSuperellipse::IsFinite(), and impeller::RoundingRadii::IsFinite().
|
inlineconstexpr |
Definition at line 128 of file size.h.
References impeller::TSize< T >::height, and impeller::TSize< T >::width.
|
inlinestaticconstexpr |
Definition at line 43 of file size.h.
References impeller::TSize< T >::height, and impeller::TSize< T >::width.
Referenced by impeller::KHRSwapchainImplVK::GetCurrentUnderlyingSurfaceSize(), impeller::android::NativeWindow::GetSize(), impeller::interop::SwapchainVK::SwapchainVK(), and impeller::interop::ToImpellerType().
|
inlineconstexpr |
Definition at line 97 of file size.h.
References impeller::TSize< T >::height, and impeller::TSize< T >::width.
Referenced by impeller::android::HardwareBufferDescriptor::MakeForSwapchainImage(), and impeller::Playground::OpenPlaygroundHere().
|
inlineconstexpr |
Definition at line 106 of file size.h.
References impeller::TSize< T >::height, and impeller::TSize< T >::width.
Referenced by impeller::ArcStrokeGeometry::Dispatch(), impeller::Tessellator::FilledArc(), impeller::Tessellator::FilledRoundRect(), impeller::StrokePathSegmentReceiver::RecordArc(), and impeller::Tessellator::StrokedArc().
|
inlineconstexpr |
Definition at line 90 of file size.h.
References impeller::TSize< T >::height, and impeller::TSize< T >::width.
|
inlineconstexpr |
Definition at line 104 of file size.h.
References impeller::TSize< T >::height, and impeller::TSize< T >::width.
|
inlineconstexpr |
Return the mip count of the texture.
Definition at line 137 of file size.h.
References impeller::TSize< T >::height, impeller::TSize< T >::IsEmpty(), and impeller::TSize< T >::width.
Referenced by impeller::Allocator::CreateTexture(), impeller::CreateTextureForDecompressedImage(), impeller::DisplayListToTexture(), impeller::testing::TEST(), and impeller::testing::TEST_P().
|
inlineconstexpr |
Definition at line 76 of file size.h.
References impeller::TSize< T >::height, and impeller::TSize< T >::width.
|
inlineconstexpr |
Definition at line 52 of file size.h.
References impeller::TSize< T >::height, and impeller::TSize< T >::width.
|
inline |
Definition at line 57 of file size.h.
References impeller::TSize< T >::height, and impeller::TSize< T >::width.
|
inlineconstexpr |
Definition at line 80 of file size.h.
References impeller::TSize< T >::height, and impeller::TSize< T >::width.
|
inlineconstexpr |
Definition at line 88 of file size.h.
References impeller::TSize< T >::height, and impeller::TSize< T >::width.
|
inlineconstexpr |
Definition at line 84 of file size.h.
References impeller::TSize< T >::height, and impeller::TSize< T >::width.
|
inlineconstexpr |
Definition at line 68 of file size.h.
References impeller::TSize< T >::height, and impeller::TSize< T >::width.
|
inlineconstexpr |
Definition at line 63 of file size.h.
References impeller::TSize< T >::height, and impeller::TSize< T >::width.
|
inlineconstexpr |
Definition at line 72 of file size.h.
References impeller::TSize< T >::height, and impeller::TSize< T >::width.
|
inlineconstexpr |
Definition at line 116 of file size.h.
References impeller::TSize< T >::height, and impeller::TSize< T >::width.
Type impeller::TSize< T >::height = {} |
Definition at line 29 of file size.h.
Referenced by impeller::TSize< T >::Abs(), impeller::BlitPass::AddCopy(), impeller::AllocatedTextureSourceVK::AllocatedTextureSourceVK(), impeller::AppendToExistingAtlas(), impeller::TSize< T >::Area(), impeller::RoundingRadii::AreAllCornersSame(), impeller::GaussianBlurFilterContents::CalculateUVs(), impeller::TSize< T >::Ceil(), impeller::ComputeNextAtlasSize(), impeller::CornerContains(), impeller::RoundRectGeometry::CoversArea(), impeller::FillRoundRectGeometry::CoversArea(), impeller::RoundSuperellipseGeometry::CoversArea(), impeller::Allocator::CreateTexture(), impeller::DisplayListToTexture(), impeller::EncodeCommandsInReactor(), impeller::TRect< T >::Expand(), impeller::Tessellator::FilledRoundRect(), impeller::TSize< T >::Floor(), impeller::TextureDescriptor::GetByteSizeOfAllMipLevels(), impeller::GetImageInfo(), impeller::RSTransform::GetQuad(), impeller::RenderTargetConfig::Hash(), impeller::TSize< T >::IsEmpty(), impeller::TSize< T >::IsFinite(), impeller::RoundRect::IsOval(), impeller::RoundSuperellipse::IsOval(), impeller::TSize< T >::IsSquare(), impeller::RoundSuperellipseParam::MakeBoundsRadii(), impeller::TRect< T >::MakeOriginSize(), impeller::Matrix::MakeOrthographic(), impeller::Matrix::MakePerspective(), impeller::TRect< T >::MakeSize(), impeller::TSize< T >::MakeWH(), impeller::TSize< T >::Max(), impeller::TSize< T >::MaxDimension(), impeller::TSize< T >::Min(), impeller::TSize< T >::MinDimension(), impeller::TSize< T >::MipCount(), impeller::AiksPlayground::OpenPlaygroundHere(), impeller::DlPlayground::OpenPlaygroundHere(), impeller::TSize< T >::operator!=(), impeller::Trig::operator*(), impeller::TPoint< T >::operator*(), impeller::TSize< T >::operator*(), impeller::TPoint< T >::operator*=(), impeller::TSize< T >::operator*=(), impeller::TSize< T >::operator+(), impeller::TPoint< T >::operator+(), impeller::TPoint< T >::operator+=(), impeller::TSize< T >::operator-(), impeller::TPoint< T >::operator-(), impeller::operator-(), impeller::TPoint< T >::operator-=(), impeller::TPoint< T >::operator/(), impeller::operator/(), impeller::TSize< T >::operator/(), impeller::TPoint< T >::operator/=(), std::operator<<(), impeller::TSize< T >::operator==(), impeller::PairsFitInAtlasOfSize(), impeller::TSize< T >::Round(), impeller::interop::DisplayListBuilder::Scale(), impeller::TRect< T >::Scale(), impeller::RoundingRadii::Scaled(), SizeNear(), impeller::SizeToPoint(), impeller::testing::TEST(), impeller::testing::TEST_P(), impeller::android::ToAHardwareBufferDesc(), impeller::ToMTLTextureDescriptor(), impeller::interop::ToSkiaVector(), and impeller::UpdateAtlasBitmap().
Type impeller::TSize< T >::width = {} |
Definition at line 28 of file size.h.
Referenced by impeller::TSize< T >::Abs(), impeller::BlitPass::AddCopy(), impeller::AllocatedTextureSourceVK::AllocatedTextureSourceVK(), impeller::AppendToExistingAtlas(), impeller::TSize< T >::Area(), impeller::RoundingRadii::AreAllCornersSame(), impeller::GaussianBlurFilterContents::CalculateUVs(), impeller::TSize< T >::Ceil(), impeller::ComputeNextAtlasSize(), impeller::CornerContains(), impeller::RoundRectGeometry::CoversArea(), impeller::FillRoundRectGeometry::CoversArea(), impeller::RoundSuperellipseGeometry::CoversArea(), impeller::Allocator::CreateTexture(), impeller::DisplayListToTexture(), impeller::TRect< T >::Expand(), impeller::Tessellator::FilledRoundRect(), impeller::TSize< T >::Floor(), impeller::TextureDescriptor::GetByteSizeOfAllMipLevels(), impeller::TextureDescriptor::GetBytesPerRow(), impeller::GetImageInfo(), impeller::RSTransform::GetQuad(), impeller::RenderTargetConfig::Hash(), impeller::TSize< T >::IsEmpty(), impeller::TSize< T >::IsFinite(), impeller::RoundRect::IsOval(), impeller::RoundSuperellipse::IsOval(), impeller::TSize< T >::IsSquare(), impeller::RoundSuperellipseParam::MakeBoundsRadii(), impeller::TRect< T >::MakeOriginSize(), impeller::Matrix::MakeOrthographic(), impeller::Matrix::MakePerspective(), impeller::TRect< T >::MakeSize(), impeller::TSize< T >::MakeWH(), impeller::TSize< T >::Max(), impeller::TSize< T >::MaxDimension(), impeller::TSize< T >::Min(), impeller::TSize< T >::MinDimension(), impeller::TSize< T >::MipCount(), impeller::AiksPlayground::OpenPlaygroundHere(), impeller::DlPlayground::OpenPlaygroundHere(), impeller::TSize< T >::operator!=(), impeller::Trig::operator*(), impeller::TPoint< T >::operator*(), impeller::TSize< T >::operator*(), impeller::TPoint< T >::operator*=(), impeller::TSize< T >::operator*=(), impeller::TSize< T >::operator+(), impeller::TPoint< T >::operator+(), impeller::TPoint< T >::operator+=(), impeller::TSize< T >::operator-(), impeller::TPoint< T >::operator-(), impeller::operator-(), impeller::TPoint< T >::operator-=(), impeller::TPoint< T >::operator/(), impeller::operator/(), impeller::TSize< T >::operator/(), impeller::TPoint< T >::operator/=(), std::operator<<(), impeller::TSize< T >::operator==(), impeller::PairsFitInAtlasOfSize(), impeller::TSize< T >::Round(), impeller::interop::DisplayListBuilder::Scale(), impeller::TRect< T >::Scale(), impeller::RoundingRadii::Scaled(), SizeNear(), impeller::SizeToPoint(), impeller::testing::TEST(), impeller::testing::TEST_P(), impeller::android::ToAHardwareBufferDesc(), impeller::ToMTLTextureDescriptor(), impeller::interop::ToSkiaVector(), and impeller::UpdateAtlasBitmap().