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

Function GetRectangle

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

Source from the content-addressed store, hash-verified

101}
102
103static pag::ShapeElement* GetRectangle(const AEGP_StreamRefH& streamHandle) {
104 auto element = new pag::RectangleElement();
105
106 element->reversed = GetValue(streamHandle, "ADBE Vector Shape Direction",
107 AEStreamParser::ShapeDirectionReversedParser);
108 element->size =
109 GetProperty(streamHandle, "ADBE Vector Rect Size", AEStreamParser::PointParser, {}, 2);
110 element->position =
111 GetProperty(streamHandle, "ADBE Vector Rect Position", AEStreamParser::PointParser);
112 element->roundness =
113 GetProperty(streamHandle, "ADBE Vector Rect Roundness", AEStreamParser::FloatParser);
114 return element;
115}
116
117static pag::ShapeElement* GetEllipse(const AEGP_StreamRefH& streamHandle) {
118 auto element = new pag::EllipseElement();

Callers 1

GetShapeFunction · 0.85

Calls 2

GetValueFunction · 0.85
GetPropertyFunction · 0.85

Tested by

no test coverage detected