opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
text_input_event.h
Go to the documentation of this file.
1#pragma once
2
6
7#include <string>
8#include <utility>
9
10namespace osc
11{
12 // Represents a "text input event", which can occur when (e.g.) a user
13 // uses an on-screen keyboard or operating-system-defined method to input
14 // text (e.g. emoji, non-ASCII character).
15 class TextInputEvent final : public Event {
16 public:
17 explicit TextInputEvent(std::string utf8_text) :
19 utf8_text_{std::move(utf8_text)}
20 {}
21
22 CStringView utf8_text() const { return utf8_text_; }
23 private:
24 std::string utf8_text_;
25 };
26}
Definition c_string_view.h:12
Definition event.h:13
Definition text_input_event.h:15
TextInputEvent(std::string utf8_text)
Definition text_input_event.h:17
CStringView utf8_text() const
Definition text_input_event.h:22
Definition custom_decoration_generator.h:5
EventType
Definition event_type.h:7
constexpr U to(T &&value)
Definition conversion.h:56