class KIconTheme

Class to use/access icon themes in KDE. More...

Definition#include <kicontheme.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Static Methods


Detailed Description

Class to use/access icon themes in KDE. This class is used by the iconloader but can be used by others too.

 KIconTheme (QString name, QString appName=QString::null)

Load an icon theme by name.

QString  name ()

The stylized name of the icont theme.

QString  description ()

A description for the icon theme.

QString  example ()

Return the name of the "example" icon.

QString  screenshot ()

Return the name of the screenshot.

QString  dir ()

Returns the toplevel theme directory.

QStringList  inherits ()

The themes this icon theme falls back on.

bool  isValid ()

The icon theme exists?

int  depth ()

The mimimum display depth required for this theme. This can either be 8 or 32

int  defaultSize (int group)

The default size of this theme for a certain icon group.

Parameters:
groupThe icon group. See KIcon::Group.

Returns: The default size in pixels for the given icon group.

QValueList<int>  querySizes (int group)

Query available sizes for a group.

QStringList  queryIcons (int size, int context = KIcon::Any)

Query available icons for a size and context.

KIcon  iconPath (QString name, int size, int match)

Lookup an icon in the theme.

Parameters:
nameThe name of the icon, without extension.
sizeThe desired size of the icon.
matchThe matching mode. KIcon::MatchExact returns an icon only if matches exactly. KIcon::MatchBest returns the best matching icon.

Returns: A KIcon class that describes the icon. If an icon is found, KIcon::isValid will return true, and false otherwise.

QStringList  list ()

[static]

List all icon themes installed on the system, global and local.

QString  current ()

[static]

Returns the current icon theme.


Generated by: root@porky.devel.redhat.com on Wed May 10 08:56:36 2000, using kdoc 2.0a35.