Public Methods | |
struct Graphics* | Graphics_ctor (struct Graphics *ptr_gfx) |
struct Graphics* | Graphics_ctor_Ex (struct Graphics *ptr_gfx, struct Bitmap *bitmap) |
void | Graphics_dtor (struct Graphics *ptr_gfx, int memory_flag) |
void | Graphics_draw_bitmap (struct Graphics *ptr_gfx, struct Bitmap *bmp, int left, int top, short fm) |
int | Graphics_draw_char (struct Graphics *ptr_gfx, int x, int y, char fc) |
void | Graphics_draw_text (struct Graphics *ptr_gfx, char *text, int left, int top) |
void | Graphics_draw_text_Ex (struct Graphics *ptr_gfx, char *str, int left, int top, int len) |
struct Bitmap* | Graphics_get_bitmap (struct Graphics *ptr_gfx) |
int | Graphics_get_char_height (struct Graphics *ptr_gfx) |
int | Graphics_get_char_width (struct Graphics *ptr_gfx, char chr) |
struct Font* | Graphics_get_font (struct Graphics *ptr_gfx) |
int | Graphics_string_width (struct Graphics *ptr_gfx, char *str) |
int | Graphics_string_width_Ex (struct Graphics *ptr_gfx, char *str, int len) |
void | Graphics_set_bitmap (struct Graphics *ptr_gfx, struct Bitmap *bmp) |
void | Graphics_set_font (struct Graphics *ptr_gfx, struct Font *font) |
void | Graphics_scroll (struct Graphics *ptr_gfx, struct rect_t *ptr_rectangle, int dx, int dy) |
void | Graphics_draw_hline (struct Graphics *ptr_gfx, int x, int y, int xx) |
void | Graphics_draw_vline (struct Graphics *ptr_gfx, int x, int y, int yy) |
void | Graphics_draw_line (struct Graphics *ptr_gfx, int x, int y, int xx, int yy) |
void | Graphics_draw_rect (struct Graphics *ptr_gfx, int fx, int fy, int fw, int fh) |
void | Graphics_draw_rect_Ex (struct Graphics *ptr_gfx, struct rect_t *ptr_rectangle) |
void | Graphics_fill_rect (struct Graphics *ptr_gfx, int fx,int fy, int fw, int fh) |
void | Graphics_fill_rect_Ex (struct Graphics *ptr_gfx, struct rect_t *ptr_rectangle) |
void | Graphics_fill_screen (struct Graphics *ptr_gfx, color_t fc) |
int | Graphics_get_bytes_total (struct Graphics *ptr_gfx) |
void | Graphics_set_clip (struct Graphics *ptr_gfx, int fx, int fy, int fw, int fh) |
void | Graphics_get_clip (struct Graphics *ptr_gfx, struct rect_t *ptr_rectangle) |
void | Graphics_set_clip_Ex (struct Graphics *ptr_gfx, struct rect_t *ptr_rectangle) |
color_t | Graphics_get_color (struct Graphics *ptr_gfx) |
void | Graphics_set_color (struct Graphics *ptr_gfx, color_t fc) |
drawmode_t | Graphics_get_draw_mode (struct Graphics *ptr_gfx) |
void | Graphics_set_draw_mode (struct Graphics *ptr_gfx, drawmode_t dm) |
void | Graphics_put_background (struct Graphics *ptr_gfx, char *fp) |
color_t | Graphics_get_pixel (struct Graphics *ptr_gfx, int fx, int fy) |
void | Graphics_set_pixel (struct Graphics *ptr_gfx, int fx, int fy, color_t fc) |
char* | Graphics_get_buf_addr (struct Graphics *ptr_gfx) |
void | Graphics_set_bkcolor (struct Graphics *ptr_gfx, color_t fc) |
The Graphics structure uses bitmaps to maintain many operations. The DisplayGraphics structure allows you to draw operations directly on the screen. You can draw graphics primitives,as well as text with the current font.
Because TGraph is its parent structure, the Graphics structure's functions are defined in TGraph structure. For example, manipulations of graphics primitives are implemented in TGraph structure.
To use some Graphics functions, you must obtain the Display Graphics Context from the init_module function. This context has only one parameter (the main application module parameter) and it must be obtained from the module_t structure.
See examples for related functions.
|
Simple Graphics constructor.
|
|
The extended version of the Graphics_ctor function.
|
|
Allows the bitmap 'bmp' to be drawn in a specified position (left, top) in 'fm' mode.
|
|
Allows the character 'fc' to be drawn in the current font in specified position (x, y).
|
|
Draws a horizontal line from point (x , y) to point (xx , y).
|
|
Draws a solid line from point ( x , y ) to point ( xx , yy ).
|
|
Draws a rectangular frame in the current color.
|
|
Duplicates the Graphics_draw_rect function.
|
|
Allows 'text' to be drawn in the current font, in the specified position (left , top).
|
|
Duplicates the Graphics_draw_text function.
|
|
Draws a vertical line from point (x , y) to point (x , yy).
|
|
Deletes a Graphics object.
|
|
Fills a rectangle with the current color.
|
|
Duplicates the Graphics_fill_rect function.
|
|
Fills the screen with the 'fc' color.
|
|
Returns the current Bitmap context for drawing.
|
|
Returns a pointer to the Graphics object's associated image.
|
|
Returns the total number of bytes in the screen buffer.
|
|
Returns the current font's height.
|
|
Returns the current font's character width.
|
|
Returns a clip region.
|
|
Returns the current foreground color.
|
|
Returns the current draw mode.
|
|
Returns the current font.
|
|
Returns the color of the pixel with coordinate ( fx , fy ).
|
|
Treats fp as a pointer to a background image and sends the image to its destination.
|
|
Scrolls a rectangle area that is defined by delta x, delta y in 'ptr_rectangle'.
|
|
Sets a bitmap 'bmp' as the destination for drawings.
|
|
Sets the current background color by calling TGraph_set_bkcolor.
|
|
Sets a clip region, defined by the coordinates stored in the fx, fy, fw, and fh parameters.
|
|
Duplicates the Graphics_set_clip function.
|
|
Sets the current foreground color.
|
|
Sets the current draw mode.
|
|
Sets the current font.
|
|
The color, defined by the 'fc' parameter.
|
|
Returns the width (in pixels) of a string 'str' for the current font.
|
|
The extended version of the Graphics_string_width function.
|
Copyright © 2001 Cybiko, Inc. All rights reserved. | More information... |