Dillo
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
dw::fltk::FltkImgbuf Class Reference

#include <fltkimgbuf.hh>

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
 

Additional Inherited Members

- Public Types inherited from dw::core::Imgbuf
enum  Type {
  RGB, RGBA, GRAY, INDEXED,
  INDEXED_ALPHA
}
 

Constructor & Destructor Documentation

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

References lout::misc::init().

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

References lout::misc::init().

Member Function Documentation

void dw::fltk::FltkImgbuf::copyRow ( int  row,
const core::byte data 
)
virtual
void dw::fltk::FltkImgbuf::detachScaledBuf ( FltkImgbuf scaledBuf)
private

This method is called for the root buffer, when a scaled buffer removed.

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

Implements dw::core::Imgbuf.

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

Implements dw::core::Imgbuf.

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
Todo:
Comment

Implements dw::core::Imgbuf.

int dw::fltk::FltkImgbuf::isRoot ( )
inlineprivate

References root.

bool dw::fltk::FltkImgbuf::lastReference ( )
virtual
Todo:
Comment

Implements dw::core::Imgbuf.

void dw::fltk::FltkImgbuf::newScan ( )
virtual
void dw::fltk::FltkImgbuf::ref ( )
virtual

Implements dw::core::Imgbuf.

Referenced by getScaledBuf().

int dw::fltk::FltkImgbuf::scaledY ( int  ySrc)
private
void dw::fltk::FltkImgbuf::scaleRow ( int  row,
const core::byte data 
)
inline

Referenced by copyRow().

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.

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

Implements dw::core::Imgbuf.

Member Data Documentation

int dw::fltk::FltkImgbuf::bpp
private

Referenced by init().

lout::misc::BitSet* dw::fltk::FltkImgbuf::copiedRows
private

Referenced by init(), and newScan().

bool dw::fltk::FltkImgbuf::deleteOnUnref
private
int dw::fltk::FltkImgbuf::height
private

Referenced by getScaledBuf(), and init().

uchar* dw::fltk::FltkImgbuf::rawdata
private

Referenced by init().

int dw::fltk::FltkImgbuf::refCount
private
FltkImgbuf* dw::fltk::FltkImgbuf::root
private

Referenced by isRoot().

lout::container::typed::List<FltkImgbuf>* dw::fltk::FltkImgbuf::scaledBuffers
private
Type dw::fltk::FltkImgbuf::type
private
int dw::fltk::FltkImgbuf::width
private

Referenced by getScaledBuf(), and init().


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