Skia
2DGraphicsLibrary
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SkFontLCDConfig.h
1 /*
2  * Copyright 2013 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 SkFontLCDConfig_DEFINED
9 #define SkFontLCDConfig_DEFINED
10 
11 #include "SkTypes.h"
12 
13 class SK_API SkFontLCDConfig {
14 public:
25  kHorizontal_LCDOrientation = 0,
26  kVertical_LCDOrientation = 1
27  };
28 
30  static void SetSubpixelOrientation(LCDOrientation orientation);
32  static LCDOrientation GetSubpixelOrientation();
33 
46  enum LCDOrder {
47  kRGB_LCDOrder = 0,
48  kBGR_LCDOrder = 1,
49  kNONE_LCDOrder = 2
50  };
51 
53  static void SetSubpixelOrder(LCDOrder order);
55  static LCDOrder GetSubpixelOrder();
56 };
57 
58 #endif
LCDOrder
LCD color elements can vary in order.
Definition: SkFontLCDConfig.h:46
LCDOrientation
LCDs either have their color elements arranged horizontally or vertically.
Definition: SkFontLCDConfig.h:24
Definition: SkFontLCDConfig.h:13