Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
SkMask::AlphaIter< SkMask::kARGB32_Format > Struct Reference

#include <SkMask.h>

Public Member Functions

 AlphaIter (const uint32_t *ptr)
 
 AlphaIter (const AlphaIter &that)
 
AlphaIteroperator++ ()
 
AlphaIteroperator-- ()
 
AlphaIteroperator>>= (uint32_t rb)
 
uint8_t operator* () const
 
bool operator< (const AlphaIter &that) const
 

Public Attributes

const uint32_t * fPtr
 

Detailed Description

Definition at line 183 of file SkMask.h.

Constructor & Destructor Documentation

◆ AlphaIter() [1/2]

SkMask::AlphaIter< SkMask::kARGB32_Format >::AlphaIter ( const uint32_t *  ptr)
inline

Definition at line 184 of file SkMask.h.

184: fPtr(ptr) {}

◆ AlphaIter() [2/2]

SkMask::AlphaIter< SkMask::kARGB32_Format >::AlphaIter ( const AlphaIter< SkMask::kARGB32_Format > &  that)
inline

Definition at line 185 of file SkMask.h.

185: fPtr(that.fPtr) {}

Member Function Documentation

◆ operator*()

uint8_t SkMask::AlphaIter< SkMask::kARGB32_Format >::operator* ( ) const
inline

Definition at line 192 of file SkMask.h.

192{ return SkGetPackedA32(*fPtr); }
#define SkGetPackedA32(packed)
Definition: SkColorPriv.h:92

◆ operator++()

AlphaIter & SkMask::AlphaIter< SkMask::kARGB32_Format >::operator++ ( )
inline

Definition at line 186 of file SkMask.h.

186{ ++fPtr; return *this; }

◆ operator--()

AlphaIter & SkMask::AlphaIter< SkMask::kARGB32_Format >::operator-- ( )
inline

Definition at line 187 of file SkMask.h.

187{ --fPtr; return *this; }

◆ operator<()

bool SkMask::AlphaIter< SkMask::kARGB32_Format >::operator< ( const AlphaIter< SkMask::kARGB32_Format > &  that) const
inline

Definition at line 193 of file SkMask.h.

193{ return fPtr < that.fPtr; }

◆ operator>>=()

AlphaIter & SkMask::AlphaIter< SkMask::kARGB32_Format >::operator>>= ( uint32_t  rb)
inline

Definition at line 188 of file SkMask.h.

188 {
189 fPtr = SkTAddOffset<const uint32_t>(fPtr, rb);
190 return *this;
191 }

Member Data Documentation

◆ fPtr

const uint32_t* SkMask::AlphaIter< SkMask::kARGB32_Format >::fPtr

Definition at line 194 of file SkMask.h.


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