• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kgoldrunner

KGrTheme Class Reference

#include <kgrtheme.h>

List of all members.


Detailed Description

KGrTheme handles KGoldrunner theme management.

Definition at line 30 of file kgrtheme.h.


Public Member Functions

 KGrTheme (const QString &systemDataDir)
bool load (const QString &themeFilepath)
QList< QPixmap > tiles (unsigned int size)
QList< QPixmap > hero (unsigned int size)
QList< QPixmap > enemy (unsigned int size)
QImage background (unsigned int width, unsigned int height, unsigned int variant)
bool isBorderRequired () const
bool isWithBackground () const
bool multipleBackgrounds () const
QColor borderColor ()
QColor textColor ()

Constructor & Destructor Documentation

KGrTheme::KGrTheme ( const QString &  systemDataDir  ) 

Definition at line 27 of file kgrtheme.cpp.


Member Function Documentation

bool KGrTheme::load ( const QString &  themeFilepath  ) 

Load a theme given the name of its .desktop file.

Definition at line 38 of file kgrtheme.cpp.

QList< QPixmap > KGrTheme::tiles ( unsigned int  size  ) 

Given the tile size.

Parameters:
size,returns the list of themed tiles.

Definition at line 196 of file kgrtheme.cpp.

QList< QPixmap > KGrTheme::hero ( unsigned int  size  ) 

Given the tile size.

Parameters:
size,returns the list of hero frames.

Definition at line 134 of file kgrtheme.cpp.

QList< QPixmap > KGrTheme::enemy ( unsigned int  size  ) 

Given the tile size.

Parameters:
size,returns the list of enemy frames.

Definition at line 143 of file kgrtheme.cpp.

QImage KGrTheme::background ( unsigned int  width,
unsigned int  height,
unsigned int  variant 
)

Prepares an image with the background variant.

Parameters:
variant with size
width and
height. 

Definition at line 113 of file kgrtheme.cpp.

bool KGrTheme::isBorderRequired (  )  const [inline]

Definition at line 62 of file kgrtheme.h.

bool KGrTheme::isWithBackground (  )  const [inline]

Find out if the theme has a background picture.

Definition at line 67 of file kgrtheme.h.

bool KGrTheme::multipleBackgrounds (  )  const [inline]

Find out if the theme has a multiple background pictures.

Definition at line 72 of file kgrtheme.h.

QColor KGrTheme::borderColor (  )  [inline]

Obtain the theme defined border color.

Definition at line 77 of file kgrtheme.h.

QColor KGrTheme::textColor (  )  [inline]

Obtain the theme defined text color.

Definition at line 82 of file kgrtheme.h.


The documentation for this class was generated from the following files:
  • kgrtheme.h
  • kgrtheme.cpp

kgoldrunner

Skip menu "kgoldrunner"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

API Reference

Skip menu "API Reference"
  • kblackbox
  • kgoldrunner
  • kmahjongg
  • ksquares
  • libkdegames
  •   highscore
  •   kgame
  •   kggzgames
  •   kggzmod
  •   kggznet
  • libkmahjongg
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal