Wt::PixmapOf< SDLPixmap > Class Template Reference

used as a base for the Pixmap and the Display More...

#include <pixmap.h>

Inherited by Wt::Display, and Wt::Pixmap.

List of all members.

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< SDLSurfacePixmapBase


Detailed Description

template<typename SDLPixmap>
class Wt::PixmapOf< SDLPixmap >

used as a base for the Pixmap and the Display

Note:
SDLPixmap must be a SDLSurface descendant


Member Typedef Documentation

template<typename SDLPixmap>
typedef PixmapOf<SDLSurface> Wt::PixmapOf< SDLPixmap >::PixmapBase [protected]


Constructor & Destructor Documentation

template<typename SDLPixmap>
Wt::PixmapOf< SDLPixmap >::PixmapOf (  )  [inline]

constructor for NULL pixmap or default display

template<typename SDLPixmap>
Wt::PixmapOf< SDLPixmap >::PixmapOf ( int  w,
int  h,
int  depth,
int  flags = 0 
) [inline]

constructor for a sized display

template<typename SDLPixmap>
Wt::PixmapOf< SDLPixmap >::PixmapOf ( const Size size,
int  depth,
int  flags = 0 
) [inline]

constructor for a sized display

template<typename SDLPixmap>
Wt::PixmapOf< SDLPixmap >::PixmapOf ( const PixmapBase pixmap  )  [inline]

copy shares the pixmap

template<typename SDLPixmap>
Wt::PixmapOf< SDLPixmap >::PixmapOf ( const SDLSurface sdlsurface  )  [inline]

constructor from SDLSurface (for scale to work implicitely)

template<typename SDLPixmap>
Wt::PixmapOf< SDLPixmap >::PixmapOf ( const std::string &  filename  )  [inline]

constructor from file


Member Function Documentation

template<typename SDLPixmap>
void Wt::PixmapOf< SDLPixmap >::blend ( const Region dst,
const Color color = Color("white"),
int  alpha_blend_factor = Color::Transparent 
) [inline]

template<typename SDLPixmap>
void Wt::PixmapOf< SDLPixmap >::blend ( const Rect dst,
const Color color = Color("white"),
int  alpha_blend_factor = Color::Transparent 
) [inline]

template<typename SDLPixmap>
void Wt::PixmapOf< SDLPixmap >::blend ( const Color color = Color("white"),
int  alpha_blend_factor = Color::Transparent 
) [inline]

template<typename SDLPixmap>
int Wt::PixmapOf< SDLPixmap >::blit ( const Point p,
const PixmapBase src,
const Rect src_rect 
) [inline]

template<typename SDLPixmap>
int Wt::PixmapOf< SDLPixmap >::blit ( const Point p,
const PixmapBase src 
) [inline]

template<typename SDLPixmap>
int Wt::PixmapOf< SDLPixmap >::blitAlphaBlend ( const Point p,
const PixmapBase src,
const Rect src_rect,
int  alpha_blend_factor = Color::Transparent 
) [inline]

template<typename SDLPixmap>
int Wt::PixmapOf< SDLPixmap >::blitAlphaBlend ( const Point p,
const PixmapBase src,
int  alpha_blend_factor = Color::Transparent 
) [inline]

template<typename SDLPixmap>
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

template<typename SDLPixmap>
int Wt::PixmapOf< SDLPixmap >::blitAlphaBlend ( const PixmapBase src,
int  alpha_blend_factor = Color::Transparent 
) [inline]

copy to from src with alpha blending

template<typename SDLPixmap>
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.

template<typename SDLPixmap>
int Wt::PixmapOf< SDLPixmap >::blitAlphaCopy ( const Point p,
const PixmapBase src,
const Rect src_rect 
) [inline]

template<typename SDLPixmap>
int Wt::PixmapOf< SDLPixmap >::blitAlphaCopy ( const Point p,
const PixmapBase src 
) [inline]

template<typename SDLPixmap>
PixmapBase Wt::PixmapOf< SDLPixmap >::copy ( const Rect r  )  const [inline]

template<typename SDLPixmap>
PixmapBase Wt::PixmapOf< SDLPixmap >::copy ( int  x,
int  y,
int  w,
int  h 
) const [inline]

template<typename SDLPixmap>
PixmapBase Wt::PixmapOf< SDLPixmap >::copy (  )  const [inline]

template<typename SDLPixmap>
void Wt::PixmapOf< SDLPixmap >::fill ( const Region dst,
const Color color = Color("white") 
) [inline]

template<typename SDLPixmap>
void Wt::PixmapOf< SDLPixmap >::fill ( const Rect dst,
const Color color = Color("white") 
) [inline]

template<typename SDLPixmap>
void Wt::PixmapOf< SDLPixmap >::fill ( const Color color = Color("white")  )  [inline]

template<typename SDLPixmap>
bool Wt::PixmapOf< SDLPixmap >::isNull (  )  const [inline]

template<typename SDLPixmap>
int Wt::PixmapOf< SDLPixmap >::pixel ( const Point p  )  const [inline]

template<typename SDLPixmap>
Color Wt::PixmapOf< SDLPixmap >::pixelColor ( const Point p  )  const [inline]

template<typename SDLPixmap>
Rect Wt::PixmapOf< SDLPixmap >::rect (  )  const [inline]

Reimplemented in Wt::Widget.

template<typename SDLPixmap>
void Wt::PixmapOf< SDLPixmap >::resize ( const Size size  )  [inline]

Reimplemented in Wt::Widget.

template<typename SDLPixmap>
PixmapBase Wt::PixmapOf< SDLPixmap >::scale ( const Size size,
SDLSurface::ScaleMode  mode = SDLSurface::ScaleFree 
) const [inline]

template<typename SDLPixmap>
void Wt::PixmapOf< SDLPixmap >::setPixel ( const Point p,
int  pixel_value 
) [inline]

template<typename SDLPixmap>
void Wt::PixmapOf< SDLPixmap >::setPixelColor ( const Point p,
const SDLColor color 
) [inline]

template<typename SDLPixmap>
Size Wt::PixmapOf< SDLPixmap >::size (  )  const [inline]

Reimplemented in Wt::Widget.

template<typename SDLPixmap>
PixmapBase Wt::PixmapOf< SDLPixmap >::smoothScale ( const Size size,
SDLSurface::ScaleMode  mode = SDLSurface::ScaleFree 
) const [inline]


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

Generated Fri Jul 28 19:22:38 2006.
Copyright © 1998-2003 by the respective authors.

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.