Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef XAP_UNIXCUSTOMWIDGET_H
00021 #define XAP_UNIXCUSTOMWIDGET_H
00022
00023 #include "xap_CustomWidget.h"
00024 #include <gtk/gtk.h>
00025
00026 class XAP_UnixCustomWidget: virtual public XAP_CustomWidget
00027 {
00028 public:
00029 virtual GtkWidget *getWidget() = 0;
00030 virtual void queueDraw(const UT_Rect *clip=NULL);
00031
00032 protected:
00033 class _fe
00034 {
00035 public:
00036 #if GTK_CHECK_VERSION(3,0,0)
00037 static void draw(XAP_UnixCustomWidget *self, cairo_t *cr);
00038 #else
00039 static void expose(XAP_UnixCustomWidget *self, GdkEventExpose *ev);
00040 #endif
00041 };
00042 friend class _fe;
00043 #if GTK_CHECK_VERSION(3,0,0)
00044 cairo_t *m_cr;
00045 #endif
00046 };
00047
00048 #endif