ScummVM API documentation
TwinE::Interface Class Reference

Public Member Functions

 Interface (TwinEEngine *engine)
 
bool drawLine (int32 startWidth, int32 startHeight, int32 endWidth, int32 endHeight, uint8 lineColor)
 
void blitBox (const Common::Rect &rect, const Graphics::ManagedSurface &source, Graphics::ManagedSurface &dest)
 
void drawTransparentBox (const Common::Rect &rect, int32 colorAdj)
 
void drawFilledRect (const Common::Rect &rect, uint8 colorIndex)
 
bool setClip (const Common::Rect &rect)
 
void memoClip ()
 
void restoreClip ()
 
void unsetClip ()
 

Public Attributes

Common::Rect _clip { 0, 0, 0, 0 }
 

Member Function Documentation

◆ drawLine()

bool TwinE::Interface::drawLine ( int32  startWidth,
int32  startHeight,
int32  endWidth,
int32  endHeight,
uint8  lineColor 
)

Draw button line

Parameters
startWidthwidth value where the line starts
startHeightheight value where the line starts
endWidthwidth value where the line ends
endHeightheight value where the line ends
lineColorline color in the current palette

◆ blitBox()

void TwinE::Interface::blitBox ( const Common::Rect rect,
const Graphics::ManagedSurface source,
Graphics::ManagedSurface dest 
)

Blit button box from working buffer to front buffer

Parameters
sourcesource screen buffer, in this case working buffer
destdestination screen buffer, in this case front buffer

◆ drawTransparentBox()

void TwinE::Interface::drawTransparentBox ( const Common::Rect rect,
int32  colorAdj 
)

Draws inside buttons transparent area

Parameters
colorAdjindex to adjust the transparent box color

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