Skia
2D Graphics Library
SkTileMode.h
Go to the documentation of this file.
1 /*
2  * Copyright 2019 Google Inc.
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 #ifndef SkTileModes_DEFINED
9 #define SkTileModes_DEFINED
10 
11 #include "include/core/SkTypes.h"
12 
13 enum class SkTileMode {
18  kClamp,
19 
23  kRepeat,
24 
29  kMirror,
30 
34  kDecal,
35 
37 };
38 
39 static constexpr int kSkTileModeCount = static_cast<int>(SkTileMode::kLastTileMode) + 1;
40 
41 #endif
SkTileMode::kClamp
@ kClamp
Replicate the edge color if the shader draws outside of its original bounds.
SkTileMode::kRepeat
@ kRepeat
Repeat the shader's image horizontally and vertically.
SkTypes.h
SkTileMode
SkTileMode
Definition: SkTileMode.h:13
SkTileMode::kDecal
@ kDecal
Only draw within the original domain, return transparent-black everywhere else.
SkTileMode::kMirror
@ kMirror
Repeat the shader's image horizontally and vertically, alternating mirror images so that adjacent ima...
SkTileMode::kLastTileMode
@ kLastTileMode
kSkTileModeCount
static constexpr int kSkTileModeCount
Definition: SkTileMode.h:39