news download themes documentation links










IconbarTheme.hh

00001 // IconbarTheme.hh
00002 // Copyright (c) 2003 Henrik Kinnunen (fluxgen at users.sourceforge.net)
00003 //                and Simon Bowden    (rathnor at users.sourceforge.net)
00004 //
00005 // Permission is hereby granted, free of charge, to any person obtaining a
00006 // copy of this software and associated documentation files (the "Software"),
00007 // to deal in the Software without restriction, including without limitation
00008 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
00009 // and/or sell copies of the Software, and to permit persons to whom the
00010 // Software is furnished to do so, subject to the following conditions:
00011 //
00012 // The above copyright notice and this permission notice shall be included in
00013 // all copies or substantial portions of the Software.
00014 //
00015 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00016 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00017 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
00018 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00019 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
00020 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
00021 // DEALINGS IN THE SOFTWARE.
00022 
00023 // $Id: IconbarTheme.hh,v 1.6 2004/01/13 14:41:32 rathnor Exp $
00024 
00025 #ifndef ICONBARTHEME_HH
00026 #define ICONBARTHEME_HH
00027 
00028 #include "FbTk/Theme.hh"
00029 #include "FbTk/Texture.hh"
00030 
00031 #include "TextTheme.hh"
00032 #include "BorderTheme.hh"
00033 
00034 class IconbarTheme:public FbTk::Theme {
00035 public:
00036     IconbarTheme(int screen_num, const std::string &name, const std::string &altname);
00037     virtual ~IconbarTheme();
00038 
00039     void reconfigTheme();
00040     bool fallback(FbTk::ThemeItem_base &item);
00041 
00042     void setAntialias(bool antialias);
00043 
00044     const TextTheme &focusedText() const { return m_focused_text; }
00045     const TextTheme &unfocusedText() const { return m_unfocused_text; }
00046 
00047     const BorderTheme &focusedBorder() const { return m_focused_border; }
00048     const BorderTheme &unfocusedBorder() const { return m_unfocused_border; }
00049     const BorderTheme &border() const { return m_border; }
00050     
00051     const FbTk::Texture &focusedTexture() const { return *m_focused_texture; }
00052     const FbTk::Texture &unfocusedTexture() const { return *m_unfocused_texture; }
00053     const FbTk::Texture &emptyTexture() const { return *m_empty_texture; }
00054     inline unsigned char alpha() const { return *m_alpha; }
00055 
00056 private:
00057     FbTk::ThemeItem<FbTk::Texture> m_focused_texture, m_unfocused_texture, m_empty_texture;
00058     BorderTheme m_focused_border, m_unfocused_border, m_border;
00059     TextTheme m_focused_text, m_unfocused_text;
00060     std::string m_name;
00061     FbTk::ThemeItem<int> m_alpha;
00062 };
00063 
00064 #endif  // ICONBARTHEME_HH

Fluxbox CVS-Jan-2003




      



Got comments about the page? Send them to webmaster.
If you have general Fluxbox related questions ask them on our irc channel or mailing lists.

Show Source








Designed by aLEczapKA