Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
ListEditor.hpp
1#pragma once
2
3#include <vector>
4#include <string>
5#include <functional>
6
7namespace Grindstone::Editor::ImguiEditor::Widgets {
8 void StringListEditor(std::vector<std::string>& list, std::string fieldName);
9 void ListEditor(
10 const std::string& fieldName,
11 void* list,
12 size_t itemCount,
13 std::function<void(void*, size_t, float)> OnRenderCallback,
14 std::function<void(void*, size_t)> OnAddItemCallback,
15 std::function<void(void*, size_t, size_t)> OnRemoveItemsCallback
16 );
17}