From 44208838af27bb819a5b326607009d41c00cb943 Mon Sep 17 00:00:00 2001 From: fluxgen <fluxgen> Date: Fri, 22 Aug 2003 15:02:33 +0000 Subject: new theme item window.title.height, Window.Title.Height --- src/FbWinFrameTheme.cc | 7 +++++-- src/FbWinFrameTheme.hh | 7 ++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/FbWinFrameTheme.cc b/src/FbWinFrameTheme.cc index 6a10ddf..728cd2d 100644 --- a/src/FbWinFrameTheme.cc +++ b/src/FbWinFrameTheme.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbWinFrameTheme.cc,v 1.8 2003/08/16 11:05:19 fluxgen Exp $ +// $Id: FbWinFrameTheme.cc,v 1.9 2003/08/22 15:02:33 fluxgen Exp $ #include "FbWinFrameTheme.hh" #include "App.hh" @@ -59,7 +59,10 @@ FbWinFrameTheme::FbWinFrameTheme(int screen_num): m_textjustify(*this, "window.justify", "Window.Justify"), m_shape_place(*this, "window.roundCorners", "Window.RoundCorners"), - m_alpha(*this, "window.alpha", "Window.Alpha") { + m_alpha(*this, "window.alpha", "Window.Alpha"), + m_title_height(*this, "window.title.height", "Window.Title.Height") { + + *m_title_height = 0; // set defaults m_font->load("fixed"); *m_alpha = 255; diff --git a/src/FbWinFrameTheme.hh b/src/FbWinFrameTheme.hh index 903dfd7..08d19a9 100644 --- a/src/FbWinFrameTheme.hh +++ b/src/FbWinFrameTheme.hh @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbWinFrameTheme.hh,v 1.7 2003/08/04 12:49:20 fluxgen Exp $ +// $Id: FbWinFrameTheme.hh,v 1.8 2003/08/22 15:02:33 fluxgen Exp $ #ifndef FBWINFRAMETHEME_HH #define FBWINFRAMETHEME_HH @@ -91,6 +91,7 @@ public: unsigned char alpha() const { return *m_alpha; } + unsigned int titleHeight() const { return *m_title_height; } private: FbTk::ThemeItem<FbTk::Texture> m_label_focus, m_label_unfocus; FbTk::ThemeItem<FbTk::Texture> m_title_focus, m_title_unfocus; @@ -106,8 +107,8 @@ private: FbTk::ThemeItem<FbTk::Justify> m_textjustify; FbTk::ThemeItem<Shape::ShapePlace> m_shape_place; - FbTk::ThemeItem<int> m_alpha; - + FbTk::ThemeItem<int> m_alpha, m_title_height; + GC m_label_text_focus_gc, m_label_text_unfocus_gc; GC m_button_pic_focus_gc, m_button_pic_unfocus_gc; -- cgit v0.11.2