diff options
Diffstat (limited to 'src/FbTk/GContext.hh')
-rw-r--r-- | src/FbTk/GContext.hh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/FbTk/GContext.hh b/src/FbTk/GContext.hh index c192879..3f01b8c 100644 --- a/src/FbTk/GContext.hh +++ b/src/FbTk/GContext.hh | |||
@@ -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.hh,v 1.4 2003/10/09 16:48:09 rathnor Exp $ | 22 | // $Id: GContext.hh,v 1.5 2003/11/28 22:50:55 fluxgen Exp $ |
23 | 23 | ||
24 | #ifndef FBTK_GCONTEXT_HH | 24 | #ifndef FBTK_GCONTEXT_HH |
25 | #define FBTK_GCONTEXT_HH | 25 | #define FBTK_GCONTEXT_HH |
@@ -41,7 +41,7 @@ public: | |||
41 | explicit GContext(const FbTk::FbDrawable &drawable); | 41 | explicit GContext(const FbTk::FbDrawable &drawable); |
42 | /// for X drawable | 42 | /// for X drawable |
43 | explicit GContext(Drawable drawable); | 43 | explicit GContext(Drawable drawable); |
44 | 44 | GContext(Drawable d, const FbTk::GContext &gc); | |
45 | virtual ~GContext(); | 45 | virtual ~GContext(); |
46 | 46 | ||
47 | inline void setForeground(const FbTk::Color &color) { | 47 | inline void setForeground(const FbTk::Color &color) { |
@@ -89,9 +89,15 @@ public: | |||
89 | XSetSubwindowMode(m_display, m_gc, mode); | 89 | XSetSubwindowMode(m_display, m_gc, mode); |
90 | } | 90 | } |
91 | 91 | ||
92 | void copy(GC gc); | ||
93 | void copy(const GContext &gc); | ||
94 | inline GContext &operator = (const GContext ©_gc) { copy(copy_gc); return *this; } | ||
95 | inline GContext &operator = (GC copy_gc) { copy(copy_gc); return *this; } | ||
92 | inline GC gc() const { return m_gc; } | 96 | inline GC gc() const { return m_gc; } |
93 | 97 | ||
94 | private: | 98 | private: |
99 | GContext(const GContext &cont); | ||
100 | |||
95 | Display *m_display; // worth caching | 101 | Display *m_display; // worth caching |
96 | GC m_gc; | 102 | GC m_gc; |
97 | }; | 103 | }; |