aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/FbWinFrameTheme.cc9
-rw-r--r--src/FbWinFrameTheme.hh9
2 files changed, 16 insertions, 2 deletions
diff --git a/src/FbWinFrameTheme.cc b/src/FbWinFrameTheme.cc
index d42501c..e747c03 100644
--- a/src/FbWinFrameTheme.cc
+++ b/src/FbWinFrameTheme.cc
@@ -19,11 +19,13 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbWinFrameTheme.cc,v 1.3 2003/02/23 01:02:52 fluxgen Exp $ 22// $Id: FbWinFrameTheme.cc,v 1.4 2003/06/11 14:52:45 fluxgen Exp $
23 23
24#include "FbWinFrameTheme.hh" 24#include "FbWinFrameTheme.hh"
25#include "App.hh" 25#include "App.hh"
26 26
27#include <X11/cursorfont.h>
28
27#include <iostream> 29#include <iostream>
28 30
29FbWinFrameTheme::FbWinFrameTheme(int screen_num): 31FbWinFrameTheme::FbWinFrameTheme(int screen_num):
@@ -62,6 +64,11 @@ FbWinFrameTheme::FbWinFrameTheme(int screen_num):
62 m_label_text_unfocus_gc = XCreateGC(disp, rootwin, 0, 0); 64 m_label_text_unfocus_gc = XCreateGC(disp, rootwin, 0, 0);
63 m_button_pic_focus_gc = XCreateGC(disp, rootwin, 0, 0); 65 m_button_pic_focus_gc = XCreateGC(disp, rootwin, 0, 0);
64 m_button_pic_unfocus_gc = XCreateGC(disp, rootwin, 0, 0); 66 m_button_pic_unfocus_gc = XCreateGC(disp, rootwin, 0, 0);
67 // create cursors
68 m_cursor_move = XCreateFontCursor(disp, XC_fleur);
69 m_cursor_lower_left_angle = XCreateFontCursor(disp, XC_ll_angle);
70 m_cursor_lower_right_angle = XCreateFontCursor(disp, XC_lr_angle);
71
65} 72}
66 73
67FbWinFrameTheme::~FbWinFrameTheme() { 74FbWinFrameTheme::~FbWinFrameTheme() {
diff --git a/src/FbWinFrameTheme.hh b/src/FbWinFrameTheme.hh
index 7ffe99d..5bcf90e 100644
--- a/src/FbWinFrameTheme.hh
+++ b/src/FbWinFrameTheme.hh
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbWinFrameTheme.hh,v 1.4 2003/02/23 01:03:56 fluxgen Exp $ 22// $Id: FbWinFrameTheme.hh,v 1.5 2003/06/11 14:52:25 fluxgen Exp $
23 23
24#ifndef FBWINFRAMETHEME_HH 24#ifndef FBWINFRAMETHEME_HH
25#define FBWINFRAMETHEME_HH 25#define FBWINFRAMETHEME_HH
@@ -81,6 +81,11 @@ public:
81 81
82 void addListener(FbTk::Observer &obs) { m_theme_change.attach(&obs); } 82 void addListener(FbTk::Observer &obs) { m_theme_change.attach(&obs); }
83 void removeListener(FbTk::Observer &obs) { m_theme_change.detach(&obs); } 83 void removeListener(FbTk::Observer &obs) { m_theme_change.detach(&obs); }
84
85 inline Cursor moveCursor() const { return m_cursor_move; }
86 inline Cursor lowerLeftAngleCursor() const { return m_cursor_lower_left_angle; }
87 inline Cursor lowerRightAngleCursor() const { return m_cursor_lower_right_angle; }
88
84private: 89private:
85 FbTk::ThemeItem<FbTk::Texture> m_label_focus, m_label_unfocus; 90 FbTk::ThemeItem<FbTk::Texture> m_label_focus, m_label_unfocus;
86 FbTk::ThemeItem<FbTk::Texture> m_title_focus, m_title_unfocus; 91 FbTk::ThemeItem<FbTk::Texture> m_title_focus, m_title_unfocus;
@@ -98,6 +103,8 @@ private:
98 GC m_label_text_focus_gc, m_label_text_unfocus_gc; 103 GC m_label_text_focus_gc, m_label_text_unfocus_gc;
99 GC m_button_pic_focus_gc, m_button_pic_unfocus_gc; 104 GC m_button_pic_focus_gc, m_button_pic_unfocus_gc;
100 FbTk::Subject m_theme_change; 105 FbTk::Subject m_theme_change;
106
107 Cursor m_cursor_move, m_cursor_lower_left_angle, m_cursor_lower_right_angle;
101}; 108};
102 109
103#endif // FBWINFRAMETHEME_HH 110#endif // FBWINFRAMETHEME_HH