mirror of
https://github.com/AxioDL/boo.git
synced 2025-06-24 15:33:46 +00:00
Add ibeam cursor for Xlib
This commit is contained in:
parent
86daf8b3f0
commit
511ac1fad7
@ -194,7 +194,8 @@ enum class EMouseCursor
|
||||
None = 0,
|
||||
Pointer = 1,
|
||||
HorizontalArrow = 2,
|
||||
VerticalArrow = 3
|
||||
VerticalArrow = 3,
|
||||
IBeam = 4
|
||||
};
|
||||
|
||||
class IWindow
|
||||
|
@ -205,6 +205,7 @@ public:
|
||||
X_CURSORS.m_pointer = XCreateFontCursor(m_xDisp, XC_left_ptr);
|
||||
X_CURSORS.m_hArrow = XCreateFontCursor(m_xDisp, XC_sb_h_double_arrow);
|
||||
X_CURSORS.m_vArrow = XCreateFontCursor(m_xDisp, XC_sb_v_double_arrow);
|
||||
X_CURSORS.m_ibeam = XCreateFontCursor(m_xDisp, XC_xterm);
|
||||
X_CURSORS.m_wait = XCreateFontCursor(m_xDisp, XC_watch);
|
||||
|
||||
/* The xkb extension requests that the X server does not
|
||||
|
@ -501,6 +501,8 @@ class WindowXlib : public IWindow
|
||||
return X_CURSORS.m_hArrow;
|
||||
case EMouseCursor::VerticalArrow:
|
||||
return X_CURSORS.m_vArrow;
|
||||
case EMouseCursor::IBeam:
|
||||
return X_CURSORS.m_ibeam;
|
||||
default: break;
|
||||
}
|
||||
return X_CURSORS.m_pointer;
|
||||
|
@ -11,6 +11,7 @@ struct XlibCursors
|
||||
Cursor m_pointer;
|
||||
Cursor m_hArrow;
|
||||
Cursor m_vArrow;
|
||||
Cursor m_ibeam;
|
||||
Cursor m_wait;
|
||||
};
|
||||
extern XlibCursors X_CURSORS;
|
||||
|
Loading…
x
Reference in New Issue
Block a user