class KPixmapSplitter |
|
|
A class to split a pixmap into several items. If you have a pixmap containing several items (icons), you can use this class to get the coordinates of each item. For example, if you have a pixmap with 25 items and you want to get the 4th item as a pixmap (every item being 20x10 pixels): KPixmapSplitter splitter; splitter.setPixmap( somePixmap ); splitter.setItemSize( QSize( 20, 10 ));
Author Carsten Pfeiffer |
|
Constructor, does nothing but initialize some default-values. |
|
|
Returns the coordinates of the item at position pos in the given pixmap. |
|
Overloaded for convenience. Returns the item at the position of the given character (when using a latin1 font-pixmap) |
|
Returns the set size of the items (coordinates) you want to get out of the given pixmap. |
|
Returns the pixmap that has been set via setPixmap(). |
|
If there is space between columns in the given pixmap, you have to specify how many pixels there are. |
|
Sets the size of the items you want to get out of the given pixmap. #coordinates(int) will have the width and height of exactly this size. |
|
Sets the pixmap to be split. |
|
If there is space between rows in the given pixmap, you have to specify how many pixels there are. |