/frameworks/minikin/include/minikin/ |
FontStyle.h | 38 enum class Slant : bool { 43 constexpr FontStyle() : FontStyle(Weight::NORMAL, Slant::UPRIGHT) {} 44 constexpr explicit FontStyle(Weight weight) : FontStyle(weight, Slant::UPRIGHT) {} 45 constexpr explicit FontStyle(Slant slant) : FontStyle(Weight::NORMAL, slant) {} 46 constexpr FontStyle(Weight weight, Slant slant) 47 : FontStyle(static_cast<uint16_t>(weight), slant) {} 48 constexpr FontStyle(uint16_t weight, Slant slant) : mWeight(weight), mSlant(slant) { 51 constexpr Slant slant() const { return mSlant; } function in class:minikin::FontStyle [all...] |
/external/skia/include/core/ |
SkFontStyle.h | 41 enum Slant { 47 constexpr SkFontStyle(int weight, int width, Slant slant) : fValue( 50 (SkTPin<int>(slant, kUpright_Slant, kOblique_Slant) << 24) 61 Slant slant() const { return (Slant)((fValue >> 24) & 0xFF); } function in class:SkFontStyle
|
/external/skqp/include/core/ |
SkFontStyle.h | 41 enum Slant { 47 constexpr SkFontStyle(int weight, int width, Slant slant) : fValue( 50 (SkTPin<int>(slant, kUpright_Slant, kOblique_Slant) << 24) 61 Slant slant() const { return (Slant)((fValue >> 24) & 0xFF); } function in class:SkFontStyle
|