Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Graphics Class Reference

#include <graphics.h>

List of all members.

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


Constructor & Destructor Documentation

Graphics::Graphics GtkWidget *    drawingarea,
int    width,
int    height,
int    nbsurfaces
 

Graphics::Graphics GtkWidget *    drawingarea,
int    nbsurfaces
 

Graphics::~Graphics  
 


Member Function Documentation

void Graphics::apply  
 

void Graphics::clear int    color_index
 

void Graphics::copy_surface int    surface
 

void Graphics::create_colors  
 

void Graphics::draw_line int    x1,
int    y1,
int    x2,
int    y2,
int    colorindex
 

void Graphics::draw_pixmap gchar **    pixmap,
int    x,
int    y,
int    width,
int    height
 

void Graphics::draw_pixmap GdkPixmap *    pixmap,
int    x,
int    y,
int    width,
int    height
 

void Graphics::draw_rectangle int    x,
int    y,
int    width,
int    height,
bool    fill,
int    colorindex
 

void Graphics::draw_text int    x,
int    y,
const char *    text,
int    colorindex,
int    alignment
 

void Graphics::draw_text int    x,
int    y,
const char *    text,
int    colorindex
 

int Graphics::height  
 

GdkGC * Graphics::make_gc int    red,
int    green,
int    blue
[private]
 

void Graphics::put_pixel int    x,
int    y,
int    colorindex
 

void Graphics::render GdkPixbuf *    pixbuf,
int    x,
int    y,
int    width,
int    height
 

void Graphics::repaint  
 

void Graphics::set_draw_surface int    surface
 

int Graphics::width  
 


Member Data Documentation

int Graphics::_height
 

int Graphics::_width
 

GdkColormap* Graphics::colormap [private]
 

GdkPixmap* Graphics::currentpixmap
 

GtkWidget* Graphics::drawingarea [private]
 

vector<GdkPixmap*> Graphics::pixmaps
 


The documentation for this class was generated from the following files:
Generated on Wed Apr 23 10:42:35 2003 for BioFilter by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002