Flutter Engine
The Flutter Engine
display_list
dl_tile_mode.h
Go to the documentation of this file.
1
// Copyright 2013 The Flutter Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#ifndef FLUTTER_DISPLAY_LIST_DL_TILE_MODE_H_
6
#define FLUTTER_DISPLAY_LIST_DL_TILE_MODE_H_
7
8
namespace
flutter
{
9
10
// An enum to define how to repeat, fold, or omit colors outside of the
11
// typically defined range of the source of the colors (such as the
12
// bounds of an image or the defining geoetry of a gradient).
13
enum class
DlTileMode
{
14
// Replicate the edge color if the |DlColorSource| draws outside of the
15
// defined bounds.
16
kClamp
,
17
18
// Repeat the |DlColorSource|'s defined colors both horizontally and
19
// vertically (or both along and perpendicular to a gradient's geometry).
20
kRepeat
,
21
22
// Repeat the |DlColorSource|'s colors horizontally and vertically,
23
// alternating mirror images so that adjacent images always seam.
24
kMirror
,
25
26
// Only draw within the original domain, return transparent-black everywhere
27
// else.
28
kDecal
,
29
};
30
31
}
// namespace flutter
32
33
#endif
// FLUTTER_DISPLAY_LIST_DL_TILE_MODE_H_
flutter
Definition:
asset_manager.cc:10
flutter::DlTileMode
DlTileMode
Definition:
dl_tile_mode.h:13
flutter::DlTileMode::kDecal
@ kDecal
flutter::DlTileMode::kRepeat
@ kRepeat
flutter::DlTileMode::kClamp
@ kClamp
flutter::DlTileMode::kMirror
@ kMirror
Generated on Sun Jun 23 2024 21:54:55 for Flutter Engine by
1.9.4