summaryrefslogtreecommitdiff
path: root/core/src/UI/UI.hpp
blob: 9e971181ab323c1da18c277eb9f6f31d594b78ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once

#include <imgui.h>

namespace ImGui {

void SetNextWindowSizeRelScreen(float xPercent, float yPercent, ImGuiCond cond = ImGuiCond_None);
void SetNextWindowCentered(ImGuiCond cond = ImGuiCond_None);

void PushDisabled();
void PopDisabled();

bool Button(const char* label, bool disabled);
bool Button(const char* label, const ImVec2& sizeArg, bool disabled);

void ErrorIcon();
void ErrorMessage(const char* fmt, ...);
void WarningIcon();
void WarningMessage(const char* fmt, ...);

} // namespace ImGui

namespace UI {

void MainWindow();

void SettingsTab();
void DatabaseViewTab();
void ItemsTab();
void WorkflowsTab();

} // namespace UI