Méthode |
Description |
|
Color ( Plasma role ) : QColor |
Returns the text color to be used by items resting on the background @arg role which role (usage pattern) to get the color for |
|
ColorScheme ( ) : Kimono.KSharedConfig |
Returns the color scheme configurationthat goes along this theme. This can be used with KStatefulBrush and KColorScheme to determine the proper colours to use along with the visual elements in this theme. |
|
CurrentThemeHasImage ( string name ) : bool |
Checks if this theme has an image named in a certain way @arg name the name of the file in the theme directory (without the ".svg" part or a leading slash) |
|
DefaultTheme ( ) : Theme |
Singleton pattern accessor |
|
Dispose ( ) : void |
|
|
FindInCache ( string key, QPixmap pix ) : bool |
Tries to load pixmap with the specified key from cache. name="key" the name to use in the cache for this image name="pix" the pixmap object to populate with the resulting data if found |
|
FindInCache ( string key, QPixmap pix, uint lastModified ) : bool |
This is an overloaded member provided to check with file timestamp where cache is still valid. name="key" the name to use in the cache for this image name="pix" the pixmap object to populate with the resulting data if found name="lastModified" if non-zero, the time stamp is also checked on the file, and must be newer than the timestamp to be loaded |
|
FindInRectsCache ( string image, string element, Qyoto.QRectF rect ) : bool |
Tries to load the rect of a sub element from a disk cache @arg image path of the image we want to check @arg element sub element we want to retrieve @arg rect output parameter of the element rect found in cache if not found or if we are sure it doesn't exist it will be QRect() |
|
Font ( Plasma role ) : QFont |
Returns the font to be used by themed items @arg role which role (usage pattern) to get the font for |
|
FontMetrics ( ) : QFontMetrics |
Returns the font metrics for the font to be used by themed items |
|
ImagePath ( string name ) : string |
Retrieve the path for an SVG image in the current theme. @arg name the name of the file in the theme directory (without the ".svg" part or a leading slash) |
|
InsertIntoCache ( string key, QPixmap pix ) : void |
Insert specified pixmap into the cache. If the cache already contains pixmap with the specified key then it is overwritten. name="key" the name to use in the cache for this pixmap name="pix" the pixmap data to store in the cache |
|
InsertIntoCache ( string key, QPixmap pix, string id ) : void |
Insert specified pixmap into the cache. If the cache already contains pixmap with the specified key then it is overwritten. The actual insert is delayed for optimization reasons and the id parameter is used to discard repeated inserts in the delay time, useful when for instance the graphics to inser comes from a quickly resizing object: the frames between the start and destination sizes aren't useful in the cache and just cause overhead. name="key" the name to use in the cache for this pixmap name="pix" the pixmap data to store in the cache name="id" a name that identifies the caller class of this function in an unique fashion |
|
InsertIntoRectsCache ( string image, string element, Qyoto.QRectF rect ) : void |
Inserts a rectangle of a sub element of an image into a disk cache @arg image path of the image we want to insert information @arg element sub element we want insert the rect @arg rect element rectangle |
|
InvalidateRectsCache ( string image ) : void |
Discards all the information about a given image from the rectangle disk cache @arg image the path to the image the cache is assoiated with |
|
ListThemeInfo ( ) : List |
|
|
PackageStructure ( ) : Plasma.PackageStructure |
|
|
ReleaseRectsCache ( string image ) : void |
Frees up memory used by cached information for a given image without removing the permenant record of it on disk. @arg image the path to the image the cache is assoiated with |
|
SetCacheLimit ( int kbytes ) : void |
Sets the maximum size of the cache (in kilobytes). If cache gets bigger the limit then some entries are removed Setting cache limit to 0 disables automatic cache size limiting. Note that the cleanup might not be done immediately, so the cache might temporarily (for a few seconds) grow bigger than the limit. |
|
SetFont ( QFont font ) : void |
|
|
SetFont ( QFont font, Plasma role ) : void |
Sets the default font to be used with themed items. Defaults to the application wide default font. @arg font the new font @arg role which role (usage pattern) to set the font for |
|
SetUseGlobalSettings ( bool useGlobal ) : void |
Tells the theme whether to follow the global settings or use application specific settings @arg useGlobal pass in true to follow the global settings |
|
Theme ( QObject parent ) : System |
Default constructor. Usually you want to use the singleton instead. |
|
Theme ( string themeName ) : System |
|
|
Theme ( string themeName, QObject parent ) : System |
Construct a theme. Usually you want to use the singleton instead. |
|
UseGlobalSettings ( ) : bool |
|
|
UseNativeWidgetStyle ( ) : bool |
|
|
WallpaperPath ( ) : string |
|
|
WallpaperPath ( Qyoto.QSize size ) : string |
Retrieves the default wallpaper associated with this theme. @arg size the target height and width of the wallpaper; if an invalid size is passed in, then a default size will be provided instead. |
|
WindowTranslucencyEnabled ( ) : bool |
Returns if the window manager effects (e.g. translucency, compositing) is active or not |
|