FbDrawable in constructor

This commit is contained in:
fluxgen 2004-01-11 12:48:46 +00:00
parent 135579a9bf
commit abe0204256
2 changed files with 15 additions and 3 deletions

View file

@ -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),

View file

@ -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 &copy);
/// 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);