mirror of
https://github.com/baketnk/frame-yap.git
synced 2026-10-06 01:00:04 +02:00
20 lines
532 B
C++
20 lines
532 B
C++
#pragma once
|
|
#include <memory>
|
|
#include <string>
|
|
namespace frameyap {
|
|
// Short-lived, exclusive IME lease acquired only for an explicit user action.
|
|
// Construction checks protocol readiness without delivering input.
|
|
class TextInput {
|
|
public:
|
|
explicit TextInput(const std::string& socket);
|
|
~TextInput();
|
|
TextInput(const TextInput&) = delete;
|
|
TextInput& operator=(const TextInput&) = delete;
|
|
void text(const std::string& literal);
|
|
void enter();
|
|
private:
|
|
struct Impl;
|
|
std::unique_ptr<Impl> impl_;
|
|
};
|
|
}
|