aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/GContext.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/GContext.cc')
-rw-r--r--src/FbTk/GContext.cc20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/FbTk/GContext.cc b/src/FbTk/GContext.cc
index 3885a46..f3fcaf4 100644
--- a/src/FbTk/GContext.cc
+++ b/src/FbTk/GContext.cc
@@ -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: GContext.cc,v 1.2 2003/09/10 21:27:02 fluxgen Exp $ 22// $Id: GContext.cc,v 1.3 2003/09/11 19:57:38 fluxgen Exp $
23 23
24#include "GContext.hh" 24#include "GContext.hh"
25 25
@@ -33,8 +33,8 @@ namespace FbTk {
33 33
34GContext::GContext(const FbTk::FbDrawable &drawable): 34GContext::GContext(const FbTk::FbDrawable &drawable):
35 m_gc(XCreateGC(FbTk::App::instance()->display(), 35 m_gc(XCreateGC(FbTk::App::instance()->display(),
36 drawable.drawable(), 36 drawable.drawable(),
37 0, 0)) { 37 0, 0)) {
38 setGraphicsExposure(false); 38 setGraphicsExposure(false);
39} 39}
40 40
@@ -73,6 +73,9 @@ void GContext::setFont(const FbTk::Font &font) {
73 //!! TODO 73 //!! TODO
74} 74}
75 75
76void GContext::setFont(int fid) {
77 XSetFont(FbTk::App::instance()->display(), m_gc, fid);
78}
76void GContext::setClipMask(const FbTk::FbPixmap &mask) { 79void GContext::setClipMask(const FbTk::FbPixmap &mask) {
77 XSetClipMask(FbTk::App::instance()->display(), m_gc, 80 XSetClipMask(FbTk::App::instance()->display(), m_gc,
78 mask.drawable()); 81 mask.drawable());
@@ -88,4 +91,15 @@ void GContext::setGraphicsExposure(bool flag) {
88 flag); 91 flag);
89} 92}
90 93
94void GContext::setFunction(int func) {
95 XSetFunction(FbTk::App::instance()->display(), m_gc,
96 func);
97}
98
99void GContext::setSubwindowMode(int mode) {
100 XSetSubwindowMode(FbTk::App::instance()->display(), m_gc,
101 mode);
102}
103
104
91} // end namespace FbTk 105} // end namespace FbTk