1
0
mirror of synced 2024-12-15 09:11:15 +01:00
ImHex/plugins/example/source/plugin_example.cpp

33 lines
570 B
C++
Raw Normal View History

#include <plugin.hpp>
#include <views/view.hpp>
class ViewExample : public hex::View {
public:
ViewExample() : hex::View("Example") {}
~ViewExample() override {}
void drawContent() override {
if (ImGui::Begin("Example")) {
ImGui::Text("Custom plugin window");
}
ImGui::End();
}
};
IMHEX_PLUGIN {
View* createView() {
return new ViewExample();
}
void drawToolsEntry() {
if (ImGui::CollapsingHeader("Example Tool")) {
ImGui::Text("Custom Plugin tool");
}
}
}