Improve bookmark API

This commit is contained in:
WerWolv
2021-01-20 20:16:24 +01:00
parent be738eb5e7
commit b2648afc7b
17 changed files with 108 additions and 67 deletions

View File

@@ -2,10 +2,12 @@
#include <any>
#include <functional>
#include <vector>
#include <list>
#include <map>
#include <vector>
#include <hex/api/content_registry.hpp>
#include <hex/api/imhex_api.hpp>
#include <hex/api/event.hpp>
#include <hex/views/view.hpp>
@@ -55,6 +57,7 @@ namespace hex {
static std::vector<ContentRegistry::DataInspector::Entry> dataInspectorEntries;
static u32 patternPaletteOffset;
static std::string errorPopupMessage;
static std::list<ImHexApi::Bookmarks::Entry> bookmarkEntries;
static int mainArgc;
static char **mainArgv;

View File

@@ -197,11 +197,4 @@ namespace hex {
size_t size;
};
struct Bookmark {
Region region;
std::vector<char> name;
std::vector<char> comment;
u32 color;
};
}