Textractor/i18n/gui_korean/TextBuffer.h
Akash Mozumdar 0b79811cc3 Revert "remove korean gui (for now) since its hard to maintain"
This reverts commit 60866c158a11a2d666998aba7cf70b0201c7a764.
2018-05-24 05:36:05 -04:00

22 lines
388 B
C++

#pragma once
#include "ITH.h"
#include "utility.h" // UniqueHandle, CriticalSection
class TextBuffer
{
public:
TextBuffer(HWND edit);
~TextBuffer();
void Flush();
void AddText(LPCWSTR str, int len, bool line);
void ClearBuffer();
bool Running() { return running; }
private:
CriticalSection cs;
bool line_break, running;
UniqueHandle hThread;
HWND hEdit;
std::wstring str;
};