added additional functions

This commit is contained in:
Geoffray Levasseur committed 2026-11-04 14:49:33 +01:00
1 parent 5d5a502976
commit e5f109327c
2 files changed
+52

No files matched your search

+4
View File
@@ -172,6 +172,8 @@ void rframe(Dpi::Canvas &canvas, int x0, int y0, int x1, int y1, QColor cl0, QCo
// A "double line" bevel effect (one line in cl0, a second offset by one
// pixel in cl1), e.g. used to separate a label from its value.
void dLine(Dpi::Canvas &canvas, int x0, int x1, int y, QColor cl0, QColor cl1);
// Frame consisting of just the four corners (corner = length of each arm).
void cframe(Dpi::Canvas &canvas, int x0, int y0, int x1, int y1, int corner, QColor cl);
void btnFrame(Dpi::Canvas &canvas, const QRect &rect, const Texture &texture);
void editFrame(Dpi::Canvas &canvas, const QRect &rect, const Texture &texture);
// Unimplemented in the original ScreenTools.pas too (body is commented out there).
@@ -179,6 +181,8 @@ void corner(Dpi::Canvas &canvas, int x, int y, int kind, const Texture &texture)
void fill(Dpi::Canvas &canvas, int left, int top, int width, int height, int xOffset = 0, int yOffset = 0);
void fill(Dpi::Canvas &canvas, const QRect &rect, const QPoint &offset = QPoint());
// Fills the band [y0,y1) from x0 to x1 with the main texture, tiled from xm.
void fillLarge(Dpi::Canvas &canvas, int x0, int y0, int x1, int y1, int xm);
// Seamlessly tiles `texture` (wrapping at its own width/height) into the
// given rectangle, offset by (xOffset,yOffset) - e.g. a background that
// must look continuous regardless of where the painted rect starts.