aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/FbPixmap.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-04-29 08:53:24 (GMT)
committerfluxgen <fluxgen>2003-04-29 08:53:24 (GMT)
commitf589d55aa90cf347da75ba39922b9d14f8621cfb (patch)
tree1e6e2d122abf6e14c3b7d2cd0174dba4ea5d9eb4 /src/FbTk/FbPixmap.cc
parentd9467066a9babcf3c179084592342887272f8d57 (diff)
downloadfluxbox-f589d55aa90cf347da75ba39922b9d14f8621cfb.zip
fluxbox-f589d55aa90cf347da75ba39922b9d14f8621cfb.tar.bz2
FbPixmap is a FbDrawable
Diffstat (limited to 'src/FbTk/FbPixmap.cc')
-rw-r--r--src/FbTk/FbPixmap.cc45
1 files changed, 1 insertions, 44 deletions
diff --git a/src/FbTk/FbPixmap.cc b/src/FbTk/FbPixmap.cc
index c627779..a05e287 100644
--- a/src/FbTk/FbPixmap.cc
+++ b/src/FbTk/FbPixmap.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: FbPixmap.cc,v 1.3 2003/04/27 23:56:13 fluxgen Exp $ 22// $Id: FbPixmap.cc,v 1.4 2003/04/29 08:53:24 fluxgen Exp $
23 23
24#include "FbPixmap.hh" 24#include "FbPixmap.hh"
25#include "App.hh" 25#include "App.hh"
@@ -62,48 +62,6 @@ FbPixmap::~FbPixmap() {
62 free(); 62 free();
63} 63}
64 64
65void FbPixmap::copyArea(Drawable src, GC gc,
66 int src_x, int src_y,
67 int dest_x, int dest_y,
68 unsigned int width, unsigned int height) {
69 if (m_pm == 0 || src == 0 || gc == 0)
70 return;
71 XCopyArea(FbTk::App::instance()->display(),
72 src, m_pm, gc,
73 src_x, src_y,
74 width, height,
75 dest_x, dest_y);
76}
77
78void FbPixmap::fillRectangle(GC gc, int x, int y,
79 unsigned int width, unsigned int height) {
80 if (m_pm == 0 || gc == 0)
81 return;
82 XFillRectangle(FbTk::App::instance()->display(),
83 m_pm, gc,
84 x, y,
85 width, height);
86}
87
88void FbPixmap::drawRectangle(GC gc, int x, int y,
89 unsigned int width, unsigned int height) {
90 if (m_pm == 0 || gc == 0)
91 return;
92 XDrawRectangle(FbTk::App::instance()->display(),
93 m_pm, gc,
94 x, y,
95 width, height);
96}
97
98void FbPixmap::fillPolygon(GC gc, XPoint *points, int npoints,
99 int shape, int mode) {
100 if (m_pm == 0 || gc == 0 || points == 0 || npoints == 0)
101 return;
102 XFillPolygon(FbTk::App::instance()->display(),
103 m_pm, gc, points, npoints,
104 shape, mode);
105}
106
107FbPixmap &FbPixmap::operator = (const FbPixmap &the_copy) { 65FbPixmap &FbPixmap::operator = (const FbPixmap &the_copy) {
108 copy(the_copy); 66 copy(the_copy);
109 return *this; 67 return *this;
@@ -207,7 +165,6 @@ void FbPixmap::scale(unsigned int dest_width, unsigned int dest_height) {
207 static_cast<int>(src_x), 165 static_cast<int>(src_x),
208 static_cast<int>(src_y))); 166 static_cast<int>(src_y)));
209 XDrawPoint(dpy, new_pm.drawable(), gc, tx, ty); 167 XDrawPoint(dpy, new_pm.drawable(), gc, tx, ty);
210
211 168
212 } 169 }
213 } 170 }