diff options
Diffstat (limited to 'src/FbTk/GContext.cc')
-rw-r--r-- | src/FbTk/GContext.cc | 20 |
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 | ||
34 | GContext::GContext(const FbTk::FbDrawable &drawable): | 34 | GContext::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 | ||
76 | void GContext::setFont(int fid) { | ||
77 | XSetFont(FbTk::App::instance()->display(), m_gc, fid); | ||
78 | } | ||
76 | void GContext::setClipMask(const FbTk::FbPixmap &mask) { | 79 | void 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 | ||
94 | void GContext::setFunction(int func) { | ||
95 | XSetFunction(FbTk::App::instance()->display(), m_gc, | ||
96 | func); | ||
97 | } | ||
98 | |||
99 | void 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 |