25 #ifndef BURIED_GRAPHICS_H 26 #define BURIED_GRAPHICS_H 28 #include "common/rect.h" 29 #include "common/scummsys.h" 32 class SeekableReadStream;
52 kCursorEmptyArrow = 100,
54 kCursorMagnifyingGlass = 102,
55 kCursorOpenHand = 103,
56 kCursorClosedHand = 104,
58 kCursorNextPage = 106,
59 kCursorPrevPage = 107,
61 kCursorMoveDown = 109,
65 kCursorArrowLeft = 113,
66 kCursorArrowDown = 114,
67 kCursorArrowRight = 115
81 byte *getDefaultPalette()
const {
return _palette; }
84 void toggleCursor(
bool show);
87 uint32 getColor(byte r, byte g, byte b);
89 void invalidateRect(
const Common::Rect &rect,
bool erase =
true);
90 const Common::Rect &getDirtyRect()
const {
return _dirtyRect; }
92 void markMouseMoved() { _mouseMoved =
true; }
93 void updateScreen(
bool drawWindows =
true);
95 bool needsErase()
const {
return _needsErase; }
98 void blit(
const Graphics::Surface *surface,
int x,
int y, uint width, uint height);
102 void keyBlit(
Graphics::Surface *dst,
int xDst,
int yDst,
int w,
int h,
const Graphics::Surface *src, uint xSrc, uint ySrc, byte rTrans, byte gTrans, byte bTrans);
103 void opaqueTransparentBlit(
Graphics::Surface *dst,
int xDst,
int yDst,
int w,
int h,
const Graphics::Surface *src, uint xSrc, uint ySrc,
int opacityValue, byte r, byte g, byte b);
104 bool checkPointAgainstMaskedBitmap(
const Graphics::Surface *bitmap,
int x,
int y,
const Common::Point &point, byte rTrans, byte gTrans, byte bTrans);
106 void renderText(
Graphics::Surface *dst,
Graphics::Font *font,
const Common::String &text,
int x,
int y,
int w,
int h, uint32 color,
int lineHeight, TextAlign textAlign =
kTextAlignLeft,
bool centerVertically =
false);
107 void renderText(
Graphics::Surface *dst,
Graphics::Font *font,
const Common::U32String &text,
int x,
int y,
int w,
int h, uint32 color,
int lineHeight, TextAlign textAlign =
kTextAlignLeft,
bool centerVertically =
false);
108 void drawEllipse(
const Common::Rect &rect, uint32 color);
112 int computeHPushOffset(
int speed);
113 int computeVPushOffset(
int speed);
125 byte *createDefaultPalette()
const;
Center the text.
Definition: font.h:52
Definition: graphics.h:76
TextAlign
Definition: font.h:48
Definition: graphics.h:137
Align the text to the left.
Definition: font.h:51
bool crossBlit(byte *dst, const byte *src, const uint dstPitch, const uint srcPitch, const uint w, const uint h, const Graphics::PixelFormat &dstFmt, const Graphics::PixelFormat &srcFmt)
Definition: agent_evaluation.h:31
Definition: atari-cursor.h:38
Align the text to the right.
Definition: font.h:54
Definition: algorithm.h:29
Definition: formatinfo.h:28
bool keyBlit(byte *dst, const byte *src, const uint dstPitch, const uint srcPitch, const uint w, const uint h, const uint bytesPerPixel, const uint32 key)