ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Graphics::NinePatchBitmap Class Reference

#include <nine_patch.h>

Collaboration diagram for Graphics::NinePatchBitmap:

List of all members.

Public Member Functions

 NinePatchBitmap (Graphics::TransparentSurface *bmp, bool owns_bitmap)
 ~NinePatchBitmap ()
void blit (Graphics::Surface &target, int dx, int dy, int dw, int dh, byte *palette=NULL, int numColors=0, MacWindowManager *wm=NULL)
void blitClip (Graphics::Surface &target, Common::Rect clip, int dx, int dy, int dw, int dh)
int getWidth ()
int getHeight ()
int getMinWidth ()
int getMinHeight ()
Graphics::TransparentSurfacegetSource ()
Common::RectgetPadding ()

Private Member Functions

void drawRegions (Graphics::Surface &target, int dx, int dy, int dw, int dh)
byte getColorIndex (uint32 target, byte *palette)
uint32 grayscale (uint32 color)
uint32 grayscale (byte r, byte g, byte b)
byte closestGrayscale (uint32 color, byte *palette, int paletteLength)

Private Attributes

Graphics::TransparentSurface_bmp
NinePatchSide _h
NinePatchSide _v
Common::Rect _padding
bool _destroy_bmp
int _width
int _height
int _cached_dw
int _cached_dh
Common::HashMap< uint32, int > _cached_colors

Detailed Description

Definition at line 79 of file nine_patch.h.


Constructor & Destructor Documentation

Graphics::NinePatchBitmap::NinePatchBitmap ( Graphics::TransparentSurface bmp,
bool  owns_bitmap 
)

Definition at line 141 of file nine_patch.cpp.

Graphics::NinePatchBitmap::~NinePatchBitmap (  ) 

Definition at line 280 of file nine_patch.cpp.


Member Function Documentation

void Graphics::NinePatchBitmap::blit ( Graphics::Surface target,
int  dx,
int  dy,
int  dw,
int  dh,
byte palette = NULL,
int  numColors = 0,
MacWindowManager *  wm = NULL 
)

Definition at line 211 of file nine_patch.cpp.

void Graphics::NinePatchBitmap::blitClip ( Graphics::Surface target,
Common::Rect  clip,
int  dx,
int  dy,
int  dw,
int  dh 
)

Definition at line 301 of file nine_patch.cpp.

byte Graphics::NinePatchBitmap::closestGrayscale ( uint32  color,
byte palette,
int  paletteLength 
) [private]

Definition at line 364 of file nine_patch.cpp.

void Graphics::NinePatchBitmap::drawRegions ( Graphics::Surface target,
int  dx,
int  dy,
int  dw,
int  dh 
) [private]

Definition at line 287 of file nine_patch.cpp.

byte Graphics::NinePatchBitmap::getColorIndex ( uint32  target,
byte palette 
) [private]

Definition at line 336 of file nine_patch.cpp.

int Graphics::NinePatchBitmap::getHeight (  )  [inline]

Definition at line 96 of file nine_patch.h.

int Graphics::NinePatchBitmap::getMinHeight (  )  [inline]

Definition at line 98 of file nine_patch.h.

int Graphics::NinePatchBitmap::getMinWidth (  )  [inline]

Definition at line 97 of file nine_patch.h.

Common::Rect& Graphics::NinePatchBitmap::getPadding (  )  [inline]

Definition at line 100 of file nine_patch.h.

Graphics::TransparentSurface* Graphics::NinePatchBitmap::getSource (  )  [inline]

Definition at line 99 of file nine_patch.h.

int Graphics::NinePatchBitmap::getWidth (  )  [inline]

Definition at line 95 of file nine_patch.h.

uint32 Graphics::NinePatchBitmap::grayscale ( byte  r,
byte  g,
byte  b 
) [private]

Definition at line 353 of file nine_patch.cpp.

uint32 Graphics::NinePatchBitmap::grayscale ( uint32  color  )  [private]

Definition at line 347 of file nine_patch.cpp.


Member Data Documentation

Definition at line 85 of file nine_patch.h.

Definition at line 85 of file nine_patch.h.

Definition at line 83 of file nine_patch.h.

Definition at line 81 of file nine_patch.h.

Definition at line 84 of file nine_patch.h.

Definition at line 82 of file nine_patch.h.

Definition at line 81 of file nine_patch.h.

Definition at line 84 of file nine_patch.h.


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


Generated on Sat Sep 19 2020 05:04:56 for ResidualVM by doxygen 1.7.1
curved edge   curved edge