Flatten src into model, edit and ui, with .h headers
Resources and utilities sit directly in src. The ImGui windows, wizards, popups and helpers are in ui. Headers that would shadow system ones are renamed: math_util, timestamp, subprocess, localization. Includes are written from src.
This commit is contained in:
1 parent
a515267e26
commit
7fb2c607c2
175 files changed
+537
-537
No files matched your search
@@ -0,0 +1,36 @@
|
||||
#pragma once
|
||||
|
||||
#include <set>
|
||||
#include <vector>
|
||||
|
||||
#include <imgui/imgui.h>
|
||||
|
||||
namespace anm2ed::imgui
|
||||
{
|
||||
class MultiSelectStorage : public std::set<int>
|
||||
{
|
||||
public:
|
||||
ImGuiSelectionExternalStorage internal{};
|
||||
ImGuiMultiSelectIO* io{};
|
||||
std::vector<int>* indexMap{};
|
||||
|
||||
using std::set<int>::set;
|
||||
using std::set<int>::operator=;
|
||||
using std::set<int>::begin;
|
||||
using std::set<int>::rbegin;
|
||||
using std::set<int>::end;
|
||||
using std::set<int>::size;
|
||||
using std::set<int>::insert;
|
||||
using std::set<int>::erase;
|
||||
|
||||
MultiSelectStorage();
|
||||
void start(size_t,
|
||||
ImGuiMultiSelectFlags flags = ImGuiMultiSelectFlags_ClearOnEscape | ImGuiMultiSelectFlags_ScopeWindow);
|
||||
void apply();
|
||||
void finish();
|
||||
void set_index_map(std::vector<int>*);
|
||||
int resolve_index(int) const;
|
||||
};
|
||||
|
||||
void external_storage_set(ImGuiSelectionExternalStorage*, int, bool);
|
||||
}
|
||||
Reference in new issue
Block a user