diff options
author | fluxgen <fluxgen> | 2003-11-28 22:50:55 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-11-28 22:50:55 (GMT) |
commit | f6fa2664931d7577780c22eb5a2e738f322ec360 (patch) | |
tree | 3ba89f47d0c370450203c3d8d3c7ef6d9ca8db16 /src/FbTk/GContext.hh | |
parent | 9f4d10256d27f60c09bb2a4b87805e308a3d52a6 (diff) | |
download | fluxbox_pavel-f6fa2664931d7577780c22eb5a2e738f322ec360.zip fluxbox_pavel-f6fa2664931d7577780c22eb5a2e738f322ec360.tar.bz2 |
copy stuff
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 | }; |