/usr/share/sip/PyKDE4/plasma/theme.sip is in python-kde4-dev 4:4.13.0-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | // Copyright 2008 Simon Edwards <simon@simonzone.com>
// Generated by twine
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU Library General Public License as
// published by the Free Software Foundation; either version 2, or
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details
// You should have received a copy of the GNU Library General Public
// License along with this program; if not, write to the
// Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace Plasma
{
class Theme : QObject
{
%TypeHeaderCode
#include <plasma/theme.h>
%End
public:
enum ColorRole
{
TextColor,
HighlightColor,
BackgroundColor,
ButtonTextColor,
ButtonBackgroundColor,
LinkColor,
VisitedLinkColor,
ButtonHoverColor,
ButtonFocusColor,
ViewTextColor,
ViewBackgroundColor,
ViewHoverColor,
ViewFocusColor
};
enum FontRole
{
DefaultFont,
DesktopFont,
SmallestFont
};
static Plasma::Theme* defaultTheme ();
explicit Theme (QObject* parent /TransferThis/ = 0);
explicit Theme (const QString& themeName, QObject* parent /TransferThis/ = 0);
static Plasma::PackageStructure::Ptr packageStructure ();
static KPluginInfo::List listThemeInfo ();
void setThemeName (const QString& themeName);
QString themeName () const;
QString imagePath (const QString& name) const;
QString wallpaperPath (const QSize& size = QSize()) const;
bool currentThemeHasImage (const QString& name) const;
KSharedConfigPtr colorScheme () const;
QColor color (Plasma::Theme::ColorRole role) const;
void setFont (const QFont& font, Plasma::Theme::FontRole role = Plasma::Theme::DefaultFont);
QFont font (Plasma::Theme::FontRole role) const;
QFontMetrics fontMetrics () const;
bool windowTranslucencyEnabled () const;
void setUseGlobalSettings (bool useGlobal);
bool useGlobalSettings () const;
bool useNativeWidgetStyle () const;
bool findInCache (const QString& key, QPixmap& pix);
bool findInCache (const QString& key, QPixmap& pix, unsigned int lastModified);
void insertIntoCache (const QString& key, const QPixmap& pix);
void setCacheLimit (int kbytes);
bool findInRectsCache (const QString& image, const QString& element, QRectF& rect) const;
void insertIntoRectsCache (const QString& image, const QString& element, const QRectF& rect);
void invalidateRectsCache (const QString& image);
void releaseRectsCache (const QString& image);
signals:
void themeChanged ();
public:
void settingsChanged ();
~Theme ();
void insertIntoCache (const QString& key, const QPixmap& pix, const QString& id);
QString animationPath (const QString& name) const;
QString styleSheet (const QString& css = QString()) const;
QStringList listCachedRectKeys (const QString& image) const;
KUrl homepage () const;
int toolTipDelay () const;
};
// Theme
};
// Plasma
|