NuMaker emWin HMI

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers fbutils.h Source File

fbutils.h

00001 /*
00002  * fbutils.h
00003  *
00004  * Headers for utility routines for framebuffer interaction
00005  *
00006  * Copyright 2002 Russell King and Doug Lowder
00007  *
00008  * This file is placed under the GPL.  Please see the
00009  * file COPYING for details.
00010  *
00011  */
00012 
00013 #ifndef _FBUTILS_H
00014 #define _FBUTILS_H
00015 #if 0
00016 //#include <asm/types.h>
00017 
00018 /* This constant, being ORed with the color index tells the library
00019  * to draw in exclusive-or mode (that is, drawing the same second time
00020  * in the same place will remove the element leaving the background intact).
00021  */
00022 #define XORMODE 0x80000000
00023 
00024 extern unsigned int xres, yres;
00025 
00026 void setcolor(unsigned colidx, unsigned value);
00027 void put_cross(int x, int y, unsigned colidx);
00028 void put_string(int x, int y, char *s, unsigned colidx);
00029 void put_string_center(int x, int y, char *s, unsigned colidx);
00030 void pixel (int x, int y, unsigned colidx);
00031 void line (int x1, int y1, int x2, int y2, unsigned colidx);
00032 void rect (int x1, int y1, int x2, int y2, unsigned colidx);
00033 void fillrect (int x1, int y1, int x2, int y2, unsigned colidx);
00034 #endif
00035 #endif /* _FBUTILS_H */