Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

GraphicDevice32 Class Reference

#include </home/clem/local/src/opie/core/multimedia/opieplayer/libflash/graphic32.h>

Inheritance diagram for GraphicDevice32:

Inheritance graph
[legend]
Collaboration diagram for GraphicDevice32:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 GraphicDevice32 (FlashDisplay *fd)
void clearCanvas ()
void fillLineAA (FillStyleDef *f, long y, long start, long end)
void fillLine (FillStyleDef *f, long y, long start, long end)
void fillLineBitmap (FillStyleDef *f, long y, long start, long end)
void fillLineLG (Gradient *grad, long y, long start, long end)
void fillLineRG (Gradient *grad, long y, long start, long end)
void drawLine (long x1, long y1, long x2, long y2, long width)

Private Member Functions

long allocColor (Color color)

Constructor & Destructor Documentation

GraphicDevice32::GraphicDevice32 FlashDisplay fd  ) 
 

Definition at line 35 of file graphic32.cc.


Member Function Documentation

long GraphicDevice32::allocColor Color  color  )  [private, virtual]
 

Reimplemented from GraphicDevice.

Definition at line 40 of file graphic32.cc.

References Color::blue, Color::green, and Color::red.

Referenced by clearCanvas(), and drawLine().

void GraphicDevice32::clearCanvas  )  [virtual]
 

Reimplemented from GraphicDevice.

Definition at line 46 of file graphic32.cc.

References allocColor(), GraphicDevice::backgroundColor, GraphicDevice::bgInitialized, GraphicDevice::bpl, GraphicDevice::canvasBuffer, FlashDisplay::clip_height, GraphicDevice::clip_rect, FlashDisplay::clip_width, FlashDisplay::clip_x, FlashDisplay::clip_y, FlashDisplay::flash_refresh, GraphicDevice::flashDisplay, p, Rect::xmax, Rect::xmin, Rect::ymax, and Rect::ymin.

void GraphicDevice32::drawLine long  x1,
long  y1,
long  x2,
long  y2,
long  width
[virtual]
 

Reimplemented from GraphicDevice.

Definition at line 498 of file graphic32.cc.

References allocColor(), Color::alpha, alpha, ALPHA_OPAQUE, GraphicDevice::bpl, GraphicDevice::canvasBuffer, GraphicDevice::clip_rect, DRAWLINE, GraphicDevice::foregroundColor, FRAC_BITS, PUTPIXEL, Rect::xmax, Rect::xmin, Rect::ymax, and Rect::ymin.

void GraphicDevice32::fillLine FillStyleDef f,
long  y,
long  start,
long  end
[virtual]
 

Reimplemented from GraphicDevice.

Definition at line 180 of file graphic32.cc.

References Color::alpha, alpha, ALPHA_OPAQUE, GraphicDevice::bpl, GraphicDevice::canvasBuffer, GraphicDevice::clip(), FillStyleDef::color, FRAC_BITS, mix_alpha(), and Color::pixel.

void GraphicDevice32::fillLineAA FillStyleDef f,
long  y,
long  start,
long  end
[virtual]
 

Reimplemented from GraphicDevice.

Definition at line 105 of file graphic32.cc.

References alpha, ALPHA_OPAQUE, GraphicDevice::bpl, GraphicDevice::canvasBuffer, GraphicDevice::clip(), FRAC, FRAC_BITS, and mix_alpha().

void GraphicDevice32::fillLineBitmap FillStyleDef f,
long  y,
long  start,
long  end
[virtual]
 

Reimplemented from GraphicDevice.

Definition at line 211 of file graphic32.cc.

References Matrix::a, Bitmap::alpha_buf, FillStyleDef::alpha_table, Matrix::b, FillStyleDef::bitmap, FillStyleDef::bitmap_matrix, Bitmap::bpl, GraphicDevice::bpl, Matrix::c, GraphicDevice::canvasBuffer, GraphicDevice::clip(), FillStyleDef::cmap, Matrix::d, FRAC, Bitmap::height, mix_alpha(), NULL, p, Color::pixel, Bitmap::pixels, Matrix::tx, Matrix::ty, and Bitmap::width.

void GraphicDevice32::fillLineLG Gradient grad,
long  y,
long  start,
long  end
[virtual]
 

Reimplemented from GraphicDevice.

Definition at line 291 of file graphic32.cc.

References Matrix::a, Color::alpha, Matrix::b, GraphicDevice::bpl, GraphicDevice::canvasBuffer, GraphicDevice::clip(), FRAC, FRAC_BITS, Gradient::has_alpha, Gradient::imat, mix_alpha(), Color::pixel, Gradient::ramp, Matrix::tx, and v.

void GraphicDevice32::fillLineRG Gradient grad,
long  y,
long  start,
long  end
[virtual]
 

Reimplemented from GraphicDevice.

Definition at line 398 of file graphic32.cc.

References Matrix::a, Color::alpha, Matrix::b, GraphicDevice::bpl, Matrix::c, GraphicDevice::canvasBuffer, GraphicDevice::clip(), Matrix::d, FRAC, FRAC_BITS, Gradient::has_alpha, Gradient::imat, mix_alpha(), Color::pixel, Gradient::ramp, SQRT, Matrix::tx, Matrix::ty, and X.


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:34:27 2005 for OPIE by  doxygen 1.4.2