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 virtual void on_size_request(Gtk::Requisition* requisition);
00024 virtual void on_size_allocate(Gtk::Allocation& alloc);
00025
00026 protected:
00027
00028 Glib::RefPtr<Gdk::Pixbuf> image_ref_;
00030
00031 virtual void on_show();
00032 virtual void on_hide();
00033 virtual bool on_expose_event(GdkEventExpose* event);
00034 virtual void on_realize();
00035
00036 private:
00037 void constructor();
00038 DISALLOW_COPY_AND_ASSIGN(Image);
00039
00040 ADD_PROPERTY( image_path, Glib::ustring )
00041 };
00042
00043 }
00044
00045 #endif