| 89 | |
| 90 | |
| 91 | void 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 | |
| 103 | void GPostscriptPort::DrawText (const int x, const int y, const char *text) |
| 104 | { |