TV_IDM_KeypadMenu.c 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. /***************************************************************/
  2. /** This file is generated, do not edit
  3. * @file TV_IDM_KeypadMenu.c
  4. * @brief menu resource
  5. * Generator Version 6.3.1.2
  6. * Source File Name and Date
  7. *
  8. *
  9. * @note Copyright (c) 2016-2018, T1 Technologies Inc., Taiwan Branch.
  10. * All rights reserved.
  11. *
  12. * This software is copyrighted by and is the property of T1 Technologies
  13. * Inc., Taiwan Branch. All rights are reserved by T1 Technologies Inc.,
  14. * Taiwan Branch. This software may only be used in accordance with the
  15. * corresponding license agreement. Any unauthorized use, duplication,
  16. * distribution, or disclosure of this software is expressly forbidden.
  17. *
  18. * This Copyright notice MUST not be removed or modified without prior
  19. * written consent of T1 Technologies Inc., Taiwan Branch.
  20. *
  21. * T1 Technologies Inc., Taiwan Branch. reserves the right to modify this
  22. * software without notice.
  23. *
  24. * T1 Technologies Inc., Taiwan Branch.
  25. * Rm.8, 6F., No.1, Taiyuan 2nd St., Zhubei City, Hsinchu County 302,
  26. * Taiwan, R.O.C.
  27. *
  28. ***************************************************************/
  29. #include "gui_eng/gui_engine.h"
  30. #include "TV_icon_info.h"
  31. #include "TV_color_info.h"
  32. #include "TV_bitmap_config.h"
  33. #include "TV_strid.h"
  34. #include "TV_IDM_KeypadMenu.h"
  35. #include "TV_font_style_define.h"
  36. #ifdef CONFIG_KEYPAD_SINGLE_REUSE
  37. bg_t TV_IDC_KeypadMenuBG = {
  38. &TV_BgColor_190, /* background color */
  39. NULL /*background bitmap id */
  40. };
  41. INT16 TV_IDC_GroupButton_KeypadMenu_icon[] =
  42. {
  43. TV_IDB_KEYBORD_StandBY_normal_2,
  44. TV_IDB_KEYBORD_MENU_normal_1,
  45. TV_IDB_KEYBORD_TVAV_normal_1,
  46. TV_IDB_KEYBORD_VOL_UP_normal_1,
  47. TV_IDB_KEYBORD_VOL_DOWN_normal_1,
  48. TV_IDB_KEYBORD_CH_UP_normal_1,
  49. TV_IDB_KEYBORD_CH_DOWN_normal_1,
  50. ICON_LAST,
  51. };
  52. btng_icon_t TV_IDC_GroupButton_KeypadMenu =
  53. {
  54. &TV_BgColor_39, /* Bg color */
  55. NULL, /* Bg icon */
  56. 0, /* Side size */
  57. {3, 0, 60, 50}, /* Pos of the first item */
  58. TV_IDC_GroupButton_KeypadMenu_icon, /* Fg icon */
  59. 0, /* Space */
  60. 7, /* Page item count */
  61. 7, /* Total item count */
  62. 0, /* First button index */
  63. 0, /* Focused item index */
  64. 0, /* Click item index */
  65. NULL /* Disabled iterms */
  66. };
  67. /* window controls */
  68. WinControl_t TV_IDM_KeypadMenu_control[] = {
  69. {
  70. NULL, /* Handle to the control */
  71. CLASS_BACKGROUND, /* Type of the control */
  72. 0, /* Common Style of the widget */
  73. S_BG_COLOR, /* Particular Style of the widget */
  74. STATE_NORMAL, /* State of the control */
  75. {0, 0, 0, 0}, /* Font style for each state */
  76. 0, /* Start X position of the control */
  77. 0, /* Start Y position of the control */
  78. 424, /* Width of the control */
  79. 50, /* Height of the control */
  80. 255, /* Region index */
  81. (PVOID)&TV_IDC_KeypadMenuBG, /* Pointer to its specific param */
  82. NULL, /* Pointer to a child control list */
  83. },
  84. {
  85. NULL, /* Handle to the control */
  86. CLASS_BUTTON_GROUP, /* Type of the control */
  87. CS_FONT_CENTER|CS_FONT_V_TOP|CS_CTR_H, /* Common Style of the widget */
  88. S_BTN_ICON, /* Particular Style of the widget */
  89. STATE_FOCUSED, /* State of the control */
  90. {TV_Large, TV_Large, TV_Large, TV_Large}, /* Font style for each state */
  91. 3, /* Start X position of the control */
  92. 0, /* Start Y position of the control */
  93. 421, /* Width of the control */
  94. 50, /* Height of the control */
  95. 255, /* Region index */
  96. (PVOID)&TV_IDC_GroupButton_KeypadMenu, /* Pointer to its specific param */
  97. NULL, /* Pointer to a child control list */
  98. },
  99. };
  100. /* applet structure */
  101. STRUCT_APPLET TV_IDM_KeypadMenu_applet = {
  102. 0, /* Current Focus Item */
  103. sizeof(TV_IDM_KeypadMenu_control) / sizeof(TV_IDM_KeypadMenu_control[0]), /* Number of controls */
  104. (WinControl_t*)TV_IDM_KeypadMenu_control, /* Pointer to an array of a control list */
  105. };
  106. /* window structure */
  107. WinControl_t TV_IDM_KeypadMenu_window= {
  108. NULL, /* Handle to the control */
  109. CLASS_WINDOW, /* Type of the control */
  110. 0, /* Style of the control */
  111. 0,
  112. WIN_NORMAL, /* State of the control */
  113. {0, 0, 0, 0}, /* State of the control */
  114. 448, /* Start X position of the control */
  115. 658, /* Start Y position of the control */
  116. 424, /* Width of the control */
  117. 50, /* Height of the control */
  118. 1, /* Region index */
  119. NULL, /* Pointer to its specific param */
  120. (PVOID)&TV_IDM_KeypadMenu_applet, /* Pointer to a child control list */
  121. };
  122. #endif /* CONFIG_KEYPAD_SINGLE_REUSE */