gx_prompt.h 5.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /**************************************************************************/
  2. /* */
  3. /* Copyright (c) Microsoft Corporation. All rights reserved. */
  4. /* */
  5. /* This software is licensed under the Microsoft Software License */
  6. /* Terms for Microsoft Azure RTOS. Full text of the license can be */
  7. /* found in the LICENSE file at https://aka.ms/AzureRTOS_EULA */
  8. /* and in the root directory of this software. */
  9. /* */
  10. /**************************************************************************/
  11. /**************************************************************************/
  12. /**************************************************************************/
  13. /** */
  14. /** GUIX Component */
  15. /** */
  16. /** Prompt Management (Prompt) */
  17. /** */
  18. /**************************************************************************/
  19. /**************************************************************************/
  20. /**************************************************************************/
  21. /* */
  22. /* COMPONENT DEFINITION RELEASE */
  23. /* */
  24. /* gx_prompt.h PORTABLE C */
  25. /* 6.0 */
  26. /* AUTHOR */
  27. /* */
  28. /* Kenneth Maxwell, Microsoft Corporation */
  29. /* */
  30. /* DESCRIPTION */
  31. /* */
  32. /* This file defines the GUIX prompt management component, */
  33. /* including all data types and external references. It is assumed */
  34. /* that gx_api.h and gx_port.h have already been included. */
  35. /* */
  36. /* RELEASE HISTORY */
  37. /* */
  38. /* DATE NAME DESCRIPTION */
  39. /* */
  40. /* 05-19-2020 Kenneth Maxwell Initial Version 6.0 */
  41. /* */
  42. /**************************************************************************/
  43. #ifndef GX_PROMPT_H
  44. #define GX_PROMPT_H
  45. /* Define prompt management function prototypes. */
  46. UINT _gx_prompt_create(GX_PROMPT *prompt, GX_CONST GX_CHAR *name, GX_WIDGET *parent,
  47. GX_RESOURCE_ID text_id,
  48. ULONG style, USHORT prompt_id,
  49. GX_CONST GX_RECTANGLE *size);
  50. VOID _gx_prompt_draw(GX_PROMPT *prompt);
  51. UINT _gx_prompt_font_set(GX_PROMPT *prompt, GX_RESOURCE_ID fontid);
  52. VOID _gx_prompt_text_draw(GX_PROMPT *prompt);
  53. UINT _gx_prompt_text_color_set(GX_PROMPT *prompt,
  54. GX_RESOURCE_ID normal_text_color_id,
  55. GX_RESOURCE_ID selected_text_color_id,
  56. GX_RESOURCE_ID disabled_text_color_id);
  57. #if defined(GX_ENABLE_DEPRECATED_STRING_API)
  58. UINT _gx_prompt_text_get(GX_PROMPT *prompt, GX_CONST GX_CHAR **return_text);
  59. UINT _gx_prompt_text_set(GX_PROMPT *prompt, GX_CONST GX_CHAR *text);
  60. #endif
  61. UINT _gx_prompt_text_get_ext(GX_PROMPT *prompt, GX_STRING *return_text);
  62. UINT _gx_prompt_text_set_ext(GX_PROMPT *prompt, GX_CONST GX_STRING *text);
  63. UINT _gx_prompt_text_id_set(GX_PROMPT *prompt, GX_RESOURCE_ID string_id);
  64. /* Define error checking shells for API services. These are only referenced by the
  65. application. */
  66. UINT _gxe_prompt_create(GX_PROMPT *prompt, GX_CONST GX_CHAR *name, GX_WIDGET *parent, GX_RESOURCE_ID text_id,
  67. ULONG style, USHORT prompt_id, GX_CONST GX_RECTANGLE *size, UINT prompt_control_block_size);
  68. UINT _gxe_prompt_font_set(GX_PROMPT *prompt, GX_RESOURCE_ID fontid);
  69. UINT _gxe_prompt_text_color_set(GX_PROMPT *prompt,
  70. GX_RESOURCE_ID normal_text_color_id,
  71. GX_RESOURCE_ID selected_text_color_id,
  72. GX_RESOURCE_ID disabled_text_color_id);
  73. #if defined(GX_ENABLE_DEPRECATED_STRING_API)
  74. UINT _gxe_prompt_text_get(GX_PROMPT *prompt, GX_CONST GX_CHAR **return_text);
  75. UINT _gxe_prompt_text_set(GX_PROMPT *prompt, GX_CONST GX_CHAR *text);
  76. #endif
  77. UINT _gxe_prompt_text_get_ext(GX_PROMPT *prompt, GX_STRING *return_text);
  78. UINT _gxe_prompt_text_set_ext(GX_PROMPT *prompt, GX_CONST GX_STRING *text);
  79. UINT _gxe_prompt_text_id_set(GX_PROMPT *prompt, GX_RESOURCE_ID string_id);
  80. #endif