25 #ifndef GCHEMPAINT_VIEW_H
26 #define GCHEMPAINT_VIEW_H
55 #define GCHEMPAINT_ATOM_NAME "application/x-gchempaint"
56 extern GtkTargetEntry
const targets[];
180 bool OnKeyPress (GtkWidget* w, GdkEventKey* event);
209 void OnReceive (GtkClipboard* clipboard, GtkSelectionData* selection_data);
232 void ExportImage (std::string
const &filename,
const char* type,
int resolution = -1);
259 void Zoom (
double zoom);
275 void Render (cairo_t *cr);
304 void GetVisibleArea (
double &x0,
double &y0,
double &x1,
double &y1);
310 GtkWidget* m_pWidget;
311 std::list<GtkWidget*> m_Widgets;
312 PangoFontDescription* m_PangoFontDesc, *m_PangoSmallFontDesc;
313 double m_dFontHeight;
314 gchar* m_sFontName, *m_sSmallFontName;
315 int m_width, m_height;
316 double m_lastx, m_lasty;
349 void on_receive (GtkClipboard *clipboard, GtkSelectionData *selection_data,
View * pView);
353 #endif // GCHEMPAINT_VIEW_H