MCPcopy Create free account
hub / github.com/Smorodov/Multitarget-tracker / DrawRect

Method DrawRect

src/Tracker/graph/gport.cpp:91–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89
90
91void GPostscriptPort::DrawRect (const GRect &r)
92{
93 PostscriptStream << r.GetLeft() << " " << -r.GetTop() << " moveto" << std::endl;
94 PostscriptStream << r.GetWidth() << " 0 rlineto" << std::endl;
95 PostscriptStream << "0 " << -r.GetHeight() << " rlineto" << std::endl;
96 PostscriptStream << -r.GetWidth() << " 0 rlineto" << std::endl;
97 PostscriptStream << "0 " << r.GetHeight() << " rlineto" << std::endl;
98 PostscriptStream << "closepath" << std::endl;
99 PostscriptStream << "stroke" << std::endl;
100 PostscriptStream << std::endl;
101}
102
103void GPostscriptPort::DrawText (const int x, const int y, const char *text)
104{

Callers

nothing calls this directly

Calls 4

GetLeftMethod · 0.80
GetTopMethod · 0.80
GetWidthMethod · 0.80
GetHeightMethod · 0.80

Tested by

no test coverage detected