guiapp_specifications.h 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. /*******************************************************************************/
  2. /* This file is auto-generated by Azure RTOS GUIX Studio. Do not edit this */
  3. /* file by hand. Modifications to this file should only be made by running */
  4. /* the Azure RTOS GUIX Studio application and re-generating the application */
  5. /* specification file(s). For more information please refer to the Azure RTOS */
  6. /* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
  7. /* */
  8. /* GUIX Studio Revision 6.1.0.0 */
  9. /* Date (dd.mm.yyyy): 13.11.2020 Time (hh:mm): 10:10 */
  10. /*******************************************************************************/
  11. #ifndef _GUIAPP_SPECIFICATIONS_H_
  12. #define _GUIAPP_SPECIFICATIONS_H_
  13. #include "gx_api.h"
  14. /* Determine if C++ compiler is being used, if so use standard C. */
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. /* Define widget ids */
  19. #define GUIX_ID_WINDOW0 1
  20. #define GUI_ID_TextButton0 2
  21. /* Define animation ids */
  22. #define GX_NEXT_ANIMATION_ID 1
  23. /* Define user event ids */
  24. #define GX_NEXT_USER_EVENT_ID GX_FIRST_USER_EVENT
  25. /* Declare properties structures for each utilized widget type */
  26. typedef struct GX_STUDIO_WIDGET_STRUCT
  27. {
  28. GX_CHAR *widget_name;
  29. USHORT widget_type;
  30. USHORT widget_id;
  31. #if defined(GX_WIDGET_USER_DATA)
  32. INT user_data;
  33. #endif
  34. ULONG style;
  35. ULONG status;
  36. ULONG control_block_size;
  37. GX_RESOURCE_ID normal_fill_color_id;
  38. GX_RESOURCE_ID selected_fill_color_id;
  39. GX_RESOURCE_ID disabled_fill_color_id;
  40. UINT (*create_function) (GX_CONST struct GX_STUDIO_WIDGET_STRUCT *, GX_WIDGET *, GX_WIDGET *);
  41. void (*draw_function) (GX_WIDGET *);
  42. UINT (*event_function) (GX_WIDGET *, GX_EVENT *);
  43. GX_RECTANGLE size;
  44. GX_CONST struct GX_STUDIO_WIDGET_STRUCT *next_widget;
  45. GX_CONST struct GX_STUDIO_WIDGET_STRUCT *child_widget;
  46. ULONG control_block_offset;
  47. GX_CONST void *properties;
  48. } GX_STUDIO_WIDGET;
  49. typedef struct
  50. {
  51. GX_CONST GX_STUDIO_WIDGET *widget_information;
  52. GX_WIDGET *widget;
  53. } GX_STUDIO_WIDGET_ENTRY;
  54. typedef struct
  55. {
  56. GX_RESOURCE_ID string_id;
  57. GX_RESOURCE_ID font_id;
  58. GX_RESOURCE_ID normal_text_color_id;
  59. GX_RESOURCE_ID selected_text_color_id;
  60. GX_RESOURCE_ID disabled_text_color_id;
  61. } GX_TEXT_BUTTON_PROPERTIES;
  62. typedef struct
  63. {
  64. GX_RESOURCE_ID string_id;
  65. GX_RESOURCE_ID font_id;
  66. GX_RESOURCE_ID normal_text_color_id;
  67. GX_RESOURCE_ID selected_text_color_id;
  68. GX_RESOURCE_ID disabled_text_color_id;
  69. } GX_PROMPT_PROPERTIES;
  70. typedef struct
  71. {
  72. GX_RESOURCE_ID wallpaper_id;
  73. } GX_WINDOW_PROPERTIES;
  74. /* Declare top-level control blocks */
  75. typedef struct WINDOW_1_CONTROL_BLOCK_STRUCT
  76. {
  77. GX_WINDOW_MEMBERS_DECLARE
  78. GX_TEXT_BUTTON window_1_button;
  79. GX_PROMPT window_1_prompt;
  80. } WINDOW_1_CONTROL_BLOCK;
  81. typedef struct WINDOW_CONTROL_BLOCK_STRUCT
  82. {
  83. GX_WINDOW_MEMBERS_DECLARE
  84. } WINDOW_CONTROL_BLOCK;
  85. /* extern statically defined control blocks */
  86. #ifndef GUIX_STUDIO_GENERATED_FILE
  87. extern WINDOW_1_CONTROL_BLOCK window_1;
  88. extern WINDOW_CONTROL_BLOCK window;
  89. #endif
  90. /* Declare event process functions, draw functions, and callback functions */
  91. /* Declare the GX_STUDIO_DISPLAY_INFO structure */
  92. typedef struct GX_STUDIO_DISPLAY_INFO_STRUCT
  93. {
  94. GX_CONST GX_CHAR *name;
  95. GX_CONST GX_CHAR *canvas_name;
  96. GX_CONST GX_THEME **theme_table;
  97. GX_CONST GX_STRING **language_table;
  98. USHORT theme_table_size;
  99. USHORT language_table_size;
  100. UINT string_table_size;
  101. UINT x_resolution;
  102. UINT y_resolution;
  103. GX_DISPLAY *display;
  104. GX_CANVAS *canvas;
  105. GX_WINDOW_ROOT *root_window;
  106. GX_COLOR *canvas_memory;
  107. ULONG canvas_memory_size;
  108. } GX_STUDIO_DISPLAY_INFO;
  109. /* Declare Studio-generated functions for creating top-level widgets */
  110. UINT gx_studio_text_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
  111. UINT gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
  112. UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
  113. GX_WIDGET *gx_studio_widget_create(GX_BYTE *storage, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent);
  114. UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget);
  115. UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *), GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root);
  116. /* Determine if a C++ compiler is being used. If so, complete the standard
  117. C conditional started above. */
  118. #ifdef __cplusplus
  119. }
  120. #endif
  121. #endif /* sentry */