UniWidgets  1.0.0
Image.h
00001 #ifndef _IMAGE_H
00002 #define _IMAGE_H
00003 // -------------------------------------------------------------------------
00004 #include <components/SimpleImage.h>
00005 #include <plugins.h>
00006 #include <global_macros.h>
00007 // -------------------------------------------------------------------------
00008 namespace UniWidgets
00009 {
00015 class Image : public SimpleImage
00016 {
00017 public:
00018     Image();
00019     Image(Glib::ustring svgimage);
00020     explicit Image(SimpleImage::BaseObjectType* gobject);
00021     virtual ~Image();
00022 
00023 protected:
00024     /* Variables */
00025     Glib::RefPtr<Gdk::Pixbuf> image_ref_;           
00027     /* Event handlers */
00028     virtual void on_show();
00029     virtual void on_hide();
00030     virtual bool on_expose_event(GdkEventExpose* event);
00031 
00032 private:
00033     void constructor();
00034     DISALLOW_COPY_AND_ASSIGN(Image);
00035     /* Properties */
00036     ADD_PROPERTY( image_path, Glib::ustring )
00037 };
00038 
00039 }
00040 
00041 #endif