Flutter Engine
The Flutter Engine
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Classes | Enumerations | Variables
aaxfermodes.cpp File Reference
#include "gm/gm.h"
#include "include/core/SkBlendMode.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkFont.h"
#include "include/core/SkPaint.h"
#include "include/core/SkPathBuilder.h"
#include "include/core/SkPoint.h"
#include "include/core/SkRect.h"
#include "include/core/SkScalar.h"
#include "include/core/SkSize.h"
#include "include/core/SkString.h"
#include "include/core/SkTypeface.h"
#include "include/core/SkTypes.h"
#include "include/utils/SkTextUtils.h"
#include "tools/ToolUtils.h"
#include "tools/fonts/FontToolUtils.h"

Go to the source code of this file.

Classes

class  AAXfermodesGM
 

Enumerations

enum  Shape {
  kSquare_Shape , kDiamond_Shape , kOval_Shape , kConcave_Shape ,
  kLast_Shape = kConcave_Shape
}
 

Variables

constexpr int kShapeSize = 22
 
constexpr int kShapeSpacing = 36
 
constexpr int kShapeTypeSpacing = 4 * kShapeSpacing / 3
 
constexpr int kPaintSpacing = 4 * kShapeTypeSpacing
 
constexpr int kLabelSpacing = 3 * kShapeSize
 
constexpr int kMargin = kShapeSpacing / 2
 
constexpr int kXfermodeTypeSpacing = kLabelSpacing + 2 * kPaintSpacing + kShapeTypeSpacing
 
constexpr int kTitleSpacing = 3 * kShapeSpacing / 4
 
constexpr int kSubtitleSpacing = 5 * kShapeSpacing / 8
 
constexpr SkColor kBGColor = 0xc8d2b887
 
constexpr SkColor kShapeColors [2]
 

Enumeration Type Documentation

◆ Shape

enum Shape
Enumerator
kSquare_Shape 
kDiamond_Shape 
kOval_Shape 
kConcave_Shape 
kLast_Shape 

Definition at line 43 of file aaxfermodes.cpp.

43 {
48
50};
@ kSquare_Shape
Definition: aaxfermodes.cpp:44
@ kOval_Shape
Definition: aaxfermodes.cpp:46
@ kConcave_Shape
Definition: aaxfermodes.cpp:47
@ kLast_Shape
Definition: aaxfermodes.cpp:49
@ kDiamond_Shape
Definition: aaxfermodes.cpp:45

Variable Documentation

◆ kBGColor

constexpr SkColor kBGColor = 0xc8d2b887
constexpr

Definition at line 36 of file aaxfermodes.cpp.

◆ kLabelSpacing

constexpr int kLabelSpacing = 3 * kShapeSize
constexpr

Definition at line 30 of file aaxfermodes.cpp.

◆ kMargin

constexpr int kMargin = kShapeSpacing / 2
constexpr

Definition at line 31 of file aaxfermodes.cpp.

◆ kPaintSpacing

constexpr int kPaintSpacing = 4 * kShapeTypeSpacing
constexpr

Definition at line 29 of file aaxfermodes.cpp.

◆ kShapeColors

constexpr SkColor kShapeColors[2]
constexpr
Initial value:
= {
0x82ff0080,
0xff00ffff,
}

Definition at line 38 of file aaxfermodes.cpp.

◆ kShapeSize

constexpr int kShapeSize = 22
constexpr

Definition at line 26 of file aaxfermodes.cpp.

◆ kShapeSpacing

constexpr int kShapeSpacing = 36
constexpr

Definition at line 27 of file aaxfermodes.cpp.

◆ kShapeTypeSpacing

constexpr int kShapeTypeSpacing = 4 * kShapeSpacing / 3
constexpr

Definition at line 28 of file aaxfermodes.cpp.

◆ kSubtitleSpacing

constexpr int kSubtitleSpacing = 5 * kShapeSpacing / 8
constexpr

Definition at line 34 of file aaxfermodes.cpp.

◆ kTitleSpacing

constexpr int kTitleSpacing = 3 * kShapeSpacing / 4
constexpr

Definition at line 33 of file aaxfermodes.cpp.

◆ kXfermodeTypeSpacing

constexpr int kXfermodeTypeSpacing = kLabelSpacing + 2 * kPaintSpacing + kShapeTypeSpacing
constexpr

Definition at line 32 of file aaxfermodes.cpp.