ScummVM API documentation
Sci::GfxPorts Class Reference

#include <ports.h>

Inheritance diagram for Sci::GfxPorts:
Common::Serializable

Public Member Functions

 GfxPorts (SegManager *segMan, GfxScreen *screen)
 
void init (bool usesOldGfxFunctions, GfxPaint16 *paint16, GfxText16 *text16)
 
void reset ()
 
void kernelSetActive (uint16 portId)
 
Common::Rect kernelGetPicWindow (int16 &picTop, int16 &picLeft)
 
void kernelSetPicWindow (Common::Rect rect, int16 picTop, int16 picLeft, bool initPriorityBandsFlag)
 
reg_t kernelGetActive ()
 
reg_t kernelNewWindow (Common::Rect dims, Common::Rect restoreRect, uint16 style, int16 priority, int16 colorPen, int16 colorBack, const char *title)
 
void kernelDisposeWindow (uint16 windowId, bool reanimate)
 
int16 isFrontWindow (Window *wnd)
 
void beginUpdate (Window *wnd)
 
void endUpdate (Window *wnd)
 
WindowaddWindow (const Common::Rect &dims, const Common::Rect *restoreRect, const char *title, uint16 style, int16 priority, bool draw)
 
void drawWindow (Window *wnd)
 
void removeWindow (Window *pWnd, bool reanimate)
 
void freeWindow (Window *pWnd)
 
void updateWindow (Window *wnd)
 
PortgetPortById (uint16 id)
 
PortsetPort (Port *newPort)
 
PortgetPort ()
 
void setOrigin (int16 left, int16 top)
 
void moveTo (int16 left, int16 top)
 
void move (int16 left, int16 top)
 
void openPort (Port *port)
 
void penColor (int16 color)
 
void backColor (int16 color)
 
void penMode (int16 mode)
 
void textGreyedOutput (bool state)
 
int16 getPointSize ()
 
void offsetRect (Common::Rect &r)
 
void offsetLine (Common::Point &start, Common::Point &end)
 
void clipLine (Common::Point &start, Common::Point &end)
 
void priorityBandsInit (int16 bandCount, int16 top, int16 bottom)
 
void priorityBandsInit (const SciSpan< const byte > &data)
 
void priorityBandsInitSci11 (SciSpan< const byte > data)
 
void kernelInitPriorityBands ()
 
void kernelGraphAdjustPriority (int top, int bottom)
 
byte kernelCoordinateToPriority (int16 y)
 
int16 kernelPriorityToCoordinate (byte priority)
 
void processEngineHunkList (WorklistManager &wm)
 
void printWindowList (Console *con)
 
void saveLoadWithSerializer (Common::Serializer &ser) override
 

Public Attributes

Port_wmgrPort
 
Window_picWind
 
Port_menuPort
 
Common::Rect _menuBarRect
 
Common::Rect _menuRect
 
Common::Rect _menuLine
 
Port_curPort
 

Detailed Description

Ports class, includes all port management for SCI0->SCI1.1 games. Ports are some sort of windows in SCI this class also handles adjusting coordinates to a specific port


The documentation for this class was generated from the following file: