Lines Matching defs:Slant
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; }
54 return weight() == other.weight() && slant() == other.slant();
58 return (static_cast<uint32_t>(weight()) << 16) | static_cast<uint32_t>(slant());
63 Slant mSlant;