Skia
2D Graphics Library
SkISize Struct Reference

#include <SkSize.h>

Public Member Functions

void set (int32_t w, int32_t h)
 
bool isZero () const
 Returns true iff fWidth == 0 && fHeight == 0. More...
 
bool isEmpty () const
 Returns true if either width or height are <= 0. More...
 
void setEmpty ()
 Set the width and height to 0. More...
 
constexpr int32_t width () const
 
constexpr int32_t height () const
 
constexpr int64_t area () const
 
bool equals (int32_t w, int32_t h) const
 

Static Public Member Functions

static constexpr SkISize Make (int32_t w, int32_t h)
 
static constexpr SkISize MakeEmpty ()
 

Public Attributes

int32_t fWidth
 
int32_t fHeight
 

Member Function Documentation

◆ area()

constexpr int64_t SkISize::area ( ) const
inlineconstexpr

◆ equals()

bool SkISize::equals ( int32_t  w,
int32_t  h 
) const
inline

◆ height()

constexpr int32_t SkISize::height ( ) const
inlineconstexpr

◆ isEmpty()

bool SkISize::isEmpty ( ) const
inline

Returns true if either width or height are <= 0.

◆ isZero()

bool SkISize::isZero ( ) const
inline

Returns true iff fWidth == 0 && fHeight == 0.

◆ Make()

static constexpr SkISize SkISize::Make ( int32_t  w,
int32_t  h 
)
inlinestaticconstexpr

◆ MakeEmpty()

static constexpr SkISize SkISize::MakeEmpty ( )
inlinestaticconstexpr

◆ set()

void SkISize::set ( int32_t  w,
int32_t  h 
)
inline

◆ setEmpty()

void SkISize::setEmpty ( )
inline

Set the width and height to 0.

◆ width()

constexpr int32_t SkISize::width ( ) const
inlineconstexpr

Member Data Documentation

◆ fHeight

int32_t SkISize::fHeight

◆ fWidth

int32_t SkISize::fWidth

The documentation for this struct was generated from the following file: