added some kbm stuff
This commit is contained in:
1 parent
82e802873f
commit
42fd7414e4
218 files changed
+3758
-258
No files matched your search
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
class UIControl_TextInput;
|
||||
class UIControl;
|
||||
|
||||
namespace DirectTextEdit
|
||||
{
|
||||
typedef int (*CommitCallback)(LPVOID param, bool accepted);
|
||||
|
||||
typedef void (*LineNavCallback)(LPVOID param, int dir);
|
||||
|
||||
void Begin(UIControl_TextInput *ctrl, UIControl *parent,
|
||||
const wchar_t *initialText,
|
||||
unsigned int maxChars, int keyboardMode,
|
||||
CommitCallback callback, LPVOID param);
|
||||
|
||||
bool IsActive();
|
||||
|
||||
void Tick();
|
||||
|
||||
void Finish(bool accepted);
|
||||
|
||||
bool TakeText(uint16_t *outText, unsigned int outCapacity);
|
||||
|
||||
void SetLineNav(LineNavCallback callback, LPVOID param);
|
||||
};
|
||||
Reference in new issue
Block a user