yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
dungeon_workbench_inspector_helpers.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_DUNGEON_WORKSPACE_DUNGEON_WORKBENCH_INSPECTOR_HELPERS_H
2#define YAZE_APP_EDITOR_DUNGEON_WORKSPACE_DUNGEON_WORKBENCH_INSPECTOR_HELPERS_H
3
4#include <cstddef>
5#include <span>
6#include <string>
7
8#include "imgui/imgui.h"
10
12
13bool HasEditableRoomObjectSize(std::span<const zelda3::RoomObject> objects,
14 std::span<const size_t> selected_indices);
15
17
26
27// Uses the same geometry service as canvas selection; does not mutate the object.
29
30// Draw size/variant rows inside the caller's two-column property table.
31// Returns a requested encoded value; the caller owns mutation and undo.
33 uint8_t* requested_size);
34
35void DrawInspectorSectionHeader(const char* label);
36
37bool BeginInspectorSection(const char* label, bool default_open);
38
39bool DrawActionButton(const char* label, const ImVec2& size);
40
41} // namespace yaze::editor::workbench
42
43#endif // YAZE_APP_EDITOR_DUNGEON_WORKSPACE_DUNGEON_WORKBENCH_INSPECTOR_HELPERS_H
bool BeginInspectorSection(const char *label, bool default_open)
ObjectSizeDescription DescribeObjectSize(const zelda3::RoomObject &object)
bool DrawObjectSizeControls(const zelda3::RoomObject &object, uint8_t *requested_size)
bool DrawActionButton(const char *label, const ImVec2 &size)
bool HasEditableRoomObjectSize(std::span< const zelda3::RoomObject > objects, std::span< const size_t > selected_indices)