#include <pixmap.h>
Inherited by Wt::Display, and Wt::Pixmap.
Public Member Functions | |
PixmapOf () | |
constructor for NULL pixmap or default display | |
PixmapOf (int w, int h, int depth, int flags=0) | |
constructor for a sized display | |
PixmapOf (const Size &size, int depth, int flags=0) | |
constructor for a sized display | |
PixmapOf (const PixmapBase &pixmap) | |
copy shares the pixmap | |
PixmapOf (const SDLSurface &sdlsurface) | |
constructor from SDLSurface (for scale to work implicitely) | |
PixmapOf (const std::string &filename) | |
constructor from file | |
void | fill (const Color &color=Color("white")) |
void | fill (const Rect &dst, const Color &color=Color("white")) |
void | fill (const Region &dst, const Color &color=Color("white")) |
void | blend (const Color &color=Color("white"), int alpha_blend_factor=Color::Transparent) |
void | blend (const Rect &dst, const Color &color=Color("white"), int alpha_blend_factor=Color::Transparent) |
void | blend (const Region &dst, const Color &color=Color("white"), int alpha_blend_factor=Color::Transparent) |
int | blit (const Point &p, const PixmapBase &src) |
int | blit (const Point &p, const PixmapBase &src, const Rect &src_rect) |
int | blitAlphaCopy (const Point &p, const PixmapBase &src) |
int | blitAlphaCopy (const Point &p, const PixmapBase &src, const Rect &src_rect) |
int | blitAlphaBlend (int x, int y, const PixmapBase &src, const Rect &src_rect, int alpha_blend_factor=Color::Transparent) |
copy to from src rect with alpha blending | |
int | blitAlphaBlend (const PixmapBase &src, int alpha_blend_factor=Color::Transparent) |
copy to from src with alpha blending | |
int | blitAlphaBlend (int x, int y, const PixmapBase &src, int alpha_blend_factor=Color::Transparent) |
copy to from src with alpha blending | |
int | blitAlphaBlend (const Point &p, const PixmapBase &src, int alpha_blend_factor=Color::Transparent) |
int | blitAlphaBlend (const Point &p, const PixmapBase &src, const Rect &src_rect, int alpha_blend_factor=Color::Transparent) |
void | resize (const Size &size) |
PixmapBase | scale (const Size &size, SDLSurface::ScaleMode mode=SDLSurface::ScaleFree) const |
PixmapBase | smoothScale (const Size &size, SDLSurface::ScaleMode mode=SDLSurface::ScaleFree) const |
int | pixel (const Point &p) const |
Color | pixelColor (const Point &p) const |
void | setPixel (const Point &p, int pixel_value) |
void | setPixelColor (const Point &p, const SDLColor &color) |
PixmapBase | copy () const |
PixmapBase | copy (int x, int y, int w, int h) const |
PixmapBase | copy (const Rect &r) const |
Informative methods | |
bool | isNull () const |
Size | size () const |
Rect | rect () const |
Protected Types | |
typedef PixmapOf< SDLSurface > | PixmapBase |
typedef PixmapOf<SDLSurface> Wt::PixmapOf< SDLPixmap >::PixmapBase [protected] |
Wt::PixmapOf< SDLPixmap >::PixmapOf | ( | ) | [inline] |
constructor for NULL pixmap or default display
Wt::PixmapOf< SDLPixmap >::PixmapOf | ( | int | w, | |
int | h, | |||
int | depth, | |||
int | flags = 0 | |||
) | [inline] |
constructor for a sized display
Wt::PixmapOf< SDLPixmap >::PixmapOf | ( | const Size & | size, | |
int | depth, | |||
int | flags = 0 | |||
) | [inline] |
constructor for a sized display
Wt::PixmapOf< SDLPixmap >::PixmapOf | ( | const PixmapBase & | pixmap | ) | [inline] |
copy shares the pixmap
Wt::PixmapOf< SDLPixmap >::PixmapOf | ( | const SDLSurface & | sdlsurface | ) | [inline] |
constructor from SDLSurface (for scale to work implicitely)
Wt::PixmapOf< SDLPixmap >::PixmapOf | ( | const std::string & | filename | ) | [inline] |
constructor from file
void Wt::PixmapOf< SDLPixmap >::blend | ( | const Region & | dst, | |
const Color & | color = Color("white") , |
|||
int | alpha_blend_factor = Color::Transparent | |||
) | [inline] |
void Wt::PixmapOf< SDLPixmap >::blend | ( | const Rect & | dst, | |
const Color & | color = Color("white") , |
|||
int | alpha_blend_factor = Color::Transparent | |||
) | [inline] |
void Wt::PixmapOf< SDLPixmap >::blend | ( | const Color & | color = Color("white") , |
|
int | alpha_blend_factor = Color::Transparent | |||
) | [inline] |
int Wt::PixmapOf< SDLPixmap >::blit | ( | const Point & | p, | |
const PixmapBase & | src, | |||
const Rect & | src_rect | |||
) | [inline] |
int Wt::PixmapOf< SDLPixmap >::blit | ( | const Point & | p, | |
const PixmapBase & | src | |||
) | [inline] |
int Wt::PixmapOf< SDLPixmap >::blitAlphaBlend | ( | const Point & | p, | |
const PixmapBase & | src, | |||
const Rect & | src_rect, | |||
int | alpha_blend_factor = Color::Transparent | |||
) | [inline] |
int Wt::PixmapOf< SDLPixmap >::blitAlphaBlend | ( | const Point & | p, | |
const PixmapBase & | src, | |||
int | alpha_blend_factor = Color::Transparent | |||
) | [inline] |
int Wt::PixmapOf< SDLPixmap >::blitAlphaBlend | ( | int | x, | |
int | y, | |||
const PixmapBase & | src, | |||
int | alpha_blend_factor = Color::Transparent | |||
) | [inline] |
copy to from src with alpha blending
int Wt::PixmapOf< SDLPixmap >::blitAlphaBlend | ( | const PixmapBase & | src, | |
int | alpha_blend_factor = Color::Transparent | |||
) | [inline] |
copy to from src with alpha blending
int Wt::PixmapOf< SDLPixmap >::blitAlphaBlend | ( | int | x, | |
int | y, | |||
const PixmapBase & | src, | |||
const Rect & | src_rect, | |||
int | alpha_blend_factor = Color::Transparent | |||
) | [inline] |
copy to from src rect with alpha blending
if alpha_blend_factor = Color::Transparent (default) we keep the destination alpha (blit semantics). If it is set to Color::Opaque we replace alpha values with the new one (blitAlphaCopy semantics).
The blending of the color happens anyway.
int Wt::PixmapOf< SDLPixmap >::blitAlphaCopy | ( | const Point & | p, | |
const PixmapBase & | src, | |||
const Rect & | src_rect | |||
) | [inline] |
int Wt::PixmapOf< SDLPixmap >::blitAlphaCopy | ( | const Point & | p, | |
const PixmapBase & | src | |||
) | [inline] |
PixmapBase Wt::PixmapOf< SDLPixmap >::copy | ( | const Rect & | r | ) | const [inline] |
PixmapBase Wt::PixmapOf< SDLPixmap >::copy | ( | int | x, | |
int | y, | |||
int | w, | |||
int | h | |||
) | const [inline] |
PixmapBase Wt::PixmapOf< SDLPixmap >::copy | ( | ) | const [inline] |
void Wt::PixmapOf< SDLPixmap >::fill | ( | const Region & | dst, | |
const Color & | color = Color("white") | |||
) | [inline] |
void Wt::PixmapOf< SDLPixmap >::fill | ( | const Rect & | dst, | |
const Color & | color = Color("white") | |||
) | [inline] |
void Wt::PixmapOf< SDLPixmap >::fill | ( | const Color & | color = Color("white") |
) | [inline] |
bool Wt::PixmapOf< SDLPixmap >::isNull | ( | ) | const [inline] |
int Wt::PixmapOf< SDLPixmap >::pixel | ( | const Point & | p | ) | const [inline] |
Color Wt::PixmapOf< SDLPixmap >::pixelColor | ( | const Point & | p | ) | const [inline] |
Rect Wt::PixmapOf< SDLPixmap >::rect | ( | ) | const [inline] |
Reimplemented in Wt::Widget.
void Wt::PixmapOf< SDLPixmap >::resize | ( | const Size & | size | ) | [inline] |
Reimplemented in Wt::Widget.
PixmapBase Wt::PixmapOf< SDLPixmap >::scale | ( | const Size & | size, | |
SDLSurface::ScaleMode | mode = SDLSurface::ScaleFree | |||
) | const [inline] |
void Wt::PixmapOf< SDLPixmap >::setPixel | ( | const Point & | p, | |
int | pixel_value | |||
) | [inline] |
void Wt::PixmapOf< SDLPixmap >::setPixelColor | ( | const Point & | p, | |
const SDLColor & | color | |||
) | [inline] |
Size Wt::PixmapOf< SDLPixmap >::size | ( | ) | const [inline] |
Reimplemented in Wt::Widget.
PixmapBase Wt::PixmapOf< SDLPixmap >::smoothScale | ( | const Size & | size, | |
SDLSurface::ScaleMode | mode = SDLSurface::ScaleFree | |||
) | const [inline] |
This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.