00001 #ifndef _OUTPUT_FILTER_H 00002 #define _OUTPUT_FILTER_H 00003 00004 #include "frame.h" 00005 #ifndef NO_GUI 00006 #include "graphics.h" 00007 #endif 00008 00009 struct name_struct{ 00010 string name; 00011 int x; 00012 int y; 00013 }; 00014 00015 class output_filter: public Filter 00016 { 00017 public: 00018 output_filter(); 00019 virtual ~output_filter(); 00020 00025 virtual bool filter_frame(FrameClass & frame); 00026 virtual void property_changed(); 00027 virtual void reset(); 00028 private: 00029 string box_name; 00030 string title; 00031 bool is_set; 00032 #ifndef NO_GUI 00033 GtkWidget * window; 00034 GtkWidget * drawing_area; 00035 00036 int width; 00037 int height; 00038 GdkPixbuf * pixbuf; 00039 Graphics * g; 00040 vector<name_struct> names; 00041 00042 friend gboolean output_expose_event(GtkWidget * widget, 00043 GdkEventExpose * event, 00044 output_filter * of); 00045 #endif 00046 00047 00048 }; 00049 00050 #ifndef NO_GUI 00051 gboolean output_expose_event(GtkWidget * widget, 00052 GdkEventExpose * event, 00053 output_filter * of); 00054 #endif 00055 00056 #ifdef DYNAMIC_LINK 00057 extern "C"{ 00058 Filter * create_instance(); 00059 #ifndef NO_GUI 00060 GdkPixmap *create_icon(GtkWidget *drawing_area); 00061 #endif 00062 } 00063 #endif 00064 00065 #endif
1.2.14 written by Dimitri van Heesch,
© 1997-2002