Public Methods |
| | Graphics (GtkWidget *drawingarea, int width, int height, int nbsurfaces) |
| | Graphics (GtkWidget *drawingarea, int nbsurfaces) |
| | ~Graphics () |
| void | create_colors () |
| int | width () |
| int | height () |
| void | draw_line (int x1, int y1, int x2, int y2, int colorindex) |
| void | draw_rectangle (int x, int y, int width, int height, bool fill, int colorindex) |
| void | draw_pixmap (GdkPixmap *pixmap, int x, int y, int width, int height) |
| void | draw_pixmap (gchar **pixmap, int x, int y, int width, int height) |
| void | render (GdkPixbuf *pixbuf, int x, int y, int width, int height) |
| void | clear (int color_index) |
| void | put_pixel (int x, int y, int colorindex) |
| void | draw_text (int x, int y, const char *text, int colorindex) |
| void | draw_text (int x, int y, const char *text, int colorindex, int alignment) |
| void | apply () |
| void | repaint () |
| void | copy_surface (int surface) |
| void | set_draw_surface (int surface) |
Public Attributes |
| GdkPixmap * | currentpixmap |
| vector< GdkPixmap * > | pixmaps |
| int | _width |
| int | _height |
Private Methods |
| GdkGC * | make_gc (int red, int green, int blue) |
Private Attributes |
| GtkWidget * | drawingarea |
| GdkColormap * | colormap |