FbDrawable in constructor
fluxgen fluxgen
2 files changed,
15 insertions(+),
3 deletions(-)
M
src/FbTk/FbPixmap.cc
→
src/FbTk/FbPixmap.cc
@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// 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"@@ -48,6 +48,15 @@ if (pm == 0)
return; // assign X pixmap to this (*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,
M
src/FbTk/FbPixmap.hh
→
src/FbTk/FbPixmap.hh
@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// 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 @@ /// copy pixmap
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);