#include <ScheditBitmap.h>
Classes | |
struct | BitmapHdr |
struct | Orient |
struct | SectionData |
struct | SectionDataLine |
Public Types | |
enum | eRotate { none, anti90, anti180, anti270 } |
Public Member Functions | |
ScheditBitmap (QCanvas *canvas, unsigned char *&puc) | |
virtual int | rtti () const |
void | drawTransformed (QPainter &painter) |
void | drawUntransformed (QPainter &painter) |
int | getExtension (void) |
QSize | getBmpSize (void) |
virtual bool | collidesWith (const QCanvasItem *other) const |
virtual bool | collidesWith (const QCanvasSprite *, const QCanvasPolygonalItem *, const QCanvasRectangle *, const QCanvasEllipse *, const QCanvasText *) const |
virtual void | draw (QPainter &painter) |
virtual QRect | boundingRect () const |
void | flipH (void) |
void | flipV (void) |
int | width (void) |
int | height (void) |
void | rotate (void) |
void | setRotation (eRotate orthoAngle) |
eRotate | rotation (void) |
QPixmap * | pixmap (void) |
void | setPixmap (QPixmap *_pm) |
Static Public Member Functions | |
static void | setup (KDialogBase *dlg) |
static void | readProperties (KConfig *config) |
static void | writeProperties (KConfig *config) |
static QFontMetrics & | getNumFontMetrics (void) |
static QFontMetrics & | getFunFontMetrics (void) |
Protected Attributes | |
eRotate | orthoAngle |
bool | bFlippedX |
bool | bFlippedY |
Static Protected Attributes | |
static QWMatrix | wmFlipH = QWMatrix ( -1, 0, 0, 1, 0, 0 ) |
static QWMatrix | wmFlipV = QWMatrix ( 1, 0, 0, -1, 0, 0 ) |
static QWMatrix | wmOrtho [4] |
QRect CanvasPixmap::boundingRect | ( | ) | const [virtual, inherited] |
Returns the bounding rectangle of the object
bool CanvasPixmap::collidesWith | ( | const QCanvasSprite * | cs, | |
const QCanvasPolygonalItem * | pi, | |||
const QCanvasRectangle * | cr, | |||
const QCanvasEllipse * | ce, | |||
const QCanvasText * | ct | |||
) | const [virtual, inherited] |
Determines if this object overlaps another QCanvasItem object
cs | QCanvasSprite object to check for overlap | |
pi | QCanvasPolygonalItem object to check for overlap | |
cr | QCanvasRectangle object to check for overlap | |
ce | QCanvasEllipse object to check for overlap | |
ct | QCanvasText object to check for overlap |
bool CanvasPixmap::collidesWith | ( | const QCanvasItem * | other | ) | const [virtual, inherited] |
Determines if this object overlaps another QCanvasItem object
other | The other object |
void CanvasPixmap::draw | ( | QPainter & | painter | ) | [virtual, inherited] |
Draw the object onto the canvas
painter |
void ScheditBitmap::drawTransformed | ( | QPainter & | painter | ) | [virtual] |
Stub to perform additional drawing before rotation
painter |
Reimplemented from CanvasPixmap.
void ScheditBitmap::drawUntransformed | ( | QPainter & | painter | ) | [virtual] |
Stub to perform additional drawing after rotation
painter |
Reimplemented from CanvasPixmap.
void CanvasPixmap::flipH | ( | void | ) | [inherited] |
Cause the pixmap to be flipped horizontally
none |
void CanvasPixmap::flipV | ( | void | ) | [inherited] |
Cause the pixmap to be flipped vertically
int CanvasPixmap::height | ( | void | ) | [inherited] |
Returns the height of the bitmap
none |
QPixmap * CanvasPixmap::pixmap | ( | void | ) | [inherited] |
Returns a pointer to the internal QPixmap object
none |
void CanvasPixmap::rotate | ( | void | ) | [inherited] |
Cause the pixmap to be rotated as previously specified
none |
CanvasPixmap::eRotate CanvasPixmap::rotation | ( | void | ) | [inherited] |
Return how far the pixmap is rotated (in 90 deg units)
none |
int ScheditBitmap::rtti | ( | void | ) | const [virtual] |
Unique representation of class derived from ScheditItem
none |
Reimplemented from CanvasPixmap.
void CanvasPixmap::setPixmap | ( | QPixmap * | _pm | ) | [inherited] |
Set the QPixmap object that is to be displayed
_pm | QPixmap object to display |
void CanvasPixmap::setRotation | ( | eRotate | _orthoAngle | ) | [inherited] |
Specifies the rotation of the pixmap (in 90 deg units)
_orthoAngle | Number of 90 deg steps |
int CanvasPixmap::width | ( | void | ) | [inherited] |
Returns the width of the object
none |
QWMatrix CanvasPixmap::wmOrtho [static, protected, inherited] |
Initial value:
{ QWMatrix ( 1, 0, 0, 1, 0, 0 ), QWMatrix ( 0, -1, 1, 0, 0, 0 ), QWMatrix ( -1, 0, 0, -1, 0, 0 ), QWMatrix ( 0, 1, -1, 0, 0, 0 ) }