all repos — fluxbox @ abe0204256a567799ea7f97db64e1153c5578660

custom fork of the fluxbox windowmanager

FbDrawable in constructor
fluxgen fluxgen
commit

abe0204256a567799ea7f97db64e1153c5578660

parent

135579a9bfa6a23a1fd8217ae15ea4d4937fbf59

2 files changed, 15 insertions(+), 3 deletions(-)

jump to
M src/FbTk/FbPixmap.ccsrc/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.hhsrc/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 &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);