]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blob - Constructor/include/or.h
Se agrega docs de instalaciĆ³n.
[z.facultad/75.42/plaqui.git] / Constructor / include / or.h
1 #ifndef _OR_H_
2 #define _OR_H_
3
4 #include "item.h"
5
6 class Or : public CItem {
7         public:
8                 Or();
9                 virtual ~Or();
10                 virtual bool on_button_press_event(GdkEventButton *event);
11                 virtual void on_menu_popup_rotar();
12                 virtual void save(FILE *archivo);
13                 virtual bool check_connection();
14                 virtual ConnectorType detect_click_position(int _a, int _b);
15                 virtual void update_logic_position();
16                 virtual void get_in_logic_connect_position(int& _a, int& _b);
17                 virtual void get_out_logic_connect_position(int& _a, int& _b);  
18         private:
19                 int in_x, in_y, out_x, out_y;
20                 std::vector<t_logic_connector> vec_connector;
21                 Glib::RefPtr<Gdk::Pixbuf> imageN; // 0 
22                 Glib::RefPtr<Gdk::Pixbuf> imageS; // 1
23                 Glib::RefPtr<Gdk::Pixbuf> imageE; // 2
24                 Glib::RefPtr<Gdk::Pixbuf> imageO; // 3
25                 Glib::RefPtr<Gdk::Pixbuf> null; 
26 };
27 #endif