diff options
author | mathias <mathias> | 2004-12-21 23:42:09 (GMT) |
---|---|---|
committer | mathias <mathias> | 2004-12-21 23:42:09 (GMT) |
commit | bc7c988561f79edb03b2ece80bb4ba0c8c73fc2e (patch) | |
tree | a48f394504f8b44cdab668ef69daf054c178500c /src/FbTk/Image.hh | |
parent | 7e41a1494a65ecdb05c7a34c274693cbd950647f (diff) | |
download | fluxbox_pavel-bc7c988561f79edb03b2ece80bb4ba0c8c73fc2e.zip fluxbox_pavel-bc7c988561f79edb03b2ece80bb4ba0c8c73fc2e.tar.bz2 |
adds imlib2-support to fluxbox: allows us to load several imageformats
besides xpm. to get imlib2 support in fluxbox one has to
./configure --enable-imblib2
default is disabled. a fluxbox-binary that supports imlib2 will have
IMLIB2 in "fluxbox -info"-output
explanation to the changed files:
* xft.m4 -> acinclude.m4 + added ac_path_generic.m4
(from http://ac-archive.sourceforge.net/Miscellaneous/ac_path_generic.html)
* configure.in, Makefile.am, src/FbTk/Makefile.am changed to handle
imlib2-support
* Font.cc/hh Image.cc/hh App.cc fluxbox.cc consistent way of init for global
stuff for fonts and imagehandlers.
* rest of changes just add the imlib2-code, pretty straightforward
Diffstat (limited to 'src/FbTk/Image.hh')
-rw-r--r-- | src/FbTk/Image.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/FbTk/Image.hh b/src/FbTk/Image.hh index 6e0bf53..eaa66ae 100644 --- a/src/FbTk/Image.hh +++ b/src/FbTk/Image.hh | |||
@@ -36,6 +36,13 @@ class PixmapWithMask; | |||
36 | /// loads images | 36 | /// loads images |
37 | class Image { | 37 | class Image { |
38 | public: | 38 | public: |
39 | |||
40 | /// called at FbTk::App creation time, init some internal stuff | ||
41 | static void init(); | ||
42 | |||
43 | /// called at FbTk:App destruction time, frees stuff allocated by init() | ||
44 | static void shutdown(); | ||
45 | |||
39 | /// @return an instance of PixmapWithMask on success, 0 on failure | 46 | /// @return an instance of PixmapWithMask on success, 0 on failure |
40 | static PixmapWithMask *load(const std::string &filename, int screen_num); | 47 | static PixmapWithMask *load(const std::string &filename, int screen_num); |
41 | /// for register file type and imagebase | 48 | /// for register file type and imagebase |