Flutter Engine
The Flutter Engine
Enumerations | Functions
skglyph Namespace Reference

Enumerations

enum class  GlyphAction {
  kUnset , kAccept , kReject , kDrop ,
  kSize
}
 
enum  ActionType {
  kDirectMask = 0 , kDirectMaskCPU = 2 , kMask = 4 , kSDFT = 6 ,
  kPath = 8 , kDrawable = 10
}
 
enum  ActionTypeSize { kTotalBits = 12 }
 

Functions

SkGlyphRect rect_union (SkGlyphRect, SkGlyphRect)
 
SkGlyphRect rect_intersection (SkGlyphRect, SkGlyphRect)
 
SkGlyphRect empty_rect ()
 
SkGlyphRect full_rect ()
 

Enumeration Type Documentation

◆ ActionType

Enumerator
kDirectMask 
kDirectMaskCPU 
kMask 
kSDFT 
kPath 
kDrawable 

Definition at line 312 of file SkGlyph.h.

312 {
313 kDirectMask = 0,
314 kDirectMaskCPU = 2,
315 kMask = 4,
316 kSDFT = 6,
317 kPath = 8,
318 kDrawable = 10,
319};
@ kDrawable
@ kSDFT
Definition: SkGlyph.h:316
@ kPath
Definition: SkGlyph.h:317
@ kMask
Definition: SkGlyph.h:315
@ kDirectMask
Definition: SkGlyph.h:313
@ kDirectMaskCPU
Definition: SkGlyph.h:314

◆ ActionTypeSize

Enumerator
kTotalBits 

Definition at line 321 of file SkGlyph.h.

321 {
322 kTotalBits = 12
323};
@ kTotalBits
Definition: SkGlyph.h:322

◆ GlyphAction

enum class skglyph::GlyphAction
strong
Enumerator
kUnset 
kAccept 
kReject 
kDrop 
kSize 

Definition at line 304 of file SkGlyph.h.

Function Documentation

◆ empty_rect()

SkGlyphRect skglyph::empty_rect ( )
inline

Definition at line 289 of file SkGlyph.h.

289 {
291 return {max, max, -max, -max};
292}
float SkScalar
Definition: extension.cpp:12
static float max(float r, float g, float b)
Definition: hsl.cpp:49

◆ full_rect()

SkGlyphRect skglyph::full_rect ( )
inline

Definition at line 293 of file SkGlyph.h.

293 {
295 return {-max, -max, max, max};
296}

◆ rect_intersection()

SkGlyphRect skglyph::rect_intersection ( SkGlyphRect  a,
SkGlyphRect  b 
)
inline

Definition at line 300 of file SkGlyph.h.

300 {
301 return skvx::min(a.fRect, b.fRect);
302}
static bool b
struct MyStruct a[10]
SIT T min(const Vec< 1, T > &x)
Definition: SkVx.h:640

◆ rect_union()

SkGlyphRect skglyph::rect_union ( SkGlyphRect  a,
SkGlyphRect  b 
)
inline

Definition at line 297 of file SkGlyph.h.

297 {
298 return skvx::max(a.fRect, b.fRect);
299}
SIT T max(const Vec< 1, T > &x)
Definition: SkVx.h:641