modding simple imgui text editor

This commit is contained in:
2023-11-03 01:22:01 +01:00
parent 95a037ea35
commit b5de74578a
6 changed files with 135 additions and 10 deletions

View File

@@ -1,15 +1,26 @@
#pragma once
#include <solanaceae/crdtnotes/crdtnotes.hpp>
#include <solanaceae/contact/contact_model3.hpp>
#include <set>
class CRDTNotesImGui {
CRDTNotes& _notes;
Contact3Registry& _cr;
bool _show_global_list {true};
std::set<CRDTNotes::DocID> _open_docs;
public:
CRDTNotesImGui(CRDTNotes& notes);
CRDTNotesImGui(CRDTNotes& notes, Contact3Registry& cr);
float render(void);
bool renderContactListContactSmall(const Contact3 c, const bool selected) const;
bool renderDoc(const CRDTNotes::DocID& doc_id);
bool renderDocText(std::string& text) const;
};