sptk2 logo
SPTK Home Page
Public Member Functions | Static Public Member Functions | List of all members
sptk::CThemeImageCollection Class Reference

A collection of theme images. More...

#include <CThemeImageCollection.h>

Public Member Functions

 CThemeImageCollection () noexcept
 Default constructor.
 
 ~CThemeImageCollection ()
 Destructor.
 
void clear ()
 Clears the collection.
 
void loadFromSptkTheme (const Strings &objectNames)
 Loads the collection from SPTK theme.
 
void loadFromGtkTheme (xdoc::Document &gtkTheme, const String &imagesXPath, const String &attribute="", const String &attributeValue="")
 Loads the collection from GTK theme.
 
int border (int ndx) const
 Returns border for a paticular index (0..3) More...
 
int * border ()
 Returns border sizes.
 
bool stretch () const
 Returns draw stretch flag.
 
CPngImageimage (CThemeImageState state) const
 Returns an image for a particular state. More...
 
CPngImageoverlayImage (CThemeImageState state) const
 Returns an overlay image for a particular state. More...
 

Static Public Member Functions

static std::string gtkFullFileName (std::string fileName)
 Returns full file name. More...
 

Detailed Description

A collection of theme images.

The images are stored for the different states of the object

Member Function Documentation

◆ border()

int sptk::CThemeImageCollection::border ( int  ndx) const
inline

Returns border for a paticular index (0..3)

Parameters
ndxint, border index

◆ gtkFullFileName()

static std::string sptk::CThemeImageCollection::gtkFullFileName ( std::string  fileName)
static

Returns full file name.

Parameters
fileNamestd::string, file name

◆ image()

CPngImage * sptk::CThemeImageCollection::image ( CThemeImageState  state) const

Returns an image for a particular state.

Parameters
stateCThemeImageState, image state

◆ overlayImage()

CPngImage * sptk::CThemeImageCollection::overlayImage ( CThemeImageState  state) const

Returns an overlay image for a particular state.

Parameters
stateCThemeImageState, image state

The documentation for this class was generated from the following file:

Fri Oct 14 2022 09:58:40: SPTK 5.4.1