diff options
-rw-r--r-- | cairomm/surface.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/cairomm/surface.h b/cairomm/surface.h index 18b1bca..01ef589 100644 --- a/cairomm/surface.h +++ b/cairomm/surface.h @@ -184,13 +184,13 @@ public: RECORDING = CAIRO_SURFACE_TYPE_RECORDING, /** - * The surface is a OpenVg surface + * The surface is a OpenVG surface * @since 1.10 */ VG = CAIRO_SURFACE_TYPE_VG, /** - * The surface is of type OpenGl + * The surface is of type OpenGL * @since 1.10 */ GL = CAIRO_SURFACE_TYPE_GL, @@ -227,9 +227,9 @@ public: SUBSURFACE = CAIRO_SURFACE_TYPE_SUBSURFACE }; + //TODO: Add new formats (at least 3) when we can add API. See cairo/src/cairo.h. /** - * Format is used to identify the memory format of - * image data. + * %Cairo::Surface::Format is used to identify the memory format of image data. * * New entries may be added in future versions. **/ @@ -239,7 +239,7 @@ public: * Each pixel is a 32-bit quantity, with alpha in the upper 8 bits, then * red, then green, then blue. The 32-bit quantities are stored * native-endian. Pre-multiplied alpha is used. (That is, 50% transparent - * red is 0x80800000, + * red is 0x80800000, not 0x80ff0000.) */ ARGB32 = CAIRO_FORMAT_ARGB32, @@ -255,20 +255,21 @@ public: A8 = CAIRO_FORMAT_A8, /** - * Each pikel is a 1-bit quentity holding an alpha value. Pixels are packed + * Each pixel is a 1-bit quentity holding an alpha value. Pixels are packed * together into 32-bit quantities. The ordering of the bits matches the - * endianess of the platform. On a big-endian machine, the first pixel is in + * endianness of the platform. On a big-endian machine, the first pixel is in * the uppermost bit, on a little endian machine the first pixel is in the * least-significant bit. */ A1 = CAIRO_FORMAT_A1, /** - * Each fixel is a 16-bit quantity with red in the upper 5 bits, then green + * Each pixel is a 16-bit quantity with red in the upper 5 bits, then green * in the middle 6 bits, and blue in the lower 5 bits */ RGB16_565 = CAIRO_FORMAT_RGB16_565 }; + /** For example: * <code> * ErrorStatus my_write_func(unsigned char* data, unsigned int length); |