From abe0204256a567799ea7f97db64e1153c5578660 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 11 Jan 2004 12:48:46 +0000 Subject: FbDrawable in constructor --- src/FbTk/FbPixmap.cc | 11 ++++++++++- src/FbTk/FbPixmap.hh | 7 +++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/FbTk/FbPixmap.cc b/src/FbTk/FbPixmap.cc index edc0e53..bbc8fcb 100644 --- a/src/FbTk/FbPixmap.cc +++ b/src/FbTk/FbPixmap.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbPixmap.cc,v 1.9 2004/01/08 22:05:34 fluxgen Exp $ +// $Id: FbPixmap.cc,v 1.10 2004/01/11 12:48:46 fluxgen Exp $ #include "FbPixmap.hh" #include "App.hh" @@ -50,6 +50,15 @@ FbPixmap::FbPixmap(Pixmap pm):m_pm(0), (*this) = pm; } +FbPixmap::FbPixmap(const FbDrawable &src, + unsigned int width, unsigned int height, + int depth):m_pm(0), + m_width(0), m_height(0), + m_depth(0) { + + create(src.drawable(), width, height, depth); +} + FbPixmap::FbPixmap(Drawable src, unsigned int width, unsigned int height, int depth):m_pm(0), diff --git a/src/FbTk/FbPixmap.hh b/src/FbTk/FbPixmap.hh index 2408c89..b0b7fed 100644 --- a/src/FbTk/FbPixmap.hh +++ b/src/FbTk/FbPixmap.hh @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbPixmap.hh,v 1.9 2004/01/08 22:05:58 fluxgen Exp $ +// $Id: FbPixmap.hh,v 1.10 2004/01/11 12:48:46 fluxgen Exp $ #ifndef FBTK_FBPIXMAP_HH #define FBTK_FBPIXMAP_HH @@ -38,11 +38,14 @@ public: explicit FbPixmap(const FbPixmap ©); /// creates a FbPixmap from X pixmap explicit FbPixmap(Pixmap pm); + FbPixmap(const FbDrawable &src, + unsigned int width, unsigned int height, + int depth); FbPixmap(Drawable src, unsigned int width, unsigned int height, int depth); - ~FbPixmap(); + virtual ~FbPixmap(); void copy(const FbPixmap &the_copy); void copy(Pixmap pixmap); -- cgit v0.11.2