22 #ifndef SCI_GRAPHICS_PORTS_H 23 #define SCI_GRAPHICS_PORTS_H 25 #include "common/serializer.h" 26 #include "common/list.h" 27 #include "common/array.h" 34 struct WorklistManager;
38 SCI_WINDOWMGR_STYLE_TRANSPARENT = (1 << 0),
39 SCI_WINDOWMGR_STYLE_NOFRAME = (1 << 1),
40 SCI_WINDOWMGR_STYLE_TITLE = (1 << 2),
41 SCI_WINDOWMGR_STYLE_TOPMOST = (1 << 3),
42 SCI_WINDOWMGR_STYLE_USER = (1 << 7)
60 void kernelSetActive(uint16 portId);
61 Common::Rect kernelGetPicWindow(int16 &picTop, int16 &picLeft);
62 void kernelSetPicWindow(
Common::Rect rect, int16 picTop, int16 picLeft,
bool initPriorityBandsFlag);
63 reg_t kernelGetActive();
64 reg_t kernelNewWindow(
Common::Rect dims,
Common::Rect restoreRect, uint16 style, int16 priority, int16 colorPen, int16 colorBack,
const char *title);
65 void kernelDisposeWindow(uint16 windowId,
bool reanimate);
67 int16 isFrontWindow(
Window *wnd);
68 void beginUpdate(
Window *wnd);
69 void endUpdate(
Window *wnd);
71 void drawWindow(
Window *wnd);
72 void removeWindow(
Window *pWnd,
bool reanimate);
73 void freeWindow(
Window *pWnd);
74 void updateWindow(
Window *wnd);
76 Port *getPortById(uint16
id);
80 void setOrigin(int16 left, int16 top);
81 void moveTo(int16 left, int16 top);
82 void move(int16 left, int16 top);
83 void openPort(
Port *port);
84 void penColor(int16 color);
85 void backColor(int16 color);
86 void penMode(int16 mode);
87 void textGreyedOutput(
bool state);
94 void priorityBandsInit(int16 bandCount, int16 top, int16 bottom);
98 void kernelInitPriorityBands();
99 void kernelGraphAdjustPriority(
int top,
int bottom);
100 byte kernelCoordinateToPriority(int16 y);
101 int16 kernelPriorityToCoordinate(byte priority);
103 void printWindowList(
Console *con);
118 PortList _windowList;
121 PortArray _windowsById;
128 bool _usesOldGfxFunctions;
138 int16 _priorityTop, _priorityBottom, _priorityBandCount;
139 byte _priorityBands[200];
144 #endif // SCI_GRAPHICS_PORTS_H
Definition: serializer.h:79
Definition: serializer.h:308
Definition: seg_manager.h:48
Definition: vm_types.h:39