diff --git a/graphics/nxglyphs/images/cursor-arrow1-16x16.png b/graphics/nxglyphs/images/cursor-arrow1-16x16.png new file mode 100644 index 000000000..c345262d1 Binary files /dev/null and b/graphics/nxglyphs/images/cursor-arrow1-16x16.png differ diff --git a/graphics/nxglyphs/images/cursor-arrow1-64x64.png b/graphics/nxglyphs/images/cursor-arrow1-64x64.png index ce9b4599e..2c4b5f8cb 100644 Binary files a/graphics/nxglyphs/images/cursor-arrow1-64x64.png and b/graphics/nxglyphs/images/cursor-arrow1-64x64.png differ diff --git a/graphics/nxglyphs/images/cursor-arrow2-16x16.png b/graphics/nxglyphs/images/cursor-arrow2-16x16.png new file mode 100644 index 000000000..2e295652f Binary files /dev/null and b/graphics/nxglyphs/images/cursor-arrow2-16x16.png differ diff --git a/graphics/nxglyphs/images/cursor-arrow2-64x64.png b/graphics/nxglyphs/images/cursor-arrow2-64x64.png index 1cf3e8e87..e3c552d7a 100644 Binary files a/graphics/nxglyphs/images/cursor-arrow2-64x64.png and b/graphics/nxglyphs/images/cursor-arrow2-64x64.png differ diff --git a/graphics/nxglyphs/images/cursor-grab-14x16.png b/graphics/nxglyphs/images/cursor-grab-14x16.png new file mode 100644 index 000000000..99321e539 Binary files /dev/null and b/graphics/nxglyphs/images/cursor-grab-14x16.png differ diff --git a/graphics/nxglyphs/images/cursor-grab-54x64.png b/graphics/nxglyphs/images/cursor-grab-54x64.png index 7efee6c98..13af71b7d 100644 Binary files a/graphics/nxglyphs/images/cursor-grab-54x64.png and b/graphics/nxglyphs/images/cursor-grab-54x64.png differ diff --git a/graphics/nxglyphs/images/cursor-wait-13x16.png b/graphics/nxglyphs/images/cursor-wait-13x16.png new file mode 100644 index 000000000..1061d2a72 Binary files /dev/null and b/graphics/nxglyphs/images/cursor-wait-13x16.png differ diff --git a/graphics/nxglyphs/images/cursor-wait-50x64.png b/graphics/nxglyphs/images/cursor-wait-50x64.png index a35368791..1595bf85d 100644 Binary files a/graphics/nxglyphs/images/cursor-wait-50x64.png and b/graphics/nxglyphs/images/cursor-wait-50x64.png differ diff --git a/graphics/nxglyphs/images/cursor-zoomin-16x16.png b/graphics/nxglyphs/images/cursor-zoomin-16x16.png new file mode 100644 index 000000000..ad9cec617 Binary files /dev/null and b/graphics/nxglyphs/images/cursor-zoomin-16x16.png differ diff --git a/graphics/nxglyphs/images/cursor-zoomin-64x64.png b/graphics/nxglyphs/images/cursor-zoomin-64x64.png index febd3e35b..b2204c967 100644 Binary files a/graphics/nxglyphs/images/cursor-zoomin-64x64.png and b/graphics/nxglyphs/images/cursor-zoomin-64x64.png differ diff --git a/graphics/nxglyphs/images/cursor-zoomout-16x16.png b/graphics/nxglyphs/images/cursor-zoomout-16x16.png new file mode 100644 index 000000000..3bf564467 Binary files /dev/null and b/graphics/nxglyphs/images/cursor-zoomout-16x16.png differ diff --git a/graphics/nxglyphs/images/cursor-zoomout-63x64.png b/graphics/nxglyphs/images/cursor-zoomout-63x64.png index 598be82eb..6bf10a4b6 100644 Binary files a/graphics/nxglyphs/images/cursor-zoomout-63x64.png and b/graphics/nxglyphs/images/cursor-zoomout-63x64.png differ diff --git a/graphics/nxglyphs/include/cursor-arrow1-16x16.h b/graphics/nxglyphs/include/cursor-arrow1-16x16.h new file mode 100644 index 000000000..c13a13f5a --- /dev/null +++ b/graphics/nxglyphs/include/cursor-arrow1-16x16.h @@ -0,0 +1,65 @@ +#include + +#include + +#include +#include + +#if CONFIG_NXWIDGETS_BPP == 8 +# define FGCOLOR1 RGB8_WHITE +# define FGCOLOR2 RGB8_BLACK +# define FGCOLOR3 RGB8_GRAY +#elif CONFIG_NXWIDGETS_BPP == 16 +# define FGCOLOR1 RGB16_WHITE +# define FGCOLOR2 RGB16_BLACK +# define FGCOLOR3 RGB16_GRAY +#elif CONFIG_NXWIDGETS_BPP == 24 || CONFIG_NXWIDGETS_BPP == 32 +# define FGCOLOR1 RGB24_WHITE +# define FGCOLOR2 RGB24_BLACK +# define FGCOLOR3 RGB24_GRAY +#else +# error "Pixel depth not supported (CONFIG_NXWIDGETS_BPP)" +#endif + +static const uint8_t g_arrow1Image[] = +{ + 0x80, 0x00, 0x00, 0x00, /* Row 0 */ + 0x2a, 0x00, 0x00, 0x00, /* Row 1 */ + 0x27, 0xa8, 0x00, 0x00, /* Row 2 */ + 0x2d, 0x7a, 0x80, 0x00, /* Row 3 */ + 0x09, 0x55, 0xea, 0x00, /* Row 4 */ + 0x09, 0x55, 0x5e, 0xa0, /* Row 5 */ + 0x0a, 0x55, 0x55, 0xe8, /* Row 6 */ + 0x02, 0x55, 0x56, 0x80, /* Row 7 */ + 0x02, 0xd5, 0x5a, 0x00, /* Row 8 */ + 0x00, 0x95, 0x56, 0x00, /* Row 9 */ + 0x00, 0xb5, 0x95, 0x80, /* Row 10 */ + 0x00, 0xa6, 0xa5, 0x60, /* Row 11 */ + 0x00, 0x2e, 0x09, 0x58, /* Row 12 */ + 0x00, 0x28, 0x02, 0x56, /* Row 13 */ + 0x00, 0x08, 0x00, 0x98, /* Row 14 */ + 0x00, 0x00, 0x00, 0x20, /* Row 15 */ +}; + +const struct nx_cursorimage_s g_arrow1Cursor = +{ + .size = + { + .w = 16, + .h = 16 + }, + .color1 = + { + FGCOLOR1 + }, + .color2 = + { + FGCOLOR1 + }, + .color3 = + { + FGCOLOR3 + }, + .image = g_arrow1Image +}; + diff --git a/graphics/nxglyphs/include/cursor-arrow2-16x16.h b/graphics/nxglyphs/include/cursor-arrow2-16x16.h new file mode 100644 index 000000000..2bae6eb03 --- /dev/null +++ b/graphics/nxglyphs/include/cursor-arrow2-16x16.h @@ -0,0 +1,65 @@ +#include + +#include + +#include +#include + +#if CONFIG_NXWIDGETS_BPP == 8 +# define FGCOLOR1 RGB8_WHITE +# define FGCOLOR2 RGB8_BLACK +# define FGCOLOR3 RGB8_GRAY +#elif CONFIG_NXWIDGETS_BPP == 16 +# define FGCOLOR1 RGB16_WHITE +# define FGCOLOR2 RGB16_BLACK +# define FGCOLOR3 RGB16_GRAY +#elif CONFIG_NXWIDGETS_BPP == 24 || CONFIG_NXWIDGETS_BPP == 32 +# define FGCOLOR1 RGB24_WHITE +# define FGCOLOR2 RGB24_BLACK +# define FGCOLOR3 RGB24_GRAY +#else +# error "Pixel depth not supported (CONFIG_NXWIDGETS_BPP)" +#endif + +static const uint8_t g_arrow2Image[] = +{ + 0xa0, 0x00, 0x00, 0x00, /* Row 0 */ + 0x2a, 0x00, 0x00, 0x00, /* Row 1 */ + 0x27, 0xa0, 0x00, 0x00, /* Row 2 */ + 0x2d, 0x7a, 0x00, 0x00, /* Row 3 */ + 0x09, 0x57, 0xa8, 0x00, /* Row 4 */ + 0x0b, 0x55, 0x5e, 0x80, /* Row 5 */ + 0x02, 0x55, 0x55, 0x68, /* Row 6 */ + 0x02, 0xd5, 0x55, 0xea, /* Row 7 */ + 0x00, 0x95, 0x5e, 0x80, /* Row 8 */ + 0x00, 0x95, 0x68, 0x00, /* Row 9 */ + 0x00, 0xb5, 0xe0, 0x00, /* Row 10 */ + 0x00, 0x25, 0x80, 0x00, /* Row 11 */ + 0x00, 0x27, 0x80, 0x00, /* Row 12 */ + 0x00, 0x0a, 0x00, 0x00, /* Row 13 */ + 0x00, 0x0a, 0x00, 0x00, /* Row 14 */ + 0x00, 0x02, 0x00, 0x00, /* Row 15 */ +}; + +const struct nx_cursorimage_s g_arrow2Cursor = +{ + .size = + { + .w = 16, + .h = 16 + }, + .color1 = + { + FGCOLOR1 + }, + .color2 = + { + FGCOLOR1 + }, + .color3 = + { + FGCOLOR3 + }, + .image = g_arrow2Image +}; + diff --git a/graphics/nxglyphs/include/cursor-grab-14x16.h b/graphics/nxglyphs/include/cursor-grab-14x16.h new file mode 100644 index 000000000..9ab85900e --- /dev/null +++ b/graphics/nxglyphs/include/cursor-grab-14x16.h @@ -0,0 +1,65 @@ +#include + +#include + +#include +#include + +#if CONFIG_NXWIDGETS_BPP == 8 +# define FGCOLOR1 RGB8_WHITE +# define FGCOLOR2 RGB8_BLACK +# define FGCOLOR3 RGB8_GRAY +#elif CONFIG_NXWIDGETS_BPP == 16 +# define FGCOLOR1 RGB16_WHITE +# define FGCOLOR2 RGB16_BLACK +# define FGCOLOR3 RGB16_GRAY +#elif CONFIG_NXWIDGETS_BPP == 24 || CONFIG_NXWIDGETS_BPP == 32 +# define FGCOLOR1 RGB24_WHITE +# define FGCOLOR2 RGB24_BLACK +# define FGCOLOR3 RGB24_GRAY +#else +# error "Pixel depth not supported (CONFIG_NXWIDGETS_BPP)" +#endif + +static const uint8_t g_grabImage[] = +{ + 0x00, 0x0a, 0x00, 0x00, /* Row 0 */ + 0x02, 0xa6, 0xa0, 0x00, /* Row 1 */ + 0x0a, 0x67, 0x98, 0x00, /* Row 2 */ + 0x0a, 0x67, 0x98, 0x00, /* Row 3 */ + 0x0a, 0x67, 0x9a, 0xa0, /* Row 4 */ + 0x2a, 0x77, 0x99, 0xa0, /* Row 5 */ + 0xba, 0x77, 0xd9, 0xa0, /* Row 6 */ + 0x9a, 0x55, 0x5d, 0xa0, /* Row 7 */ + 0x9b, 0x55, 0x55, 0xa0, /* Row 8 */ + 0x95, 0x55, 0x55, 0xe0, /* Row 9 */ + 0x95, 0x55, 0x55, 0xe0, /* Row 10 */ + 0xa5, 0x55, 0x55, 0xe0, /* Row 11 */ + 0x2d, 0x55, 0x55, 0xe0, /* Row 12 */ + 0x09, 0x55, 0x55, 0x80, /* Row 13 */ + 0x0b, 0x55, 0x57, 0x80, /* Row 14 */ + 0x02, 0xaa, 0xaa, 0x00, /* Row 15 */ +}; + +const struct nx_cursorimage_s g_grabCursor = +{ + .size = + { + .w = 14, + .h = 16 + }, + .color1 = + { + FGCOLOR1 + }, + .color2 = + { + FGCOLOR1 + }, + .color3 = + { + FGCOLOR3 + }, + .image = g_grabImage +}; + diff --git a/graphics/nxglyphs/include/cursor-wait-13x16.h b/graphics/nxglyphs/include/cursor-wait-13x16.h new file mode 100644 index 000000000..02c6a13f1 --- /dev/null +++ b/graphics/nxglyphs/include/cursor-wait-13x16.h @@ -0,0 +1,65 @@ +#include + +#include + +#include +#include + +#if CONFIG_NXWIDGETS_BPP == 8 +# define FGCOLOR1 RGB8_WHITE +# define FGCOLOR2 RGB8_BLACK +# define FGCOLOR3 RGB8_GRAY +#elif CONFIG_NXWIDGETS_BPP == 16 +# define FGCOLOR1 RGB16_WHITE +# define FGCOLOR2 RGB16_BLACK +# define FGCOLOR3 RGB16_GRAY +#elif CONFIG_NXWIDGETS_BPP == 24 || CONFIG_NXWIDGETS_BPP == 32 +# define FGCOLOR1 RGB24_WHITE +# define FGCOLOR2 RGB24_BLACK +# define FGCOLOR3 RGB24_GRAY +#else +# error "Pixel depth not supported (CONFIG_NXWIDGETS_BPP)" +#endif + +static const uint8_t g_waitImage[] = +{ + 0xaa, 0xaa, 0xaa, 0x80, /* Row 0 */ + 0x09, 0x55, 0x58, 0x00, /* Row 1 */ + 0x09, 0x55, 0x58, 0x00, /* Row 2 */ + 0x09, 0x55, 0x58, 0x00, /* Row 3 */ + 0x09, 0x55, 0x58, 0x00, /* Row 4 */ + 0x02, 0x55, 0x60, 0x00, /* Row 5 */ + 0x00, 0x95, 0x80, 0x00, /* Row 6 */ + 0x00, 0x26, 0x00, 0x00, /* Row 7 */ + 0x00, 0x26, 0x00, 0x00, /* Row 8 */ + 0x00, 0x95, 0x80, 0x00, /* Row 9 */ + 0x02, 0x55, 0x60, 0x00, /* Row 10 */ + 0x09, 0x55, 0x58, 0x00, /* Row 11 */ + 0x09, 0x55, 0x58, 0x00, /* Row 12 */ + 0x09, 0x55, 0x58, 0x00, /* Row 13 */ + 0x09, 0x55, 0x58, 0x00, /* Row 14 */ + 0xaa, 0xaa, 0xaa, 0x80, /* Row 15 */ +}; + +const struct nx_cursorimage_s g_waitCursor = +{ + .size = + { + .w = 13, + .h = 16 + }, + .color1 = + { + FGCOLOR1 + }, + .color2 = + { + FGCOLOR1 + }, + .color3 = + { + FGCOLOR3 + }, + .image = g_waitImage +}; + diff --git a/graphics/nxglyphs/include/cursor-zoomin-16x16.h b/graphics/nxglyphs/include/cursor-zoomin-16x16.h new file mode 100644 index 000000000..7e6c3c5c1 --- /dev/null +++ b/graphics/nxglyphs/include/cursor-zoomin-16x16.h @@ -0,0 +1,65 @@ +#include + +#include + +#include +#include + +#if CONFIG_NXWIDGETS_BPP == 8 +# define FGCOLOR1 RGB8_WHITE +# define FGCOLOR2 RGB8_BLACK +# define FGCOLOR3 RGB8_GRAY +#elif CONFIG_NXWIDGETS_BPP == 16 +# define FGCOLOR1 RGB16_WHITE +# define FGCOLOR2 RGB16_BLACK +# define FGCOLOR3 RGB16_GRAY +#elif CONFIG_NXWIDGETS_BPP == 24 || CONFIG_NXWIDGETS_BPP == 32 +# define FGCOLOR1 RGB24_WHITE +# define FGCOLOR2 RGB24_BLACK +# define FGCOLOR3 RGB24_GRAY +#else +# error "Pixel depth not supported (CONFIG_NXWIDGETS_BPP)" +#endif + +static const uint8_t g_zoomInImage[] = +{ + 0x00, 0xaa, 0x00, 0x00, /* Row 0 */ + 0x0a, 0xd7, 0xa0, 0x00, /* Row 1 */ + 0x29, 0x55, 0x68, 0x00, /* Row 2 */ + 0x25, 0x55, 0x58, 0x00, /* Row 3 */ + 0xb5, 0x59, 0x5e, 0x00, /* Row 4 */ + 0x95, 0x59, 0x56, 0x00, /* Row 5 */ + 0x95, 0xaa, 0xd6, 0x00, /* Row 6 */ + 0xb5, 0x59, 0x5e, 0x00, /* Row 7 */ + 0x25, 0x5d, 0x58, 0x00, /* Row 8 */ + 0x29, 0x55, 0x7e, 0x00, /* Row 9 */ + 0x0a, 0xd7, 0xb7, 0x80, /* Row 10 */ + 0x00, 0xaa, 0x2d, 0xe0, /* Row 11 */ + 0x00, 0x00, 0x0b, 0x78, /* Row 12 */ + 0x00, 0x00, 0x02, 0xde, /* Row 13 */ + 0x00, 0x00, 0x00, 0xb6, /* Row 14 */ + 0x00, 0x00, 0x00, 0x2a, /* Row 15 */ +}; + +const struct nx_cursorimage_s g_zoomInCursor = +{ + .size = + { + .w = 16, + .h = 16 + }, + .color1 = + { + FGCOLOR1 + }, + .color2 = + { + FGCOLOR1 + }, + .color3 = + { + FGCOLOR3 + }, + .image = g_zoomInImage +}; + diff --git a/graphics/nxglyphs/include/cursor-zoomout-16x16.h b/graphics/nxglyphs/include/cursor-zoomout-16x16.h new file mode 100644 index 000000000..cd024be8e --- /dev/null +++ b/graphics/nxglyphs/include/cursor-zoomout-16x16.h @@ -0,0 +1,65 @@ +#include + +#include + +#include +#include + +#if CONFIG_NXWIDGETS_BPP == 8 +# define FGCOLOR1 RGB8_WHITE +# define FGCOLOR2 RGB8_BLACK +# define FGCOLOR3 RGB8_GRAY +#elif CONFIG_NXWIDGETS_BPP == 16 +# define FGCOLOR1 RGB16_WHITE +# define FGCOLOR2 RGB16_BLACK +# define FGCOLOR3 RGB16_GRAY +#elif CONFIG_NXWIDGETS_BPP == 24 || CONFIG_NXWIDGETS_BPP == 32 +# define FGCOLOR1 RGB24_WHITE +# define FGCOLOR2 RGB24_BLACK +# define FGCOLOR3 RGB24_GRAY +#else +# error "Pixel depth not supported (CONFIG_NXWIDGETS_BPP)" +#endif + +static const uint8_t g_zoomOutImage[] = +{ + 0x00, 0xaa, 0x00, 0x00, /* Row 0 */ + 0x0a, 0xd7, 0xa0, 0x00, /* Row 1 */ + 0x29, 0x55, 0x68, 0x00, /* Row 2 */ + 0x25, 0x55, 0x58, 0x00, /* Row 3 */ + 0xb5, 0x55, 0x5e, 0x00, /* Row 4 */ + 0x95, 0xff, 0x56, 0x00, /* Row 5 */ + 0x95, 0xaa, 0xd6, 0x00, /* Row 6 */ + 0xb5, 0x55, 0x5e, 0x00, /* Row 7 */ + 0x25, 0x55, 0x58, 0x00, /* Row 8 */ + 0x29, 0x55, 0x7a, 0x00, /* Row 9 */ + 0x0a, 0xd7, 0xb7, 0x80, /* Row 10 */ + 0x00, 0xaa, 0x2d, 0xe0, /* Row 11 */ + 0x00, 0x00, 0x0b, 0x78, /* Row 12 */ + 0x00, 0x00, 0x02, 0xde, /* Row 13 */ + 0x00, 0x00, 0x00, 0xb6, /* Row 14 */ + 0x00, 0x00, 0x00, 0x2a, /* Row 15 */ +}; + +const struct nx_cursorimage_s g_zoomOutCursor = +{ + .size = + { + .w = 16, + .h = 16 + }, + .color1 = + { + FGCOLOR1 + }, + .color2 = + { + FGCOLOR1 + }, + .color3 = + { + FGCOLOR3 + }, + .image = g_zoomOutImage +}; +