#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 | Min (const TSize &o) const |
| constexpr TSize | Max (const TSize &o) const |
| constexpr TSize | Abs () const |
| constexpr TSize | Floor () const |
| constexpr TSize | Ceil () const |
| constexpr TSize | Round () const |
| constexpr Type | Area () const |
| constexpr bool | IsPositive () const |
| constexpr bool | IsNegative () const |
| constexpr bool | IsZero () const |
| constexpr bool | IsEmpty () 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 97 of file size.h.
Referenced by impeller::DecompressedImage::ConvertToRGBA(), and impeller::TextureDescriptor::GetByteSizeOfBaseMipLevel().
|
inlineconstexpr |
Definition at line 91 of file size.h.
Referenced by impeller::ColorSource::MakeImage().
|
inlinestaticconstexpr |
|
inlineconstexpr |
|
inlinestaticconstexpr |
|
inlineconstexpr |
Definition at line 105 of file size.h.
Referenced by impeller::CanAppendToExistingAtlas(), impeller::RenderTarget::CreateOffscreen(), impeller::RenderTarget::CreateOffscreenMSAA(), impeller::Canvas::DrawImageRect(), impeller::ComputePass::EncodeCommands(), impeller::TRect< Scalar >::IsEmpty(), impeller::PairsFitInAtlasOfSize(), impeller::TextureContents::Render(), and impeller::Picture::ToImage().
|
inlineconstexpr |
Definition at line 101 of file size.h.
Referenced by impeller::TSize< Type >::IsEmpty().
|
inlineconstexpr |
Definition at line 99 of file size.h.
Referenced by impeller::TextureDescriptor::IsValid(), and impeller::TSize< Type >::MipCount().
|
inlineconstexpr |
Definition at line 103 of file size.h.
Referenced by impeller::TSize< Type >::IsEmpty(), and impeller::TRect< Scalar >::IsZero().
|
inlinestaticconstexpr |
|
inlineconstexpr |
Definition at line 78 of file size.h.
Referenced by impeller::Playground::OpenPlaygroundHere().
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 113 of file size.h.
Referenced by impeller::CreateTextureForDecompressedImage(), and impeller::testing::TEST().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
| Type impeller::TSize< T >::height = {} |
Definition at line 22 of file size.h.
Referenced by impeller::TSize< Type >::Abs(), impeller::PathBuilder::AddArc(), impeller::PathBuilder::AddOval(), impeller::PathBuilder::AddRect(), impeller::PathBuilder::AddRoundedRect(), impeller::AllocatedTextureSourceVK::AllocatedTextureSourceVK(), impeller::TSize< Type >::Area(), impeller::CanAppendToExistingAtlas(), impeller::TSize< Type >::Ceil(), impeller::Canvas::ClipRRect(), impeller::CreateAtlasBitmap(), impeller::Allocator::CreateTexture(), impeller::DrawGlyph(), impeller::BlitCopyTextureToTextureCommandGLES::Encode(), impeller::BlitCopyTextureToTextureCommandMTL::Encode(), impeller::BlitCopyTextureToTextureCommandVK::Encode(), impeller::BlitCopyTextureToBufferCommandGLES::Encode(), impeller::BlitCopyTextureToBufferCommandMTL::Encode(), impeller::BlitCopyTextureToBufferCommandVK::Encode(), impeller::TRect< Scalar >::Expand(), impeller::TSize< Type >::Floor(), impeller::TRect< Scalar >::GetBottom(), impeller::TRect< Scalar >::GetTop(), impeller::TSize< Type >::IsNegative(), impeller::TSize< Type >::IsPositive(), impeller::TSize< Type >::IsZero(), impeller::Matrix::MakeOrthographic(), impeller::Matrix::MakePerspective(), impeller::testing::MetalScreenshoter::MakeScreenshot(), impeller::TRect< Scalar >::MakeSize(), impeller::TSize< Type >::MakeWH(), impeller::TSize< Type >::Max(), impeller::TSize< Type >::Min(), impeller::TSize< Type >::MipCount(), impeller::TSize< Type >::operator!=(), impeller::AtlasBlenderKey::Hash::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(), RectNear(), impeller::TextContents::Render(), impeller::TSize< Type >::Round(), impeller::TRect< Scalar >::Scale(), impeller::PassBindingsCache::SetScissor(), impeller::PassBindingsCache::SetViewport(), impeller::TRect< Scalar >::Shift(), SizeNear(), impeller::testing::TEST(), impeller::testing::TEST_P(), and impeller::ToMTLTextureDescriptor().
| Type impeller::TSize< T >::width = {} |
Definition at line 21 of file size.h.
Referenced by impeller::TSize< Type >::Abs(), impeller::PathBuilder::AddArc(), impeller::PathBuilder::AddOval(), impeller::PathBuilder::AddRect(), impeller::PathBuilder::AddRoundedRect(), impeller::AllocatedTextureSourceVK::AllocatedTextureSourceVK(), impeller::TSize< Type >::Area(), impeller::CanAppendToExistingAtlas(), impeller::TSize< Type >::Ceil(), impeller::Canvas::ClipRRect(), impeller::CreateAtlasBitmap(), impeller::Allocator::CreateTexture(), impeller::DrawGlyph(), impeller::BlitCopyTextureToTextureCommandGLES::Encode(), impeller::BlitCopyTextureToTextureCommandMTL::Encode(), impeller::BlitCopyTextureToTextureCommandVK::Encode(), impeller::BlitCopyTextureToBufferCommandGLES::Encode(), impeller::BlitCopyTextureToBufferCommandMTL::Encode(), impeller::BlitCopyTextureToBufferCommandVK::Encode(), impeller::TRect< Scalar >::Expand(), impeller::TSize< Type >::Floor(), impeller::TextureDescriptor::GetBytesPerRow(), impeller::TRect< Scalar >::GetLeft(), impeller::TRect< Scalar >::GetRight(), impeller::TSize< Type >::IsNegative(), impeller::TSize< Type >::IsPositive(), impeller::TSize< Type >::IsZero(), impeller::Matrix::MakeOrthographic(), impeller::Matrix::MakePerspective(), impeller::testing::MetalScreenshoter::MakeScreenshot(), impeller::TRect< Scalar >::MakeSize(), impeller::TSize< Type >::MakeWH(), impeller::TSize< Type >::Max(), impeller::TSize< Type >::Min(), impeller::TSize< Type >::MipCount(), impeller::TSize< Type >::operator!=(), impeller::AtlasBlenderKey::Hash::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(), RectNear(), impeller::TextContents::Render(), impeller::TSize< Type >::Round(), impeller::TRect< Scalar >::Scale(), impeller::PassBindingsCache::SetScissor(), impeller::PassBindingsCache::SetViewport(), impeller::TRect< Scalar >::Shift(), SizeNear(), impeller::testing::TEST(), impeller::testing::TEST_P(), and impeller::ToMTLTextureDescriptor().