Go to the source code of this file.
Defines | |
#define | DEFAULT_FONT "/usr/share/consolefonts/iso01.f14.psf.gz" |
Functions | |
int | FB_initlib (char *dev) |
int | FB_exit () |
FB_pixel | FB_makecol (u_char r, u_char g, u_char b, u_char t) |
void | FB_clear_screen (FB_pixel color) |
void | FB_putpixel (int x, int y, FB_pixel color) |
FB_pixel | FB_getpixel (int x, int y) |
void | FB_line (int sx, int sy, int ex, int ey, FB_pixel color) |
void | FB_vline (int x, int sy, int ey, FB_pixel color) |
void | FB_hline (int sx, int ex, int y, FB_pixel color) |
void | FB_rect (int sx, int sy, int ex, int ey, FB_pixel color) |
void | FB_rectfill (int sx, int sy, int ex, int ey, FB_pixel color) |
void | FB_triangle (int x1, int y1, int x2, int y2, int x3, int y3, FB_pixel col) |
void | FB_circle (int cx, int cy, int radius, FB_pixel color) |
int | FB_getVisual () |
void | FB_getres (int *x, int *y) |
int | FB_getxres () |
int | FB_getyres () |
int | FB_getXVres () |
int | FB_getYVres () |
int | FB_getbpp () |
int | FB_setbpp (int bpp) |
int | FB_kb_init () |
int | FB_get_key () |
void | FB_kb_end () |
int | FB_change_font (char *psf_file) |
int | FB_putc (int c, int x, int y, FB_pixel col) |
int | FB_printf (int x, int y, FB_pixel col, char *format,...) |
Variables | |
int | FB_visible |
Definition in file FBlib.h.
|
Default font used by font engine Definition at line 34 of file FBlib.h. Referenced by FB_initlib(). |
|
This function must be called before any other call to other parts of FBlib, it makes some initialization and sets up the handler for a nice VT switch.
Definition at line 19 of file FBinit.c. References DEFAULT_FONT, and FB_change_font(). |
|
You must call this at the end of your program to free up memory and reset the framebuffer device.
Definition at line 120 of file FBinit.c. References FB_kb_end(), and FB_visible. |
|
Bit magic to create a framebuffer dependent representation of a 16/32 bit color. The bpp used is the one the fb is currently set at.
|
|
Fills all the screen with the same color. Currently VERY slow.
Definition at line 320 of file FBdraw.c. References FB_getxres(), FB_getyres(), and FB_putpixel(). |
|
Draws a pixel.
Definition at line 71 of file FBdraw.c. References FB_getxres(), and FB_getyres(). Referenced by FB_circle(), FB_clear_screen(), FB_hline(), FB_line(), FB_putc(), FB_rectfill(), and FB_vline(). |
|
Reads the color of a pixel.
Definition at line 86 of file FBdraw.c. References FB_getbpp(). |
|
Draws a line.
Definition at line 165 of file FBdraw.c. References FB_hline(), FB_putpixel(), and FB_vline(). Referenced by FB_triangle(). |
|
Optimized version of line() to draw a vertical line Definition at line 103 of file FBdraw.c. References FB_getxres(), FB_getyres(), and FB_putpixel(). |
|
Optimized version of line() to draw an horizontal line Definition at line 135 of file FBdraw.c. References FB_getxres(), FB_getyres(), and FB_putpixel(). |
|
Draws a rectangle (only borders).
Definition at line 241 of file FBdraw.c. References FB_hline(), and FB_vline(). |
|
Same as FB_rect, but the rectangle is filled Definition at line 253 of file FBdraw.c. References FB_getxres(), FB_getyres(), and FB_putpixel(). |
|
Draws a triangle
Definition at line 288 of file FBdraw.c. References FB_line(). |
|
Draws a circle
Definition at line 297 of file FBdraw.c. References FB_putpixel(). |
|
Returns one of the following values, they are all defined in linux/fb.h
|
|
Sets x and y respectively to the width and height of the visible screen |
|
Returns the width of the visible screen Definition at line 57 of file FButil.c. Referenced by FB_clear_screen(), FB_hline(), FB_putpixel(), FB_rectfill(), and FB_vline(). |
|
Returns the height of the visible screen Definition at line 65 of file FButil.c. Referenced by FB_clear_screen(), FB_hline(), FB_putpixel(), FB_rectfill(), and FB_vline(). |
|
Returns virtual screen width |
|
Returns virtual screen height |
|
Returns color depth the framebuffer is set to. It can be 16 or 32 Definition at line 89 of file FButil.c. Referenced by FB_getpixel(). |
|
Change the color depth of the framebuffer, this function can fail, so check always the return value:
|
|
Initialize keyboard handling, don't call if you don't need it |
|
Look at input buffer if there is some event not handled.
|
|
Ends keyboard usage, is called, if necessary by FB_end() Definition at line 88 of file FBkeyb.c. Referenced by FB_exit(). |
|
Change the font set used to draw caracters. Can also use psf files compressed with gzip.
Definition at line 34 of file FBfont.c. Referenced by FB_initlib(). |
|
Same as putc function from your favourite libc.
Definition at line 86 of file FBfont.c. References FB_putpixel(). Referenced by FB_printf(). |
|
Same as usula printf, extend to draw everywhere in the screen
Definition at line 107 of file FBfont.c. References FB_putc(). |
|
If TRUE user is on the same VT as FBlib program Definition at line 66 of file FBlib.h. Referenced by FB_exit(). |