00001 #ifndef _UEVENTBOX_H 00002 #define _UEVENTBOX_H 00003 // ------------------------------------------------------------------------- 00004 #include <gtkmm.h> 00005 #include <sstream> 00006 #include "UDefaultFunctions.h" 00007 #include "SBlinker.h" 00008 #include "SensorProp.h" 00009 // ------------------------------------------------------------------------- 00010 #define GTKMM_PARENT Gtk::EventBox 00011 #define GTK_PARENT GtkEventBox 00012 // ------------------------------------------------------------------------- 00021 class UEventBox: public UDefaultFunctions<Gtk::EventBox> { 00022 00023 public: 00024 UEventBox(); 00025 explicit UEventBox(GtkmmBaseType::BaseObjectType* gobject); 00026 virtual ~UEventBox(); 00028 void queue_full_draw() { full_redraw=true; queue_draw(); } 00029 00030 protected: 00032 ConnectorRef get_connector_from_hierarchy(); 00034 void set_connector_to_hierarchy(Gtk::Container* w, ConnectorRef connector); 00036 virtual bool on_expose_event(GdkEventExpose* event); 00038 guint width; 00040 guint height; 00041 00042 /* Ancestor widgets using full_redraw must set it to false themselves after the redraw was done */ 00044 bool full_redraw; 00045 00046 // virtual void add_lock(const Gtk::Widget& w); 00047 // virtual void unlock_current(); 00048 }; 00049 #endif
1.5.9