Flutter Engine
The Flutter Engine
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions | Variables
TextStyle.h File Reference
#include <optional>
#include <vector>
#include "include/core/SkColor.h"
#include "include/core/SkFont.h"
#include "include/core/SkFontMetrics.h"
#include "include/core/SkFontStyle.h"
#include "include/core/SkPaint.h"
#include "include/core/SkScalar.h"
#include "modules/skparagraph/include/DartTypes.h"
#include "modules/skparagraph/include/FontArguments.h"
#include "modules/skparagraph/include/ParagraphPainter.h"
#include "modules/skparagraph/include/TextShadow.h"

Go to the source code of this file.

Classes

struct  skia::textlayout::Decoration
 
struct  skia::textlayout::FontFeature
 
struct  skia::textlayout::PlaceholderStyle
 
class  skia::textlayout::TextStyle
 
struct  skia::textlayout::Block
 
struct  skia::textlayout::Placeholder
 

Namespaces

namespace  skia
 
namespace  skia::textlayout
 

Macros

#define DEFAULT_FONT_FAMILY   "sans-serif"
 

Typedefs

typedef size_t skia::textlayout::TextIndex
 
typedef SkRange< size_t > skia::textlayout::TextRange
 
typedef size_t skia::textlayout::BlockIndex
 
typedef SkRange< size_t > skia::textlayout::BlockRange
 

Enumerations

enum  skia::textlayout::TextDecoration { skia::textlayout::kNoDecoration = 0x0 , skia::textlayout::kUnderline = 0x1 , skia::textlayout::kOverline = 0x2 , skia::textlayout::kLineThrough = 0x4 }
 
enum  skia::textlayout::TextDecorationStyle {
  skia::textlayout::kSolid , skia::textlayout::kDouble , skia::textlayout::kDotted , skia::textlayout::kDashed ,
  skia::textlayout::kWavy
}
 
enum  skia::textlayout::TextDecorationMode { skia::textlayout::kGaps , skia::textlayout::kThrough }
 
enum  skia::textlayout::StyleType {
  skia::textlayout::kNone , skia::textlayout::kAllAttributes , skia::textlayout::kFont , skia::textlayout::kForeground ,
  skia::textlayout::kBackground , skia::textlayout::kShadow , skia::textlayout::kDecorations , skia::textlayout::kLetterSpacing ,
  skia::textlayout::kWordSpacing
}
 
enum class  skia::textlayout::PlaceholderAlignment {
  skia::textlayout::kBaseline , skia::textlayout::kAboveBaseline , skia::textlayout::kBelowBaseline , skia::textlayout::kTop ,
  skia::textlayout::kBottom , skia::textlayout::kMiddle
}
 Where to vertically align the placeholder relative to the surrounding text. More...
 

Functions

static bool skia::textlayout::nearlyZero (SkScalar x, SkScalar tolerance=SK_ScalarNearlyZero)
 
static bool skia::textlayout::nearlyEqual (SkScalar x, SkScalar y, SkScalar tolerance=SK_ScalarNearlyZero)
 

Variables

constexpr TextDecoration skia::textlayout::AllTextDecorations []
 
const SkRange< size_t > skia::textlayout::EMPTY_TEXT = EMPTY_RANGE
 
const size_t skia::textlayout::EMPTY_BLOCK = EMPTY_INDEX
 
const SkRange< size_t > skia::textlayout::EMPTY_BLOCKS = EMPTY_RANGE
 

Macro Definition Documentation

◆ DEFAULT_FONT_FAMILY

#define DEFAULT_FONT_FAMILY   "sans-serif"

Definition at line 19 of file TextStyle.h.