nxglyphs.hxx 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. /****************************************************************************
  2. * apps/include/graphics/nxwidgets/nxglyphs.hxx
  3. *
  4. * Licensed to the Apache Software Foundation (ASF) under one or more
  5. * contributor license agreements. See the NOTICE file distributed with
  6. * this work for additional information regarding copyright ownership. The
  7. * ASF licenses this file to you under the Apache License, Version 2.0 (the
  8. * "License"); you may not use this file except in compliance with the
  9. * License. You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing, software
  14. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  15. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  16. * License for the specific language governing permissions and limitations
  17. * under the License.
  18. *
  19. ****************************************************************************/
  20. #ifndef __APPS_INCLUDE_GRAPHICS_NXGLYPHS_HXX
  21. #define __APPS_INCLUDE_GRAPHICS_NXGLYPHS_HXX
  22. /****************************************************************************
  23. * Included Files
  24. ****************************************************************************/
  25. #include <nuttx/config.h>
  26. #include <stdint.h>
  27. #include <stdbool.h>
  28. #include <nuttx/nx/nxglib.h>
  29. #include "graphics/nxwidgets/nxconfig.hxx"
  30. /****************************************************************************
  31. * Pre-Processor Definitions
  32. ****************************************************************************/
  33. /* Default background color */
  34. #ifndef CONFIG_NXGLYPHS_BACKGROUNDCOLOR
  35. # define CONFIG_NXGLYPHS_BACKGROUNDCOLOR MKRGB(148,189,215)
  36. #endif
  37. /****************************************************************************
  38. * Bitmap Glyph References
  39. ****************************************************************************/
  40. #if defined(__cplusplus)
  41. namespace NXWidgets
  42. {
  43. struct SBitmap;
  44. // Bitmaps used by NxWidgets
  45. // Global RLE Paletted Bitmaps
  46. extern const struct SRlePaletteBitmap g_nuttxBitmap160x160;
  47. extern const struct SRlePaletteBitmap g_nuttxBitmap320x320;
  48. // Global Simple Bitmaps
  49. extern const struct SBitmap g_screenDepthUp;
  50. extern const struct SBitmap g_screenDepthDown;
  51. extern const struct SBitmap g_windowClose;
  52. extern const struct SBitmap g_windowDepthUp;
  53. extern const struct SBitmap g_windowDepthDown;
  54. extern const struct SBitmap g_radioButtonOn;
  55. extern const struct SBitmap g_radioButtonOff;
  56. extern const struct SBitmap g_radioButtonMu;
  57. extern const struct SBitmap g_checkBoxOff;
  58. extern const struct SBitmap g_checkBoxOn;
  59. extern const struct SBitmap g_checkBoxMu;
  60. extern const struct SBitmap g_screenFlipUp;
  61. extern const struct SBitmap g_screenFlipDown;
  62. extern const struct SBitmap g_arrowUp;
  63. extern const struct SBitmap g_arrowDown;
  64. extern const struct SBitmap g_arrowLeft;
  65. extern const struct SBitmap g_arrowRight;
  66. extern const struct SBitmap g_cycle;
  67. extern const struct SBitmap g_backspace;
  68. extern const struct SBitmap g_return;
  69. extern const struct SBitmap g_shift;
  70. extern const struct SBitmap g_capslock;
  71. extern const struct SBitmap g_control;
  72. // Bitmaps used by NxWM, Twm4Nx, and SLcd
  73. // Global RLE Paletted Bitmaps
  74. extern const struct SRlePaletteBitmap g_calculatorBitmap;
  75. extern const struct SRlePaletteBitmap g_calibrationBitmap;
  76. extern const struct SRlePaletteBitmap g_cmdBitmap;
  77. extern const struct SRlePaletteBitmap g_menuBitmap;
  78. extern const struct SRlePaletteBitmap g_menu2Bitmap;
  79. extern const struct SRlePaletteBitmap g_resizeBitmap;
  80. extern const struct SRlePaletteBitmap g_resize2Bitmap;
  81. extern const struct SRlePaletteBitmap g_nxiconBitmap;
  82. extern const struct SRlePaletteBitmap g_lcdClockBitmap;
  83. // Used by NxWM media player
  84. extern const struct SRlePaletteBitmap g_mediaplayerBitmap;
  85. extern const struct SRlePaletteBitmap g_mplayerFwdBitmap;
  86. extern const struct SRlePaletteBitmap g_mplayerPlayBitmap;
  87. extern const struct SRlePaletteBitmap g_mplayerPauseBitmap;
  88. extern const struct SRlePaletteBitmap g_mplayerRewBitmap;
  89. extern const struct SRlePaletteBitmap g_mplayerVolBitmap;
  90. extern const struct SRlePaletteBitmap g_minimizeBitmap;
  91. extern const struct SRlePaletteBitmap g_minimize2Bitmap;
  92. extern const struct SRlePaletteBitmap g_playBitmap;
  93. extern const struct SRlePaletteBitmap g_stopBitmap;
  94. extern const struct SRlePaletteBitmap g_stop2Bitmap;
  95. }
  96. #endif // __cplusplus
  97. #endif // __APPS_INCLUDE_GRAPHICS_NXGLYPHS_HXX