org.kde.koala
public class KPixmapSplitter extends Object implements QtSupport
KPixmapSplitter splitter; splitter.setPixmap( somePixmap ); splitter.setItemSize( QSize( 20, 10 )); QPixmap item( 20, 10 ); item.fill( Qt.white ); QRect rect = splitter.coordinates( 4 ); if ( !rect.isEmpty() ) bitBlt( &item, QPoint(0,0), &somePixmap, rect, CopyROP );
UNKNOWN: A class to split a pixmap into several items.
Constructor Summary | |
---|---|
protected | KPixmapSplitter(Class dummy) |
KPixmapSplitter()
Constructor, does nothing but initialize some default-values. |
Method Summary | |
---|---|
QRect | coordinates(int pos) |
QRect | coordinates(char ch)
Overloaded for convenience. |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
protected void | finalize() Deletes the wrapped C++ instance |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
QSize | itemSize() |
QPixmap | pixmap() |
void | setHSpacing(int spacing)
If there is space between columns in the given pixmap, you have to
specify how many pixels there are. |
void | setItemSize(QSize size)
Sets the size of the items you want to get out of the given pixmap.
|
void | setPixmap(QPixmap pixmap)
Sets the pixmap to be split. |
void | setVSpacing(int spacing)
If there is space between rows in the given pixmap, you have to specify
how many pixels there are. |
UNKNOWN: Constructor, does nothing but initialize some default-values.
Returns: the coordinates of the item at position pos in the given pixmap.
UNKNOWN:
UNKNOWN: Overloaded for convenience.
Returns: the set size of the items (coordinates) you want to get out of the given pixmap.
UNKNOWN:
Returns: the pixmap that has been set via setPixmap().
UNKNOWN:
UNKNOWN: If there is space between columns in the given pixmap, you have to specify how many pixels there are.
size.
UNKNOWN: Sets the size of the items you want to get out of the given pixmap.
UNKNOWN: Sets the pixmap to be split.
UNKNOWN: If there is space between rows in the given pixmap, you have to specify how many pixels there are.