Skia
2D Graphics Library
SkTileMode.h File Reference
Include dependency graph for SkTileMode.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum class  SkTileMode {
  kClamp , kRepeat , kMirror , kDecal ,
  kLastTileMode = kDecal
}
 

Variables

static constexpr int kSkTileModeCount = static_cast<int>(SkTileMode::kLastTileMode) + 1
 

Enumeration Type Documentation

◆ SkTileMode

enum SkTileMode
strong
Enumerator
kClamp 

Replicate the edge color if the shader draws outside of its original bounds.

kRepeat 

Repeat the shader's image horizontally and vertically.

kMirror 

Repeat the shader's image horizontally and vertically, alternating mirror images so that adjacent images always seam.

kDecal 

Only draw within the original domain, return transparent-black everywhere else.

kLastTileMode 

Variable Documentation

◆ kSkTileModeCount

constexpr int kSkTileModeCount = static_cast<int>(SkTileMode::kLastTileMode) + 1
staticconstexpr