mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-18 06:06:01 -06:00
48 lines
3.7 KiB
C++
48 lines
3.7 KiB
C++
#ifndef _ScatterDraw_DrawingFunctions_h_
|
|
#define _ScatterDraw_DrawingFunctions_h_
|
|
|
|
namespace Upp {
|
|
|
|
void DrawLine(Draw &w, double x0, double y0, double x1, double y1, double width, const Color &color);
|
|
void DrawLine(Painter &w, double x0, double y0, double x1, double y1, double width, const Color &color);
|
|
void DrawRectangle(Draw &w, double x0, double y0, double x1, double y1, double scale,
|
|
double width, const Color &color);
|
|
void DrawRectangle(Painter &w, double x0, double y0, double x1, double y1, double scale,
|
|
double width, const Color &color);
|
|
template <class T>
|
|
void DrawRectangle(T &w, const Rectf &rect, double scale, double width, const Color &color) {
|
|
DrawRectangle(w, rect.left, rect.top, rect.right, rect.bottom, scale, width, color);
|
|
}
|
|
void FillRectangle(Draw &w, double x0, double y0, double x1, double y1, const Color &color) ;
|
|
void FillRectangle(Painter &w, double x0, double y0, double x1, double y1, const Color &color);
|
|
template <class T>
|
|
void FillRectangle(T &w, const Rectf &rect, const Color &color) {
|
|
FillRectangle(w, rect.left, rect.top, rect.right, rect.bottom, color);
|
|
}
|
|
void DrawLineOpa(Draw& w, double x0, double y0, double x1, double y1, double scale, double opacity, double thick, const Color &_color, String pattern, const Color &background = Null);
|
|
void DrawLineOpa(Painter& w, double x0, double y0, double x1, double y1, double scale, double opacity, double thick, const Color &_color, String pattern, const Color &background = Null);
|
|
void DrawCircleOpa(Draw& w, double x, double y, double r, double scale, double opacity, double thick, const Color &_color, String pattern, const Color &background = Null);
|
|
void DrawCircleOpa(Painter& w, double x, double y, double r, double scale, double opacity, double thick, const Color &_color, String pattern, const Color &background = Null);
|
|
void FillRectangleOpa(Draw &w, double x0, double y0, double x1, double y1, double opacity, const Color &background, const Color &color);
|
|
void FillRectangleOpa(Painter &w, double x0, double y0, double x1, double y1, double opacity, const Color &background, const Color &color);
|
|
void DrawPolylineOpa(Draw& w, const Vector<Pointf> &p, double scale, double opacity, double thick, const Color &color, String pattern = "", const Color &background = Null);
|
|
void DrawPolylineOpa(Painter& w, const Vector<Pointf> &p, double scale, double opacity, double thick, const Color &color, String pattern = "", const Color &background = Null);
|
|
void FillPolylineOpa(Draw& w, const Vector<Pointf> &p, double scale, double opacity, const Color &background, const Color &fillColor);
|
|
void FillPolylineOpa(Painter& w, const Vector<Pointf> &p, double scale, double opacity, const Color &background, const Color &fillColor);
|
|
void DrawVArrow(Draw &w, double x0, double y0, double x1, double y1, double width, double aWidth, double aHeight, const Color &color);
|
|
void DrawVArrow(Painter &w, double x0, double y0, double x1, double y1, double width, double aWidth, double aHeight, const Color &color);
|
|
void DrawHArrow(Draw &w, double x0, double y0, double x1, double y1, double width, double aWidth, double aHeight, const Color &color);
|
|
void DrawHArrow(Painter &w, double x0, double y0, double x1, double y1, double width, double aWidth, double aHeight, const Color &color);
|
|
void DrawText(Draw &w, double x, double y, int angle, const String &text, Upp::Font font, Color color);
|
|
void DrawText(Painter &w, double x, double y, int angle, const String &text, Upp::Font font, Color color);
|
|
void Clip(Draw &w, double x, double y, double cx, double cy);
|
|
void Clip(Painter &w, double x, double y, double cx, double cy);
|
|
void ClipEnd(Draw &w);
|
|
void ClipEnd(Painter &w);
|
|
double GetDashLength(const char *dash);
|
|
|
|
Size GetTextSizeSpace(const String& text, Font font);
|
|
|
|
}
|
|
|
|
#endif
|