Flutter Engine
The Flutter Engine
Public Types | Public Attributes | List of all members
SkSVGPreserveAspectRatio Struct Reference

#include <SkSVGTypes.h>

Public Types

enum  Align : uint8_t {
  kXMinYMin = 0x00 , kXMidYMin = 0x01 , kXMaxYMin = 0x02 , kXMinYMid = 0x04 ,
  kXMidYMid = 0x05 , kXMaxYMid = 0x06 , kXMinYMax = 0x08 , kXMidYMax = 0x09 ,
  kXMaxYMax = 0x0a , kNone = 0x10
}
 
enum  Scale { kMeet , kSlice }
 

Public Attributes

Align fAlign = kXMidYMid
 
Scale fScale = kMeet
 

Detailed Description

Definition at line 585 of file SkSVGTypes.h.

Member Enumeration Documentation

◆ Align

Enumerator
kXMinYMin 
kXMidYMin 
kXMaxYMin 
kXMinYMid 
kXMidYMid 
kXMaxYMid 
kXMinYMax 
kXMidYMax 
kXMaxYMax 
kNone 

Definition at line 586 of file SkSVGTypes.h.

586 : uint8_t {
587 // These values are chosen such that bits [0,1] encode X alignment, and
588 // bits [2,3] encode Y alignment.
589 kXMinYMin = 0x00,
590 kXMidYMin = 0x01,
591 kXMaxYMin = 0x02,
592 kXMinYMid = 0x04,
593 kXMidYMid = 0x05,
594 kXMaxYMid = 0x06,
595 kXMinYMax = 0x08,
596 kXMidYMax = 0x09,
597 kXMaxYMax = 0x0a,
598
599 kNone = 0x10,
600 };

◆ Scale

Enumerator
kMeet 
kSlice 

Definition at line 602 of file SkSVGTypes.h.

Member Data Documentation

◆ fAlign

Align SkSVGPreserveAspectRatio::fAlign = kXMidYMid

Definition at line 607 of file SkSVGTypes.h.

◆ fScale

Scale SkSVGPreserveAspectRatio::fScale = kMeet

Definition at line 608 of file SkSVGTypes.h.


The documentation for this struct was generated from the following file: