From 313bc86431fb66231e835f7c01398cd566de3246 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Thu, 10 Jul 2003 11:38:12 +0000 Subject: added shape item --- src/FbWinFrameTheme.cc | 6 ++++-- src/FbWinFrameTheme.hh | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/FbWinFrameTheme.cc b/src/FbWinFrameTheme.cc index e747c03..c084748 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.4 2003/06/11 14:52:45 fluxgen Exp $ +// $Id: FbWinFrameTheme.cc,v 1.5 2003/07/10 11:38:12 fluxgen Exp $ #include "FbWinFrameTheme.hh" #include "App.hh" @@ -56,7 +56,9 @@ FbWinFrameTheme::FbWinFrameTheme(int screen_num): m_button_unfocus_color(*this, "window.button.unfocus.picColor", "Window.Button.Unfocus.PicColor"), m_font(*this, "window.font", "Window.Font"), - m_textjustify(*this, "window.justify", "Window.Justify") { + m_textjustify(*this, "window.justify", "Window.Justify"), + m_shape_place(*this, "window.shape", "Window.Shape") { + // create GCs Display *disp = FbTk::App::instance()->display(); Window rootwin = RootWindow(disp, screen_num); diff --git a/src/FbWinFrameTheme.hh b/src/FbWinFrameTheme.hh index 5bcf90e..6acf395 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.5 2003/06/11 14:52:25 fluxgen Exp $ +// $Id: FbWinFrameTheme.hh,v 1.6 2003/07/10 11:38:12 fluxgen Exp $ #ifndef FBWINFRAMETHEME_HH #define FBWINFRAMETHEME_HH @@ -30,6 +30,7 @@ #include "Color.hh" #include "FbTk/Theme.hh" #include "Subject.hh" +#include "Shape.hh" class FbWinFrameTheme: public FbTk::Theme { public: @@ -86,6 +87,7 @@ public: inline Cursor lowerLeftAngleCursor() const { return m_cursor_lower_left_angle; } inline Cursor lowerRightAngleCursor() const { return m_cursor_lower_right_angle; } + inline Shape::ShapePlace shapePlace() const { return *m_shape_place; } private: FbTk::ThemeItem m_label_focus, m_label_unfocus; FbTk::ThemeItem m_title_focus, m_title_unfocus; @@ -99,6 +101,7 @@ private: FbTk::ThemeItem m_font; FbTk::ThemeItem m_textjustify; + FbTk::ThemeItem m_shape_place; 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