2 /* This file is part of
3 * =================================================
5 * LyX, The Document Processor
6 * Copyright 1995 Matthias Ettrich.
7 * Copyright 1995-2000 The LyX Team.
9 * This file Copyright 2000 Baruch Even
10 * ================================================= */
15 #include FORMS_H_LOCATION
17 #include "support/LAssert.h"
20 : pixmap_(0), pixmapInitialized(false), width_(0), height_(0)
23 LyXImage::LyXImage(Pixmap pixmap, unsigned int width, unsigned int height)
24 : pixmap_(pixmap), pixmapInitialized(true), width_(width), height_(height)
29 if (pixmapInitialized)
30 XFreePixmap(fl_get_display(), pixmap_);
34 LyXImage::getPixmap() const
36 Assert(pixmapInitialized);