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
Definition: SkTileMode.h:13
@ kDecal
Only draw within the original domain, return transparent-black everywhere else.
@ kRepeat
Repeat the shader's image horizontally and vertically.
@ kClamp
Replicate the edge color if the shader draws outside of its original bounds.
@ kMirror
Repeat the shader's image horizontally and vertically, alternating mirror images so that adjacent ima...
static constexpr int kSkTileModeCount
Definition: SkTileMode.h:39