yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
empty_state.h
Go to the documentation of this file.
1#ifndef YAZE_APP_GUI_WIDGETS_EMPTY_STATE_H_
2#define YAZE_APP_GUI_WIDGETS_EMPTY_STATE_H_
3
4#include <functional>
5
6namespace yaze {
7namespace gui {
8
16 const char* icon = nullptr;
17 const char* title = nullptr;
18 const char* detail = nullptr;
19 const char* action_label = nullptr;
20 std::function<void()> on_action;
22 bool compact = false;
23};
24
30bool DrawEmptyState(const EmptyStateOptions& options);
31
32// ---------------------------------------------------------------------------
33// Shared copy presets — prefer these over ad-hoc "No ROM" strings.
34// ---------------------------------------------------------------------------
35
36EmptyStateOptions EmptyNoRom(bool compact = false);
37EmptyStateOptions EmptyNoSelection(bool compact = false);
38EmptyStateOptions EmptySelectInCanvas(bool compact = true);
39EmptyStateOptions EmptyNoProject(bool compact = false);
40EmptyStateOptions EmptyLoading(const char* what = "content",
41 bool compact = false);
42
43} // namespace gui
44} // namespace yaze
45
46#endif // YAZE_APP_GUI_WIDGETS_EMPTY_STATE_H_
EmptyStateOptions EmptyLoading(const char *what, bool compact)
EmptyStateOptions EmptyNoProject(bool compact)
bool DrawEmptyState(const EmptyStateOptions &options)
Draw a centered empty-state block.
EmptyStateOptions EmptyNoSelection(bool compact)
EmptyStateOptions EmptyNoRom(bool compact)
EmptyStateOptions EmptySelectInCanvas(bool compact)
Shared empty / disabled panel presentation.
Definition empty_state.h:15
std::function< void()> on_action
Definition empty_state.h:20
bool compact
Tighter vertical rhythm for drawers / inspectors.
Definition empty_state.h:22