gel_main.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /** @file
  2. * Header file of APIs for initialing GUI engine.
  3. *
  4. * @author mandy.wu 2010/12/06 (Add duplicate controls' core struct)
  5. * @version 0.1
  6. */
  7. #ifndef __GEL_MAIN__
  8. #define __GEL_MAIN__
  9. #include "gui_eng/stddefs.h"
  10. #include "gui_eng/gui_engine.h"
  11. #define MAX_FONT_STYLE_NUM (256)
  12. /**
  13. * Initialize GUI engine.
  14. *
  15. * @param dWinWidth Window width.
  16. * @param dWinHeight Window height.
  17. * @return GUI_SUCCESS if succeed, error codes otherwise.
  18. */
  19. GUIResult_e GEL_Open(UINT32 dWinWidth, UINT32 dWinHeight, BOOL bBMPCmpsd)__attribute__ ((warn_unused_result));
  20. /**
  21. * Terminate GUI engine
  22. *
  23. * @return GUI_SUCCESS if succeed, error codes otherwise.
  24. */
  25. GUIResult_e GEL_Close(void)__attribute__ ((warn_unused_result));
  26. /**
  27. * Initialize the working buffer for GUI engine.
  28. *
  29. * @param pAddr The GPU working buffer address.
  30. * @param dSize The GPU working buffer size.
  31. * @param pAddr The GUI control working buffer address.
  32. * @param dSize The GUI control working buffer size.
  33. * @return GUI_SUCCESS if succeed, error codes otherwise.
  34. */
  35. GUIResult_e GEL_InitMem(UINT32 *pGPUBufAddr, UINT32 dGPUBufSize, UINT32 *pGUICtlBufAddr, UINT32 dGUICtlBufSize);
  36. /**
  37. * Initialize the working buffer for vfont and freetype.
  38. *
  39. * @param pAddr The buffer address.
  40. * @param dSize The buffer size.
  41. * @return GUI_SUCCESS if succeed, error codes otherwise.
  42. */
  43. GUIResult_e GEL_InitVFontMem(UINT32 *pAddr, UINT32 dSize);
  44. #endif /* __GEL_REGION__ */