Working on getting textbox edit tool functional
This commit is contained in:
parent
262bf23bce
commit
0087048a02
43 changed files with 605 additions and 295 deletions
26
src/CustomEvents.hpp
Normal file
26
src/CustomEvents.hpp
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#pragma once
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
#include <optional>
|
||||
#include "RichText/TextBox.hpp"
|
||||
|
||||
namespace CustomEvents {
|
||||
void init();
|
||||
|
||||
enum class PasteEventDataType {
|
||||
TEXT,
|
||||
IMAGE
|
||||
};
|
||||
struct PasteEventData {
|
||||
PasteEventDataType type;
|
||||
std::string data;
|
||||
std::optional<RichText::TextData> richText;
|
||||
std::optional<Vector2f> mousePos;
|
||||
};
|
||||
|
||||
bool emit_paste_event(const PasteEventData& pasteData);
|
||||
const PasteEventData& get_paste_event_data();
|
||||
void pop_paste_event_data();
|
||||
|
||||
extern uint32_t PASTE_EVENT;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue