X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/4404d8472c0088ec061b2f4f6527412f7ba23569..24ac99bd21e4562a6ae028e0a84d8c09da07058b:/Client/include/item.h diff --git a/Client/include/item.h b/Client/include/item.h index fca3b79..5a374dd 100644 --- a/Client/include/item.h +++ b/Client/include/item.h @@ -12,14 +12,16 @@ class ViewItem:public Gtk::EventBox { public: ViewItem(Glib::ustring _name); virtual ~ViewItem(); -// virtual bool on_expose_event(GdkEventExpose* event); - Glib::ustring get_name(); + + inline Glib::ustring get_name() { return name; } void set_position(int _x, int _y); void set_name(Glib::ustring _name); - void set_actual_flow(float f) { actual_flow = f; } - void set_open(bool b) { open = b; } - void set_extra(float f) { extra = f; } - + inline bool get_open() { return open; } + inline void set_actual_flow(float f) { actual_flow = f; } + inline void set_open(bool b) { open = b; } + inline void set_extra(float f) { extra = f; } + inline void set_color(const Gdk::Color &c) { color = c; } + inline Gdk::Color get_color() { return color; } std::string get_actual_flow(); virtual std::string get_cap_flow() { return "Flujo Actual :"; } @@ -28,6 +30,7 @@ public: protected: Glib::ustring name; Gtk::Image image; + Gdk::Color color; int x, y; float actual_flow, extra; bool open;