X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=gfx%2Fgfx.h;h=7c05c245bd19c0f7f8aca47ad4ddf5267ba35bcf;hb=c050bdecde22c15215c52b55a6107cf74147508c;hp=788bd69f3acf7577886481ed62c2d2128a6bd143;hpb=41ee2287b2f2d7ec3e73e998b06076888608ed72;p=bertos.git diff --git a/gfx/gfx.h b/gfx/gfx.h index 788bd69f..7c05c245 100755 --- a/gfx/gfx.h +++ b/gfx/gfx.h @@ -1,6 +1,6 @@ /*! * \file - * Copyright 2003, 2004 Develer S.r.l. (http://www.develer.com/) + * Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/) * Copyright 1999 Bernardo Innocenti * This file is part of DevLib - See README.devlib for information. * @@ -14,6 +14,18 @@ /*#* *#* $Log$ + *#* Revision 1.5 2006/01/17 02:31:29 bernie + *#* Add bitmap format support; Improve some comments. + *#* + *#* Revision 1.4 2006/01/16 03:30:57 bernie + *#* Make header C++ friendly. + *#* + *#* Revision 1.3 2005/11/27 23:33:40 bernie + *#* Use appconfig.h instead of cfg/config.h. + *#* + *#* Revision 1.2 2005/11/04 18:17:45 bernie + *#* Fix header guards and includes for new location of gfx module. + *#* *#* Revision 1.1 2005/11/04 18:11:35 bernie *#* Move graphics stuff from mware/ to gfx/. *#* @@ -28,36 +40,16 @@ *#* *#* Revision 1.9 2005/01/20 18:46:31 aleph *#* Fix progmem includes. - *#* - *#* Revision 1.8 2004/11/01 15:14:07 bernie - *#* Update to current coding conventions. - *#* - *#* Revision 1.7 2004/09/20 03:29:06 bernie - *#* Conditionalize AVR-specific code. - *#* - *#* Revision 1.6 2004/09/14 21:01:08 bernie - *#* Rename rectangle drawing functions; Unify filled/cleared implementations. - *#* - *#* Revision 1.4 2004/08/10 07:00:16 bernie - *#* Add missing header. - *#* - *#* Revision 1.3 2004/08/04 03:16:59 bernie - *#* Switch to new DevLib CONFIG_ convention. - *#* - *#* Revision 1.2 2004/06/03 11:27:09 bernie - *#* Add dual-license information. - *#* - *#* Revision 1.1 2004/05/23 15:43:16 bernie - *#* Import mware modules. *#*/ -#ifndef MWARE_GFX_H -#define MWARE_GFX_H +#ifndef GFX_GFX_H +#define GFX_GFX_H -#include +#include #include #include +EXTERN_C_BEGIN /*! Common type for coordinates expressed in pixel units */ typedef int coord_t; @@ -78,6 +70,7 @@ typedef struct Bitmap { uint8_t *raster; /*!< Pointer to byte array to hold the data */ coord_t width, height; /*!< Width/Height in pixels */ + coord_t stride; /*!< Bytes per row. */ coord_t penX, penY; /*!< Current pen position MoveTo()/LineTo() */ Rect cr; /*!< Clip drawing inside this rectangle */ @@ -120,4 +113,6 @@ extern coord_t gfx_transformY(Bitmap *bm, vcoord_t y); extern void gfx_vline(Bitmap *bm, vcoord_t x1, vcoord_t y1, vcoord_t x2, vcoord_t y2); #endif /* CONFIG_GFX_VCOORDS */ -#endif /* MWARE_GFX_H */ +EXTERN_C_END + +#endif /* GFX_GFX_H */