29#include <sptk5/gui/CPngImage.h>
30#include <sptk5/gui/CThemeImageState.h>
31#include <sptk5/xdoc/Document.h>
55 CPngImage* m_overlayImages[MAX_IMAGE_STATES];
96 const String& attributeValue =
"");
104 return m_border[ndx];
PNG image that is initialized from the memory buffer.
Definition: CPngImage.h:53
A collection of theme images.
Definition: CThemeImageCollection.h:46
static std::string gtkFullFileName(std::string fileName)
Returns full file name.
void clear()
Clears the collection.
CPngImage * image(CThemeImageState state) const
Returns an image for a particular state.
bool stretch() const
Returns draw stretch flag.
Definition: CThemeImageCollection.h:118
CPngImage * overlayImage(CThemeImageState state) const
Returns an overlay image for a particular state.
void loadFromGtkTheme(xdoc::Document >kTheme, const String &imagesXPath, const String &attribute="", const String &attributeValue="")
Loads the collection from GTK theme.
int * border()
Returns border sizes.
Definition: CThemeImageCollection.h:110
void loadFromSptkTheme(const Strings &objectNames)
Loads the collection from SPTK theme.
int border(int ndx) const
Returns border for a paticular index (0..3)
Definition: CThemeImageCollection.h:102
CThemeImageCollection() noexcept
Default constructor.
Definition: Document.h:34
CThemeImageState
Theme button type - defines which routine to use for which FLTK button type.
Definition: CThemeImageState.h:45