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 AP_UNIXLEFTRULER_H
00021 #define AP_UNIXLEFTRULER_H
00022
00023
00024
00025
00026
00027
00028 #include <gtk/gtk.h>
00029 #include <gdk/gdk.h>
00030 #include "ut_types.h"
00031 #include "ap_LeftRuler.h"
00032 #include "xap_UnixCustomWidget.h"
00033
00034 class XAP_Frame;
00035
00036
00037
00038 class AP_UnixLeftRuler : public AP_LeftRuler, public XAP_UnixCustomWidget
00039 {
00040 public:
00041 AP_UnixLeftRuler(XAP_Frame * pFrame);
00042 virtual ~AP_UnixLeftRuler(void);
00043
00044 GtkWidget * createWidget(void);
00045 virtual void setView(AV_View * pView);
00046
00047
00048 void getWidgetPosition(gint * x, gint * y);
00049 GtkWidget * getWidget(void) { return m_wLeftRuler; };
00050 GdkWindow * getRootWindow(void);
00051
00052 void _ruler_style_context_changed (void);
00053
00054 protected:
00055 GtkWidget * m_wLeftRuler;
00056 GdkWindow * m_rootWindow;
00057 guint m_iBackgroundRedrawID;
00058 protected:
00059
00060 class _fe
00061 {
00062 public:
00063 static void realize(AP_UnixLeftRuler *self);
00064 static void unrealize(AP_UnixLeftRuler *self);
00065 static gint button_press_event(GtkWidget * w, GdkEventButton * e);
00066 static gint button_release_event(GtkWidget * w, GdkEventButton * e);
00067 static gint configure_event(GtkWidget* w, GdkEventConfigure *e);
00068 static gint motion_notify_event(GtkWidget* w, GdkEventMotion* e);
00069 static gint key_press_event(GtkWidget* w, GdkEventKey* e);
00070 static gint delete_event(GtkWidget * w, GdkEvent * , gpointer );
00071 static void destroy (GtkWidget * , gpointer );
00072 };
00073 friend class _fe;
00074 };
00075
00076 #endif