dw::fltk::FltkImgbuf Class Reference

#include <fltkimgbuf.hh>

List of all members.

Public Member Functions

 FltkImgbuf (Type type, int width, int height)
void setCMap (int *colors, int num_colors)
void scaleRow (int row, const core::byte *data)
void newScan ()
void copyRow (int row, const core::byte *data)
core::ImgbufgetScaledBuf (int width, int height)
void getRowArea (int row, dw::core::Rectangle *area)
int getRootWidth ()
int getRootHeight ()
void ref ()
void unref ()
bool lastReference ()
void setDeleteOnUnref (bool deleteOnUnref)
bool isReferred ()
void draw (Fl_Widget *target, int xRoot, int yRoot, int x, int y, int width, int height)

Protected Member Functions

 ~FltkImgbuf ()

Private Member Functions

 FltkImgbuf (Type type, int width, int height, FltkImgbuf *root)
void init (Type type, int width, int height, FltkImgbuf *root)
int scaledY (int ySrc)
int isRoot ()
void detachScaledBuf (FltkImgbuf *scaledBuf)
 This method is called for the root buffer, when a scaled buffer removed.

Private Attributes

FltkImgbufroot
int refCount
bool deleteOnUnref
lout::container::typed::List
< FltkImgbuf > * 
scaledBuffers
int width
int height
Type type
int bpp
uchar * rawdata
lout::misc::BitSetcopiedRows


Constructor & Destructor Documentation

dw::fltk::FltkImgbuf::FltkImgbuf ( Type  type,
int  width,
int  height,
FltkImgbuf root 
) [private]

References init().

Referenced by getScaledBuf().

dw::fltk::FltkImgbuf::~FltkImgbuf (  )  [protected]

dw::fltk::FltkImgbuf::FltkImgbuf ( Type  type,
int  width,
int  height 
)

References init().


Member Function Documentation

void dw::fltk::FltkImgbuf::copyRow ( int  row,
const core::byte data 
) [virtual]

void dw::fltk::FltkImgbuf::detachScaledBuf ( FltkImgbuf scaledBuf  )  [private]

void dw::fltk::FltkImgbuf::draw ( Fl_Widget *  target,
int  xRoot,
int  yRoot,
int  x,
int  y,
int  width,
int  height 
)

References bpp, and rawdata.

int dw::fltk::FltkImgbuf::getRootHeight (  )  [virtual]

Implements dw::core::Imgbuf.

References height, and root.

int dw::fltk::FltkImgbuf::getRootWidth (  )  [virtual]

Implements dw::core::Imgbuf.

References root, and width.

void dw::fltk::FltkImgbuf::getRowArea ( int  row,
dw::core::Rectangle area 
) [virtual]

core::Imgbuf * dw::fltk::FltkImgbuf::getScaledBuf ( int  width,
int  height 
) [virtual]

void dw::fltk::FltkImgbuf::init ( Type  type,
int  width,
int  height,
FltkImgbuf root 
) [private]

bool dw::fltk::FltkImgbuf::isReferred (  )  [virtual]

int dw::fltk::FltkImgbuf::isRoot (  )  [inline, private]

bool dw::fltk::FltkImgbuf::lastReference (  )  [virtual]

void dw::fltk::FltkImgbuf::newScan (  )  [virtual]

void dw::fltk::FltkImgbuf::ref (  )  [virtual]

Implements dw::core::Imgbuf.

References refCount.

Referenced by getScaledBuf().

int dw::fltk::FltkImgbuf::scaledY ( int  ySrc  )  [private]

References height, and root.

Referenced by getRowArea(), and scaleRow().

void dw::fltk::FltkImgbuf::scaleRow ( int  row,
const core::byte data 
) [inline]

void dw::fltk::FltkImgbuf::setCMap ( int *  colors,
int  num_colors 
) [virtual]

Implements dw::core::Imgbuf.

void dw::fltk::FltkImgbuf::setDeleteOnUnref ( bool  deleteOnUnref  )  [virtual]

Todo:
Comment

Implements dw::core::Imgbuf.

References isRoot().

void dw::fltk::FltkImgbuf::unref (  )  [virtual]


Member Data Documentation

Referenced by copyRow(), draw(), init(), and scaleRow().

Referenced by detachScaledBuf(), init(), and unref().

Referenced by getScaledBuf().


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

Generated on Wed Sep 7 02:00:38 2011 for Dillo by  doxygen 1.5.9