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, byte numColors=0)
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, byte 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 78 of file nine_patch.h.


Constructor & Destructor Documentation

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

Definition at line 138 of file nine_patch.cpp.

Graphics::NinePatchBitmap::~NinePatchBitmap (  ) 

Definition at line 262 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,
byte  numColors = 0 
)

Definition at line 206 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 283 of file nine_patch.cpp.

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

Definition at line 346 of file nine_patch.cpp.

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

Definition at line 269 of file nine_patch.cpp.

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

Definition at line 318 of file nine_patch.cpp.

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

Definition at line 95 of file nine_patch.h.

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

Definition at line 97 of file nine_patch.h.

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

Definition at line 96 of file nine_patch.h.

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

Definition at line 99 of file nine_patch.h.

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

Definition at line 98 of file nine_patch.h.

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

Definition at line 94 of file nine_patch.h.

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

Definition at line 335 of file nine_patch.cpp.

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

Definition at line 329 of file nine_patch.cpp.


Member Data Documentation

Definition at line 84 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 80 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 80 of file nine_patch.h.

Definition at line 83 of file nine_patch.h.


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


Generated on Sat Jul 20 2019 05:02:55 for ResidualVM by doxygen 1.7.1
curved edge   curved edge