added cursor
This commit is contained in:
parent
127778b167
commit
32cdc02556
2 changed files with 16 additions and 2 deletions
|
@ -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 <X11/cursorfont.h>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
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() {
|
||||
|
|
|
@ -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<FbTk::Texture> m_label_focus, m_label_unfocus;
|
||||
FbTk::ThemeItem<FbTk::Texture> 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
|
||||
|
|
Loading…
Reference in a new issue