Object look-and-feel class. More...
#include <ilviews/gadgets/matrix.h>
Public Member Functions | |
virtual void | drawBackground (const IlvMatrix *, IlvPort *, const IlvTransformer *, const IlvRegion *) const |
Is called to draw the background of a matrix. More... | |
virtual void | drawFrame (const IlvMatrix *, IlvPort *, const IlvTransformer *, const IlvRegion *) const |
Is called to draw the frame of a matrix. More... | |
virtual void | drawItem (const IlvMatrix *, IlvPort *, IlUShort, IlUShort, const IlvRect &, const IlvRect &) const |
Is called to draw a matrix item. More... | |
virtual const IlvPalette * | getInsensitivePalette (const IlvMatrix *, const IlvAbstractMatrixItem *item) const |
Returns the palette used to draw the selection in the matrix. More... | |
virtual const IlvPalette * | getReliefPalette (const IlvMatrix *, const IlvAbstractMatrixItem *item) const |
Returns the palette used to draw the relief in the matrix. More... | |
virtual const IlvPalette * | getWindowBackground (const IlvMatrix *) const |
Returns the palette used to draw the background of the matrix. More... | |
virtual IlBoolean | handleMatrixEvent (IlvMatrix *, IlvEvent &) const |
Is called to handle the events of a matrix. More... | |
virtual void | itemBBox (const IlvMatrix *matrix, IlUShort col, IlUShort row, IlvRect &r, const IlvTransformer *t) const override |
Calculates matrix item bounding box. More... | |
virtual const IlvPalette * | stylePalette (const IlvPalette *base, const IlvMatrix *matrix, const IlvAbstractMatrixItem *item) const |
Adds look and feel styling to a palette. CSS look and feel specific, allows different style for each matrix item. Classic look and feel handlers return the palette unmodified. More... | |
Public Member Functions inherited from IlvMatrixLFHandler | |
IlvMatrixLFHandler (IlvLookFeelHandler *lfh) | |
Constructor. More... | |
virtual void | drawRelief (const IlvMatrix *matrix, IlUShort colno, IlUShort rowno, IlvPort *dst, const IlvRect &rect, const IlvRect *clip) const =0 |
Is called to draw the relief of a matrix item. More... | |
virtual void | drawSelection (const IlvMatrix *matrix, IlvPort *dst, const IlvRect &rect, const IlvRect *clip) const =0 |
Is called to draw the selection of a matrix item. More... | |
virtual const IlvPalette * | getSelectionPalette (const IlvMatrix *matrix, const IlvAbstractMatrixItem *item) const =0 |
Returns the palette used to draw the selection in the matrix. More... | |
virtual const IlvPalette * | getTextPalette (const IlvMatrix *, const IlvAbstractMatrixItem *item) const =0 |
Returns the palette used to draw the text in the matrix. More... | |
Object look-and-feel class.
Library: ilvadvgdt
The predefined object look-and-feel handlers of the matrix gadget are subclasses of this class. It defines several methods of the base class that are common to all predefined looks.
|
virtual |
Is called to draw the background of a matrix.
matrix | The matrix. |
dst | The destination port. |
t | The transformer. |
clip | The clipping region. |
Implements IlvMatrixLFHandler.
|
virtual |
Is called to draw the frame of a matrix.
matrix | The matrix. |
dst | The destination port. |
t | The transformer. |
clip | The clipping region. |
Implements IlvMatrixLFHandler.
|
virtual |
Is called to draw a matrix item.
matrix | The matrix. |
dst | The destination port. |
colno | The column number. |
rowno | The row number. |
itembbox | The rectangle where to draw the item. |
clip | The clipping rectangle. |
Implements IlvMatrixLFHandler.
Reimplemented in IlvMatrixCSSLFHandler.
|
virtual |
Returns the palette used to draw the selection in the matrix.
matrix | The matrix. |
item | Matrix item that the palette is used for. CSS look and feel specific, allows different style for each item. if set null, matrix style is used. Classic look and feel handlers ignore the parameter. |
IlvPalette
used to draw the relief in the matrix. Implements IlvMatrixLFHandler.
Reimplemented in IlvMatrixCSSLFHandler.
|
virtual |
Returns the palette used to draw the relief in the matrix.
matrix | The matrix. |
item | Matrix item that the palette is used for. CSS look and feel specific, allows different style for each item. if set null, matrix style is used. Classic look and feel handlers ignore the parameter. |
IlvPalette
used to draw the relief in the matrix. Implements IlvMatrixLFHandler.
Reimplemented in IlvMatrixCSSLFHandler.
|
virtual |
Returns the palette used to draw the background of the matrix.
matrix | The matrix. |
Implements IlvMatrixLFHandler.
|
virtual |
Is called to handle the events of a matrix.
matrix | The matrix. |
event | The event to handle. |
IlTrue
if the event has been consumed. Implements IlvMatrixLFHandler.
|
overridevirtual |
Calculates matrix item bounding box.
matrix | The matrix. |
col | Column |
row | Row |
r | Rect of item bbox |
t | Transformer |
Implements IlvMatrixLFHandler.
Reimplemented in IlvMatrixCSSLFHandler.
|
virtual |
Adds look and feel styling to a palette. CSS look and feel specific, allows different style for each matrix item. Classic look and feel handlers return the palette unmodified.
base | The palette that will be used as a base (default) |
matrix | The matrix. |
item | Matrix item that the palette is used for. |
IlvPalette
with styling. Implements IlvMatrixLFHandler.
Reimplemented in IlvMatrixCSSLFHandler.