#include "bitmap.h"#include "gfxfont.h"This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
| struct | Graphics |
| Structure to hold information about a graphics context. More... | |
Defines | |
| #define | GFX_SCRATCH_SIZE 2048 |
| Scratch memory for internal use. | |
Typedefs | |
| typedef Graphics | Graphics |
| Structure to hold information about a graphics context. | |
Functions | |
| void | GFX_Init (Graphics *gfx, Bitmap *bm) |
| void | GFX_Init (Graphics *gfx, Graphics *gfx2) |
| Copy a graphics context structure. | |
| void | GFX_SetFont (Graphics *gfx, Font *font) |
| Set the current font. | |
| void | GFX_SetFillStyle (Graphics *gfx, char *style) |
| Set the current fillStyle. | |
| void | GFX_SetColor (Graphics *gfx, int color) |
| void | GFX_SetBlitMode (Graphics *gfx, int mode) |
| void | GFX_MoveRel (Graphics *gfx, int dx, int dy) |
| Move the current position by (dx,dy). | |
| void | GFX_MoveTo (Graphics *gfx, int x, int y) |
| Set the current position to (x,y). | |
| void | GFX_HLine (Graphics *gfx, int x, int y, int w) |
| Draw a horizontal line. | |
| void | GFX_VLine (Graphics *gfx, int x, int y, int h) |
| Draw a vertical line. | |
| void | GFX_Line (Graphics *gfx, int x1, int y1, int x2, int y2) |
| Draw a line using the bresenham algorithm. | |
| void | GFX_LineRel (Graphics *gfx, int dx, int dy) |
| Draw a line relative from the current position. | |
| void | GFX_LineTo (Graphics *gfx, int x, int y) |
| Draw a line from the current position to (x,y) and set (x,y) to be the new current position. | |
| void | GFX_Circle (Graphics *gfx, int xc, int yc, int r) |
| Draw a circle. | |
| void | GFX_Rectangle (Graphics *gfx, int x, int y, int w, int h) |
| Draws a rectangle with upper left corner at (x,y) and with width w and height h. | |
| void | GFX_FillRect (Graphics *gfx, int x, int y, int w, int h) |
| Draw a filled rectangle. | |
Variables | |
| Bitmap * | _gfx_scratch |
| char | emptyFill [] |
| fillStyles | |
| char | solidFill [] |
| char | lineFill [] |
| char | ltSlashFill [] |
| char | slashFill [] |
| char | bkSlashFill [] |
| char | ltBkSlashFill [] |
| char | hatchFill [] |
| char | xHatchFill [] |
| char | xLeaveFill [] |
| char | wDotFill [] |
| char | cDotFill [] |
|
|
Scratch memory for internal use.
|
|
|
Structure to hold information about a graphics context.
|
|
||||||||||||||||||||
|
Draw a circle.
Definition at line 416 of file gfxcore.cpp. References Graphics::bitmap, BM_PutPixel(), and Graphics::color. |
|
||||||||||||||||||||||||
|
Draw a filled rectangle.
Definition at line 449 of file gfxcore.cpp. References Graphics::bitmap, Graphics::blitMode, BM_FastBlit(), Bitmap::bmBits, Graphics::fillStyle, Bitmap::height, src, and Bitmap::width. Referenced by GFX_ProgressBar(). |
|
||||||||||||||||||||
|
Draw a horizontal line.
Definition at line 150 of file gfxcore.cpp. References Graphics::bitmap, Bitmap::bmBits, Graphics::color, Bitmap::height, and Bitmap::width. Referenced by GFX_Line(), GFX_Rectangle(), and GFX_RoundRect(). |
|
||||||||||||
|
Copy a graphics context structure. This function is quite useful for creating a temporary context inside a drawing function. So You can change drawing modes without modifying the original context. Definition at line 81 of file gfxcore.cpp. Referenced by GFX_ProgressBar(), and gfxTest(). |
|
||||||||||||
|
|
|
||||||||||||||||||||||||
|
Draw a line using the bresenham algorithm.
Definition at line 318 of file gfxcore.cpp. References Graphics::bitmap, BM_PutPixel(), Graphics::color, GFX_HLine(), and GFX_VLine(). Referenced by GFX_LineRel(), GFX_LineTo(), and GFX_RoundRect(). |
|
||||||||||||||||
|
Draw a line relative from the current position.
Definition at line 366 of file gfxcore.cpp. References GFX_Line(), Graphics::x, and Graphics::y. |
|
||||||||||||||||
|
Draw a line from the current position to (x,y) and set (x,y) to be the new current position.
Definition at line 381 of file gfxcore.cpp. References GFX_Line(), Graphics::x, and Graphics::y. |
|
||||||||||||||||
|
Move the current position by (dx,dy).
Definition at line 137 of file gfxcore.cpp. References Graphics::x, and Graphics::y. |
|
||||||||||||||||
|
Set the current position to (x,y).
Definition at line 126 of file gfxcore.cpp. References Graphics::x, and Graphics::y. |
|
||||||||||||||||||||||||
|
Draws a rectangle with upper left corner at (x,y) and with width w and height h.
Definition at line 398 of file gfxcore.cpp. References GFX_HLine(), and GFX_VLine(). Referenced by GFX_ProgressBar(). |
|
||||||||||||
|
Definition at line 116 of file gfxcore.cpp. References Graphics::blitMode. Referenced by GFX_ProgressBar(). |
|
||||||||||||
|
Definition at line 110 of file gfxcore.cpp. References Graphics::color. |
|
||||||||||||
|
Set the current fillStyle.
Definition at line 104 of file gfxcore.cpp. References Graphics::fillStyle. Referenced by GFX_ProgressBar(). |
|
||||||||||||
|
Set the current font. If font is NULL, the default font is set. Definition at line 92 of file gfxcore.cpp. References _font_sysfont, Graphics::font, and font. Referenced by gfxTest(). |
|
||||||||||||||||||||
|
Draw a vertical line.
Definition at line 227 of file gfxcore.cpp. References Graphics::bitmap, Bitmap::bmBits, Graphics::color, fbm, Bitmap::height, lbm, pages, and Bitmap::width. Referenced by GFX_Line(), GFX_Rectangle(), and GFX_RoundRect(). |
|
|
|
|
|
|
|
|
|
|
|
fillStyles
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 19 of file gfxcore.h. Referenced by GFX_Init(). |
|
|
|
|
|
|
|
|
|
1.2.16