Home
last modified time | relevance | path

Searched refs:SkSVGTextAnchor (Results 1 – 6 of 6) sorted by relevance

/external/skia/modules/svg/src/
DSkSVGAttributeParser.cpp866 bool SkSVGAttributeParser::parse(SkSVGTextAnchor* anchor) { in parse()
867 static constexpr std::tuple<const char*, SkSVGTextAnchor::Type> gAnchorMap[] = { in parse()
868 { "start" , SkSVGTextAnchor::Type::kStart }, in parse()
869 { "middle" , SkSVGTextAnchor::Type::kMiddle }, in parse()
870 { "end" , SkSVGTextAnchor::Type::kEnd }, in parse()
871 { "inherit", SkSVGTextAnchor::Type::kInherit}, in parse()
875 SkSVGTextAnchor::Type type; in parse()
878 *anchor = SkSVGTextAnchor(type); in parse()
DSkSVGAttribute.cpp37 result.fTextAnchor.init(SkSVGTextAnchor::Type::kStart); in MakeInitial()
DSkSVGText.cpp104 case SkSVGTextAnchor::Type::kStart : return 0.0f; in ComputeAlignmentFactor()
105 case SkSVGTextAnchor::Type::kMiddle: return -0.5f; in ComputeAlignmentFactor()
106 case SkSVGTextAnchor::Type::kEnd : return -1.0f; in ComputeAlignmentFactor()
107 case SkSVGTextAnchor::Type::kInherit: in ComputeAlignmentFactor()
/external/skia/modules/svg/include/
DSkSVGTypes.h571 class SkSVGTextAnchor {
580 SkSVGTextAnchor() : fType(Type::kInherit) {} in SkSVGTextAnchor() function
581 explicit SkSVGTextAnchor(Type t) : fType(t) {} in SkSVGTextAnchor() function
583 bool operator==(const SkSVGTextAnchor& other) const {
586 bool operator!=(const SkSVGTextAnchor& other) const { return !(*this == other); }
DSkSVGAttribute.h98 SkSVGProperty<SkSVGTextAnchor, true> fTextAnchor;
DSkSVGNode.h134 SVG_PRES_ATTR(TextAnchor , SkSVGTextAnchor, true)