From 32cdc02556ac89a4ec75e24d481c179c909114c0 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Wed, 11 Jun 2003 14:52:45 +0000 Subject: added cursor --- src/FbWinFrameTheme.cc | 9 ++++++++- src/FbWinFrameTheme.hh | 9 ++++++++- 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 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbWinFrameTheme.cc,v 1.3 2003/02/23 01:02:52 fluxgen Exp $ +// $Id: FbWinFrameTheme.cc,v 1.4 2003/06/11 14:52:45 fluxgen Exp $ #include "FbWinFrameTheme.hh" #include "App.hh" +#include + #include FbWinFrameTheme::FbWinFrameTheme(int screen_num): @@ -62,6 +64,11 @@ FbWinFrameTheme::FbWinFrameTheme(int screen_num): m_label_text_unfocus_gc = XCreateGC(disp, rootwin, 0, 0); m_button_pic_focus_gc = XCreateGC(disp, rootwin, 0, 0); m_button_pic_unfocus_gc = XCreateGC(disp, rootwin, 0, 0); + // create cursors + m_cursor_move = XCreateFontCursor(disp, XC_fleur); + m_cursor_lower_left_angle = XCreateFontCursor(disp, XC_ll_angle); + m_cursor_lower_right_angle = XCreateFontCursor(disp, XC_lr_angle); + } FbWinFrameTheme::~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 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbWinFrameTheme.hh,v 1.4 2003/02/23 01:03:56 fluxgen Exp $ +// $Id: FbWinFrameTheme.hh,v 1.5 2003/06/11 14:52:25 fluxgen Exp $ #ifndef FBWINFRAMETHEME_HH #define FBWINFRAMETHEME_HH @@ -81,6 +81,11 @@ public: void addListener(FbTk::Observer &obs) { m_theme_change.attach(&obs); } void removeListener(FbTk::Observer &obs) { m_theme_change.detach(&obs); } + + inline Cursor moveCursor() const { return m_cursor_move; } + inline Cursor lowerLeftAngleCursor() const { return m_cursor_lower_left_angle; } + inline Cursor lowerRightAngleCursor() const { return m_cursor_lower_right_angle; } + private: FbTk::ThemeItem m_label_focus, m_label_unfocus; FbTk::ThemeItem m_title_focus, m_title_unfocus; @@ -98,6 +103,8 @@ private: GC m_label_text_focus_gc, m_label_text_unfocus_gc; GC m_button_pic_focus_gc, m_button_pic_unfocus_gc; FbTk::Subject m_theme_change; + + Cursor m_cursor_move, m_cursor_lower_left_angle, m_cursor_lower_right_angle; }; #endif // FBWINFRAMETHEME_HH -- cgit v0.11.2