CFEKeyboard.h 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. //CFEKeyboard - [2020-04-13 11:57:46]
  2. #ifndef _CFEKEYBOARD_H_
  3. #define _CFEKEYBOARD_H_
  4. #include "FETU.h"
  5. /*
  6. 0011FFEC CFEKeyboard::CFEKeyboard(bool,wchar_t const*,EKeyboardType,float,bool)
  7. 00120324 CFEKeyboard::~CFEKeyboard()
  8. 00120220 CFEKeyboard::Show()
  9. 00120274 CFEKeyboard::SetString(wchar_t const*)
  10. 00120320 CFEKeyboard::Setup()
  11. 00120378 CFEKeyboard::Hide()
  12. 001203CC CFEKeyboard::RecalculateRowOffsets()
  13. 001203CE CFEKeyboard::SetPlaceHolderText(wchar_t const*)
  14. 001203D0 CFEKeyboard::Process()
  15. 00120710 CFEKeyboard::ToggleKeyboard()
  16. 00120758 CFEKeyboard::BackSpace()
  17. 00120778 CFEKeyboard::GetStringLength()
  18. 001207C0 CFEKeyboard::Space()
  19. 001207F4 CFEKeyboard::Render()
  20. 00120848 CFEKeyboard::CheckMinimumLength()
  21. 0012089C CFEKeyboard::GetString()
  22. 00120928 CFEKeyboard::ClearTextfieldOnBeginEdit(bool)
  23. 0012092C CFEKeyboard::SetMaxNumChars(int)
  24. 0012097C CFEKeyboard::GetKeyRect(uchar,TRectI *,bool)
  25. 00120E00 CFEKeyboard::GetKeyArrayIndex(uchar)
  26. 00120E06 CFEKeyboard::RenderKey(uchar,bool)
  27. 00120E08 CFEKeyboard::RenderCursor(float,float,wchar_t *,uint)
  28. 00120E6C CFEKeyboard::GetKeyTexture(TImage *,uchar)
  29. 00120EA8 CFEKeyboard::GetKeyTextureHandle(TImage *,uchar)
  30. 00120EE4 CFEKeyboard::GetKey(uchar,uchar)
  31. 00120EF2 CFEKeyboard::HideTextField()
  32. 00120EFA CFEKeyboard::HideIfNeeded()
  33. 00120F12 CFEKeyboard::ShowTextField()
  34. 00120F1A CFEKeyboard::SetEnteringPassword(bool)
  35. 00120F20 CFEKeyboard::ShowKeyboard(bool)
  36. 00120F30 CFEKeyboard::IsShowing()
  37. //0x878
  38. */
  39. enum EKeyboardType {
  40. EKeyboardType_0,
  41. EKeyboardType_1,
  42. EKeyboardType_2,
  43. EKeyboardType_3,
  44. EKeyboardType_4,
  45. EKeyboardType_5,
  46. };
  47. class CFEKeyboard {
  48. public:
  49. CFEKeyboard(bool, wchar_t const *, EKeyboardType, float, bool); //0011FFEC
  50. ~CFEKeyboard(); //00120324
  51. void Show(); //00120220
  52. void SetString(wchar_t const *); //00120274
  53. void Setup(); //00120320
  54. void Hide(); //00120378
  55. void RecalculateRowOffsets(); //001203CC
  56. void SetPlaceHolderText(wchar_t const *); //001203CE
  57. int Process(); //001203D0
  58. void ToggleKeyboard(); //00120710
  59. void BackSpace(); //00120758
  60. void GetStringLength(); //00120778
  61. void Space(); //001207C0
  62. void Render(); //001207F4
  63. void CheckMinimumLength(); //00120848
  64. const wchar_t *GetString(); //0012089C
  65. void ClearTextfieldOnBeginEdit(bool); //00120928
  66. void SetMaxNumChars(int); //0012092C
  67. void GetKeyRect(uchar, TRectI *, bool); //0012097C
  68. int GetKeyArrayIndex(uchar); //00120E00
  69. void RenderKey(uchar, bool); //00120E06
  70. void RenderCursor(float, float, wchar_t *, uint); //00120E08
  71. void GetKeyTexture(TImage *, uchar); //00120E6C
  72. void GetKeyTextureHandle(TImage *, uchar); //00120EA8
  73. void GetKey(uchar, uchar); //00120EE4
  74. void HideTextField(); //00120EF2
  75. void HideIfNeeded(); //00120EFA
  76. void ShowTextField(); //00120F12
  77. void SetEnteringPassword(bool); //00120F1A
  78. static void ShowKeyboard(bool); //00120F20
  79. bool IsShowing(); //00120F30
  80. float f_0;
  81. float f_4;
  82. float f_8;
  83. float f_C;
  84. char field_10;
  85. char field_11;
  86. char field_12;
  87. char field_13;
  88. int field_14;
  89. uint64_t field_18;
  90. uint64_t field_20;
  91. char field_28;
  92. char field_29;
  93. char field_2A;
  94. char field_2B;
  95. int field_2C; //field_30的count 0x200
  96. wchar_t pWBuf_30[0x200];
  97. wchar_t pWbuf_430[0x200];
  98. EKeyboardType eType_830;
  99. int field_834;
  100. int field_838;
  101. char field_83C;
  102. char field_83D;
  103. char field_83E;
  104. char field_83F;
  105. float f_840;
  106. int field_844;
  107. int field_848;
  108. int field_84C;
  109. bool field_850;
  110. bool field_851;
  111. bool field_852;
  112. bool field_853;
  113. bool b_854;
  114. char field_855;
  115. char field_856;
  116. char field_857;
  117. int field_858;
  118. float f_85C;
  119. float f_860;
  120. int field_864;
  121. TRectI rectI_868;
  122. static bool ms_bShowKeyboard;
  123. };
  124. #endif //_CFEKEYBOARD_H_