diff options
author | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2023-10-09 17:15:05 +0200 |
---|---|---|
committer | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2023-10-09 17:15:05 +0200 |
commit | 1e49c24370a80b952bbac85a90a7d0e09e017e51 (patch) | |
tree | 0d6dfbcf5d9851c62a4d4b49ceab1d5ab0aea020 | |
parent | 064376f5c9d3f3e0bb4c46ca9a269afa9b701a71 (diff) |
Surface: Fix typos, add a TODO comment
-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); |