nuttx-apps/graphics/nxglyphs/include/cursor-grab-25x30.h

79 lines
2.5 KiB
C

#include <nuttx/config.h>
#include <stdint.h>
#include <nuttx/video/rgbcolors.h>
#include <nuttx/nx/nxcursor.h>
#if CONFIG_NXWIDGETS_BPP == 8
# define FGCOLOR1 RGB8WHITE
# define FGCOLOR2 RGB8BLACK
# define FGCOLOR3 RGB8GRAY
#elif CONFIG_NXWIDGETS_BPP == 16
# define FGCOLOR1 RGB16WHITE
# define FGCOLOR2 RGB18BLACK
# define FGCOLOR3 RGB16GRAY
#elif CONFIG_NXWIDGETS_BPP == 24 || CONFIG_NXWIDGETS_BPP == 32
# define FGCOLOR1 RGB24WHITE
# define FGCOLOR2 RGB24BLACK
# define FGCOLOR3 RGB24GRAY
#else
# error "Pixel depth not supported (CONFIG_NXWIDGETS_BPP)"
#endif
static const uint8_t g_grabImage[] =
{
0x00 0x00 0x02 0xc0 0x00 0x00 0x00 /* Row 0 */
0x00 0x00 0x3a 0xa0 0x00 0x00 0x00 /* Row 1 */
0x00 0x3a 0xeb 0xa8 0xc0 0x00 0x00 /* Row 2 */
0x00 0xea 0xad 0x6a 0xa8 0x00 0x00 /* Row 3 */
0x00 0xad 0xad 0x6a 0xab 0x00 0x00 /* Row 4 */
0x00 0xa5 0xad 0x69 0x5a 0x00 0x00 /* Row 5 */
0x00 0xa5 0xad 0x69 0x5a 0xec 0x00 /* Row 6 */
0x00 0xa5 0xad 0x69 0x5a 0xaa 0x00 /* Row 7 */
0x00 0xa5 0xad 0x69 0x5a 0xba 0xc0 /* Row 8 */
0x3a 0xa5 0xe5 0x69 0x5a 0x5e 0x80 /* Row 9 */
0xeb 0xa5 0x55 0x69 0x5a 0x56 0x80 /* Row 10 */
0xad 0xa5 0x55 0x55 0x5a 0x56 0x80 /* Row 11 */
0xa5 0xa5 0x55 0x55 0x5a 0x56 0x80 /* Row 12 */
0xa5 0xa5 0x55 0x55 0x55 0x56 0x80 /* Row 13 */
0xa5 0xa5 0x55 0x55 0x55 0x56 0x80 /* Row 14 */
0xad 0xb5 0x55 0x55 0x55 0x56 0x80 /* Row 15 */
0xad 0x55 0x55 0x55 0x55 0x56 0x80 /* Row 16 */
0xed 0x55 0x55 0x55 0x55 0x5e 0x80 /* Row 17 */
0xed 0x55 0x55 0x55 0x55 0x5e 0x80 /* Row 18 */
0xe9 0x55 0x55 0x55 0x55 0x5a 0xc0 /* Row 19 */
0x29 0x55 0x55 0x55 0x55 0x5a 0x00 /* Row 20 */
0x2b 0x55 0x55 0x55 0x55 0x5a 0x00 /* Row 21 */
0x3a 0x55 0x55 0x55 0x55 0x7a 0x00 /* Row 22 */
0x0a 0x55 0x55 0x55 0x55 0x6b 0x00 /* Row 23 */
0x0e 0xd5 0x55 0x55 0x55 0x68 0x00 /* Row 24 */
0x02 0x95 0x55 0x55 0x55 0x68 0x00 /* Row 25 */
0x00 0xa5 0x55 0x55 0x55 0x6c 0x00 /* Row 26 */
0x00 0xaf 0xff 0xff 0xff 0xe0 0x00 /* Row 27 */
0x00 0xaa 0xaa 0xaa 0xaa 0xa0 0x00 /* Row 28 */
0x00 0x2a 0xaa 0xaa 0xaa 0xb0 0x00 /* Row 29 */
}
const struct nx_cursorimage_s g_grabCursor =
{
.size =
{
.w = 25
.h = 30
},
.color1 =
{
FGCOLOR1
},
.color2 =
{
FGCOLOR1
},
.color3 =
{
FGCOLOR3
},
.image = g_grabImage
};