2019-04-07 21:23:43 +02:00
|
|
|
#include <nuttx/config.h>
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2019-04-08 01:41:45 +02:00
|
|
|
#include <nuttx/video/rgbcolors.h>
|
|
|
|
#include <nuttx/nx/nxcursor.h>
|
2019-04-07 19:22:31 +02:00
|
|
|
|
2019-04-07 21:23:43 +02:00
|
|
|
#if CONFIG_NXWIDGETS_BPP == 8
|
2019-04-10 17:15:05 +02:00
|
|
|
# define FGCOLOR1 RGB8_WHITE
|
|
|
|
# define FGCOLOR2 RGB8_BLACK
|
|
|
|
# define FGCOLOR3 RGB8_GRAY
|
2019-04-07 21:23:43 +02:00
|
|
|
#elif CONFIG_NXWIDGETS_BPP == 16
|
2019-04-10 17:15:05 +02:00
|
|
|
# define FGCOLOR1 RGB16_WHITE
|
|
|
|
# define FGCOLOR2 RGB16_BLACK
|
|
|
|
# define FGCOLOR3 RGB16_GRAY
|
2019-04-07 21:23:43 +02:00
|
|
|
#elif CONFIG_NXWIDGETS_BPP == 24 || CONFIG_NXWIDGETS_BPP == 32
|
2019-04-10 17:15:05 +02:00
|
|
|
# define FGCOLOR1 RGB24_WHITE
|
|
|
|
# define FGCOLOR2 RGB24_BLACK
|
|
|
|
# define FGCOLOR3 RGB24_GRAY
|
2019-04-07 21:23:43 +02:00
|
|
|
#else
|
|
|
|
# error "Pixel depth not supported (CONFIG_NXWIDGETS_BPP)"
|
|
|
|
#endif
|
|
|
|
|
2019-04-07 19:22:31 +02:00
|
|
|
static const uint8_t g_arrow1Image[] =
|
|
|
|
{
|
2019-04-13 23:09:57 +02:00
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* Row 0 */
|
|
|
|
0x2a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* Row 1 */
|
|
|
|
0x2a, 0xa0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* Row 2 */
|
|
|
|
0x2b, 0xaa, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, /* Row 3 */
|
|
|
|
0x0a, 0x5e, 0xa8, 0x00, 0x00, 0x00, 0x00, 0x00, /* Row 4 */
|
|
|
|
0x0a, 0x55, 0x7a, 0xa8, 0x00, 0x00, 0x00, 0x00, /* Row 5 */
|
|
|
|
0x02, 0xd5, 0x57, 0xaa, 0x80, 0x00, 0x00, 0x00, /* Row 6 */
|
|
|
|
0x02, 0x95, 0x55, 0x7a, 0xa8, 0x00, 0x00, 0x00, /* Row 7 */
|
|
|
|
0x02, 0xb5, 0x55, 0x55, 0xaa, 0x80, 0x00, 0x00, /* Row 8 */
|
|
|
|
0x00, 0xb5, 0x55, 0x55, 0x5e, 0xaa, 0x00, 0x00, /* Row 9 */
|
2019-04-10 17:15:05 +02:00
|
|
|
0x00, 0xa5, 0x55, 0x55, 0x55, 0x7a, 0xa8, 0x00, /* Row 10 */
|
2019-04-13 23:09:57 +02:00
|
|
|
0x00, 0x2d, 0x55, 0x55, 0x55, 0x55, 0xaa, 0x00, /* Row 11 */
|
2019-04-10 17:15:05 +02:00
|
|
|
0x00, 0x29, 0x55, 0x55, 0x55, 0x5e, 0xa8, 0x00, /* Row 12 */
|
|
|
|
0x00, 0x2b, 0x55, 0x55, 0x55, 0x6a, 0x80, 0x00, /* Row 13 */
|
|
|
|
0x00, 0x2a, 0x55, 0x55, 0x57, 0xaa, 0x00, 0x00, /* Row 14 */
|
|
|
|
0x00, 0x0a, 0x55, 0x55, 0x5e, 0x80, 0x00, 0x00, /* Row 15 */
|
|
|
|
0x00, 0x0a, 0x95, 0x55, 0x56, 0xa0, 0x00, 0x00, /* Row 16 */
|
|
|
|
0x00, 0x02, 0x95, 0x55, 0x55, 0xa8, 0x00, 0x00, /* Row 17 */
|
|
|
|
0x00, 0x02, 0xb5, 0x57, 0x55, 0xea, 0x00, 0x00, /* Row 18 */
|
2019-04-13 23:09:57 +02:00
|
|
|
0x00, 0x00, 0xa5, 0x5e, 0x95, 0x7a, 0x80, 0x00, /* Row 19 */
|
2019-04-10 17:15:05 +02:00
|
|
|
0x00, 0x00, 0xa5, 0x5a, 0xad, 0x56, 0xa0, 0x00, /* Row 20 */
|
2019-04-13 23:09:57 +02:00
|
|
|
0x00, 0x00, 0x2d, 0x68, 0xab, 0x55, 0xa8, 0x00, /* Row 21 */
|
2019-04-10 17:15:05 +02:00
|
|
|
0x00, 0x00, 0x29, 0xe8, 0x2a, 0x55, 0x6a, 0x00, /* Row 22 */
|
|
|
|
0x00, 0x00, 0x29, 0xa8, 0x0a, 0x95, 0x7a, 0x80, /* Row 23 */
|
|
|
|
0x00, 0x00, 0x0a, 0xa0, 0x02, 0xa5, 0x5e, 0xa0, /* Row 24 */
|
|
|
|
0x00, 0x00, 0x0a, 0x80, 0x00, 0xab, 0x5a, 0x80, /* Row 25 */
|
|
|
|
0x00, 0x00, 0x0a, 0x80, 0x00, 0x2a, 0xea, 0x00, /* Row 26 */
|
2019-04-13 23:09:57 +02:00
|
|
|
0x00, 0x00, 0x02, 0x00, 0x00, 0x0a, 0xa8, 0x00, /* Row 27 */
|
2019-04-10 17:15:05 +02:00
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xa0, 0x00, /* Row 28 */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, /* Row 29 */
|
|
|
|
};
|
2019-04-07 19:22:31 +02:00
|
|
|
|
2019-04-08 01:41:45 +02:00
|
|
|
const struct nx_cursorimage_s g_arrow1Cursor =
|
2019-04-07 19:22:31 +02:00
|
|
|
{
|
2019-04-08 01:41:45 +02:00
|
|
|
.size =
|
|
|
|
{
|
2019-04-10 17:15:05 +02:00
|
|
|
.w = 30,
|
2019-04-08 01:41:45 +02:00
|
|
|
.h = 30
|
|
|
|
},
|
2019-04-07 21:23:43 +02:00
|
|
|
.color1 =
|
|
|
|
{
|
|
|
|
FGCOLOR1
|
|
|
|
},
|
|
|
|
.color2 =
|
|
|
|
{
|
|
|
|
FGCOLOR1
|
|
|
|
},
|
|
|
|
.color3 =
|
|
|
|
{
|
|
|
|
FGCOLOR3
|
|
|
|
},
|
|
|
|
.image = g_arrow1Image
|
2019-04-07 19:22:31 +02:00
|
|
|
};
|
|
|
|
|