1
0
mirror of synced 2024-12-12 16:01:06 +01:00
ImHex/plugins/builtin/include/content/views/view_tools.hpp

25 lines
573 B
C++
Raw Normal View History

2020-11-15 00:46:38 +01:00
#pragma once
#include <hex/api/content_registry.hpp>
#include <hex/ui/view.hpp>
2020-11-15 00:46:38 +01:00
2023-11-10 20:47:08 +01:00
#include <vector>
2020-11-15 00:46:38 +01:00
2021-12-07 22:47:41 +01:00
namespace hex::plugin::builtin {
2020-11-15 00:46:38 +01:00
class ViewTools : public View::Window {
2020-11-15 00:46:38 +01:00
public:
ViewTools();
~ViewTools() override = default;
2020-11-15 00:46:38 +01:00
void drawContent() override;
void drawAlwaysVisibleContent() override;
private:
std::vector<ContentRegistry::Tools::impl::Entry>::const_iterator m_dragStartIterator;
std::map<ImGuiWindow*, float> m_windowHeights;
std::map<UnlocalizedString, bool> m_detachedTools;
2020-11-15 00:46:38 +01:00
};
}