added missing tools
This commit is contained in:
1 parent
e71c06ee31
commit
f9f00c8622
2 files changed
+76
-2
No files matched your search
@@ -87,6 +87,15 @@ extern GraphicSet *HGrSystem;
|
||||
extern GraphicSet *HGrSystem2;
|
||||
extern GraphicSet *Templates;
|
||||
extern Dpi::Bitmap *Colors; // palette lookup bitmap, indexed by clkAge0/cli* below
|
||||
// ScreenTools.pas's `Paper` decorative background bitmap (Graphics/Paper.jpg)
|
||||
// - null until the application's asset-loading step loads it (no central
|
||||
// UnitInit exists yet, so the first consumer that needs it loads it lazily).
|
||||
extern Dpi::Bitmap paper;
|
||||
|
||||
// ScreenTools.pas's magenta/half-magenta transparency color-key constants
|
||||
// (also used by loadGraphicSet()'s own mask generation).
|
||||
constexpr QRgb TransparentColor1 = 0xFF00FF;
|
||||
constexpr QRgb TransparentColor2 = 0x7F007F;
|
||||
// ScreenTools.pas's "icons.bmp" sprite sheet (improvements/wonders, big
|
||||
// size) + its per-icon slot size; also populated by app asset-loading.
|
||||
extern Dpi::Bitmap *bigImp;
|
||||
@@ -145,6 +154,16 @@ 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());
|
||||
// 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.
|
||||
void fillSeamless(Dpi::Canvas &canvas, int left, int top, int width, int height, int xOffset, int yOffset,
|
||||
Dpi::Bitmap &texture);
|
||||
void fillRectSeamless(Dpi::Canvas &canvas, int x0, int y0, int x1, int y1, int xOffset, int yOffset,
|
||||
Dpi::Bitmap &texture);
|
||||
// Replaces every pixel in `dest` equal to transparentColor with the
|
||||
// corresponding (wrapped) pixel of `texture`.
|
||||
void texturize(Dpi::Bitmap &dest, Dpi::Bitmap &texture, QColor transparentColor);
|
||||
void paintBackground(Dpi::Canvas &canvas, int left, int top, int width, int height,
|
||||
int formWidth = 0, int formHeight = 0);
|
||||
// Draws a HGrSystem-sprited progress bar: `pos` pixels already filled,
|
||||
|
||||
Reference in new issue
Block a user