diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-01-27 02:09:50 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-08-18 23:38:23 +0200 |
commit | 6778e3b87cc9a6f5d195a2c80e5b499e3d94558b (patch) | |
tree | d37e25d48168465bdf0fb29559fe6e186a15e1d7 /include/dchat/MessageComposer.hpp | |
parent | 2446736bc775b22cf5aaae88c2c69c9504e5eb17 (diff) |
Add binds to emoji parsing, refactor
Diffstat (limited to 'include/dchat/MessageComposer.hpp')
-rw-r--r-- | include/dchat/MessageComposer.hpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/include/dchat/MessageComposer.hpp b/include/dchat/MessageComposer.hpp deleted file mode 100644 index b4b55c2..0000000 --- a/include/dchat/MessageComposer.hpp +++ /dev/null @@ -1,32 +0,0 @@ -#pragma once - -#include "types.hpp" -#include <functional> - -namespace dchat -{ - struct Range - { - int start; - int end; - - int length() const - { - return end - start; - } - }; - - struct MessagePart - { - enum class Type - { - TEXT, - EMOJI - }; - - Type type; - Range textRange; - }; - - void compose(const char *text, usize size, std::function<void(MessagePart)> callbackFunc); -}
\ No newline at end of file |