CFrameBuffer: outsource code for icon path detecting

Unified handling and makes it possible to use in other objects.
This commit is contained in:
2016-03-17 10:25:26 +01:00
parent 95885c4f6e
commit 97343d1190
2 changed files with 15 additions and 8 deletions

View File

@@ -226,6 +226,7 @@ class CFrameBuffer : public sigc::trackable
void setIconBasePath(const std::string & iconPath);
std::string getIconBasePath(){return iconBasePath;};
std::string getIconPath(std::string icon_name, std::string file_type = "png");
void getIconSize(const char * const filename, int* width, int *height);
/* h is the height of the target "window", if != 0 the icon gets centered in that window */