2000-10-12 10:46:06 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
|
|
|
* =================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
* Copyright 1995 Matthias Ettrich.
|
|
|
|
* Copyright 1995-2000 The LyX Team.
|
|
|
|
*
|
|
|
|
* This file Copyright 2000 Baruch Even
|
|
|
|
* ================================================= */
|
|
|
|
|
|
|
|
#ifndef LYXIMAGE_X_H
|
|
|
|
#define LYXIMAGE_X_H
|
|
|
|
|
|
|
|
#include "frontends/support/LyXImage.h"
|
|
|
|
#include <X11/Xlib.h>
|
|
|
|
|
|
|
|
// This class actually acts as a base class when X-Windows is used.
|
|
|
|
|
|
|
|
class LyXImage {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
LyXImage();
|
|
|
|
///
|
2001-02-08 13:06:55 +00:00
|
|
|
LyXImage(Pixmap pixmap, unsigned int width, unsigned int height);
|
2000-10-12 10:46:06 +00:00
|
|
|
///
|
|
|
|
~LyXImage();
|
|
|
|
|
|
|
|
///
|
|
|
|
Pixmap getPixmap() const;
|
2001-02-08 13:06:55 +00:00
|
|
|
|
|
|
|
/// Get the image width
|
|
|
|
unsigned int getWidth() const { return width_; }
|
|
|
|
|
|
|
|
/// Get the image height
|
|
|
|
unsigned int getHeight() const { return height_; }
|
|
|
|
|
2000-10-12 10:46:06 +00:00
|
|
|
private:
|
|
|
|
/// The pixmap itself.
|
|
|
|
Pixmap pixmap_;
|
|
|
|
/// Is the pixmap initialized?
|
|
|
|
bool pixmapInitialized;
|
2001-02-08 13:06:55 +00:00
|
|
|
/// Width of the image
|
|
|
|
unsigned int width_;
|
|
|
|
/// Height of the image
|
|
|
|
unsigned int height_;
|
2000-10-12 10:46:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|