yaze
0.3.2
Link to the Past ROM Editor
Loading...
Searching...
No Matches
overworld_canvas_view.h
Go to the documentation of this file.
1
#ifndef YAZE_APP_EDITOR_OVERWORLD_UI_CANVAS_OVERWORLD_CANVAS_VIEW_H
2
#define YAZE_APP_EDITOR_OVERWORLD_UI_CANVAS_OVERWORLD_CANVAS_VIEW_H
3
4
#include "
app/editor/system/workspace/editor_panel.h
"
5
#include "
app/gui/core/icons.h
"
6
7
namespace
yaze::editor
{
8
18
class
OverworldCanvasView
:
public
WindowContent
{
19
public
:
20
OverworldCanvasView
() =
default
;
21
22
// WindowContent interface
23
std::string
GetId
()
const override
{
return
"overworld.canvas"
; }
24
std::string
GetDisplayName
()
const override
{
return
"Overworld Canvas"
; }
25
std::string
GetIcon
()
const override
{
return
ICON_MD_MAP
; }
26
std::string
GetEditorCategory
()
const override
{
return
"Overworld"
; }
27
std::string
GetShortcutHint
()
const override
{
return
"Ctrl+Shift+O"
; }
28
int
GetPriority
()
const override
{
return
5; }
// Show first
29
bool
PreferAutoHideTabBar
()
const override
{
return
true
; }
30
bool
IsVisibleByDefault
()
const override
{
return
true
; }
31
32
void
Draw
(
bool
* p_open)
override
;
33
};
34
35
}
// namespace yaze::editor
36
37
#endif
// YAZE_APP_EDITOR_OVERWORLD_UI_CANVAS_OVERWORLD_CANVAS_VIEW_H
yaze::editor::OverworldCanvasView
WindowContent wrapper for the main overworld canvas.
Definition
overworld_canvas_view.h:18
yaze::editor::OverworldCanvasView::PreferAutoHideTabBar
bool PreferAutoHideTabBar() const override
Whether the dock node hosting this panel should auto-hide its tab bar.
Definition
overworld_canvas_view.h:29
yaze::editor::OverworldCanvasView::GetEditorCategory
std::string GetEditorCategory() const override
Editor category this panel belongs to.
Definition
overworld_canvas_view.h:26
yaze::editor::OverworldCanvasView::IsVisibleByDefault
bool IsVisibleByDefault() const override
Whether this panel should be visible by default.
Definition
overworld_canvas_view.h:30
yaze::editor::OverworldCanvasView::GetIcon
std::string GetIcon() const override
Material Design icon for this panel.
Definition
overworld_canvas_view.h:25
yaze::editor::OverworldCanvasView::GetDisplayName
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
Definition
overworld_canvas_view.h:24
yaze::editor::OverworldCanvasView::Draw
void Draw(bool *p_open) override
Draw the panel content.
Definition
overworld_canvas_view.cc:8
yaze::editor::OverworldCanvasView::GetPriority
int GetPriority() const override
Get display priority for menu ordering.
Definition
overworld_canvas_view.h:28
yaze::editor::OverworldCanvasView::GetId
std::string GetId() const override
Unique identifier for this panel.
Definition
overworld_canvas_view.h:23
yaze::editor::OverworldCanvasView::GetShortcutHint
std::string GetShortcutHint() const override
Get keyboard shortcut hint for display.
Definition
overworld_canvas_view.h:27
yaze::editor::OverworldCanvasView::OverworldCanvasView
OverworldCanvasView()=default
yaze::editor::WindowContent
Base interface for all logical window content components.
Definition
editor_panel.h:89
icons.h
ICON_MD_MAP
#define ICON_MD_MAP
Definition
icons.h:1173
yaze::editor
Editors are the view controllers for the application.
Definition
patch_export_usage.cc:9
editor_panel.h
src
app
editor
overworld
ui
canvas
overworld_canvas_view.h
Generated by
1.10.0