MCPcopy Create free account
hub / github.com/Tencent/libpag / GetShapeType

Function GetShapeType

exporter/src/export/data/Shape.cpp:40–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 {"ADBE Vector Filter - RC", pag::ShapeType::RoundCorners}};
39
40static pag::ShapeType GetShapeType(const AEGP_StreamRefH& streamHandle) {
41 std::string matchName = GetStreamMatchName(streamHandle);
42 auto result = ShapeTypeMap.find(matchName);
43 if (result == ShapeTypeMap.end()) {
44 return pag::ShapeType::Unknown;
45 }
46 return result->second;
47}
48
49static pag::ShapeElement* GetShape(const AEGP_StreamRefH& streamHandle, int& gradientIndex);
50

Callers 1

GetShapeFunction · 0.85

Calls 2

GetStreamMatchNameFunction · 0.85
findMethod · 0.80

Tested by

no test coverage detected