1 /* This file is part of
2 * =================================================
4 * LyX, The Document Processor
5 * Copyright 1995 Matthias Ettrich.
6 * Copyright 1995-2000 The LyX Team.
8 * This file Copyright 2000 Baruch Even
9 * ================================================= */
14 #include FORMS_H_LOCATION
16 #include "support/LAssert.h"
19 : pixmap_(0), pixmapInitialized(false), width_(0), height_(0)
22 LyXImage::LyXImage(Pixmap pixmap, unsigned int width, unsigned int height)
23 : pixmap_(pixmap), pixmapInitialized(true), width_(width), height_(height)
28 if (pixmapInitialized)
29 XFreePixmap(fl_get_display(), pixmap_);
33 LyXImage::getPixmap() const
35 lyx::Assert(pixmapInitialized);