Misc.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /** @file
  2. Definitions for various line and string routines
  3. Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved. <BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #ifndef _LIB_MISC_H_
  7. #define _LIB_MISC_H_
  8. #include "HexEditor.h"
  9. /**
  10. Advance/Retreat lines.
  11. @param[in] Count The line number to advance/retreat.
  12. >0 : advance
  13. <0: retreat
  14. @retval NULL An error occurred.
  15. @return A pointer to the line after move.
  16. **/
  17. HEFI_EDITOR_LINE *
  18. HMoveLine (
  19. IN INTN Count
  20. );
  21. /**
  22. Advance/Retreat lines and set CurrentLine in BufferImage to it.
  23. @param[in] Count The line number to advance/retreat.
  24. >0 : advance
  25. <0: retreat
  26. @retval NULL An error occurred.
  27. @return A pointer to the line after move.
  28. **/
  29. HEFI_EDITOR_LINE *
  30. HMoveCurrentLine (
  31. IN INTN Count
  32. );
  33. /**
  34. Free all the lines in HBufferImage.
  35. Fields affected:
  36. Lines
  37. CurrentLine
  38. NumLines
  39. ListHead
  40. @param[in] ListHead The list head.
  41. @param[in] Lines The lines.
  42. @retval EFI_SUCCESS The operation was successful.
  43. **/
  44. EFI_STATUS
  45. HFreeLines (
  46. IN LIST_ENTRY *ListHead,
  47. IN HEFI_EDITOR_LINE *Lines
  48. );
  49. /**
  50. Get the X information for the mouse.
  51. @param[in] GuidX The change.
  52. @return the new information.
  53. **/
  54. INT32
  55. HGetTextX (
  56. IN INT32 GuidX
  57. );
  58. /**
  59. Get the Y information for the mouse.
  60. @param[in] GuidY The change.
  61. @return the new information.
  62. **/
  63. INT32
  64. HGetTextY (
  65. IN INT32 GuidY
  66. );
  67. #endif