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 (const QString& name, const QString& appName=QString::null)

KIconTheme

Load an icon theme by name.

 ~KIconTheme ()

~KIconTheme

QString  name ()

name

[const]

The stylized name of the icon theme.

QString  description ()

description

[const]

A description for the icon theme.

QString  example ()

example

[const]

Return the name of the "example" icon.

QString  screenshot ()

screenshot

[const]

Return the name of the screenshot.

QString  linkOverlay ()

linkOverlay

[const]

Returns the name of this theme's link overlay.

QString  zipOverlay ()

zipOverlay

[const]

Returns the name of this theme's zip overlay.

QString  lockOverlay ()

lockOverlay

[const]

Returns the name of this theme's lock overlay.

QString  dir ()

dir

[const]

Returns the toplevel theme directory.

QStringList  inherits ()

inherits

[const]

The themes this icon theme falls back on.

bool  isValid ()

isValid

[const]

The icon theme exists?

int  depth ()

depth

[const]

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

int  defaultSize (KIcon::Group group)

defaultSize

[const]

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  querySizes (KIcon::Group group)

querySizes

[const]

Query available sizes for a group.

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

queryIcons

[const]

Query available icons for a size and context.

QStringList  queryIconsByContext (int size, KIcon::Context context = KIcon::Any)

queryIconsByContext

[const]

Query available icons for a context and preferred size.

KIcon  iconPath (const QString& name, int size, KIcon::MatchType match)

iconPath

[const]

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 ()

list

[static]

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

QString  current ()

current

[static]

Returns the current icon theme.

void  reconfigure ()

reconfigure

[static]


Generated by: dfaure on faure on Tue Apr 16 08:49:00 2002, using kdoc 2.0a53.