1#ifndef YAZE_APP_EDITOR_SPRITE_PANELS_SPRITE_EDITOR_PANELS_H_
2#define YAZE_APP_EDITOR_SPRITE_PANELS_SPRITE_EDITOR_PANELS_H_
16 :
draw_(std::move(draw)) {}
17 std::string
GetId()
const override {
return "sprite.catalog"; }
27 void Draw(
bool*)
override {
53 std::string
GetId()
const override {
return "sprite.vanilla_editor"; }
64 void Draw(
bool* p_open)
override {
87 std::string
GetId()
const override {
return "sprite.custom_editor"; }
97 void Draw(
bool* p_open)
override {
WindowContent for Custom Sprite Editor (ZSM format)
DrawCallback draw_callback_
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
float GetPreferredWidth() const override
Get preferred width for this panel (optional)
int GetPriority() const override
Get display priority for menu ordering.
std::string GetIcon() const override
Material Design icon for this panel.
WindowPresentationPolicy GetPresentationPolicy() const override
How this content is hosted and advertised by workspace chrome.
std::function< void()> DrawCallback
std::string GetEditorCategory() const override
Editor category this panel belongs to.
void Draw(bool *p_open) override
Draw the panel content.
std::string GetId() const override
Unique identifier for this panel.
CustomSpriteEditorPanel(DrawCallback draw_callback)
std::string GetId() const override
Unique identifier for this panel.
std::function< void()> draw_
bool IsVisibleByDefault() const override
Whether this panel should be visible by default.
void Draw(bool *) override
Draw the panel content.
SpriteCatalogPanel(std::function< void()> draw)
int GetPriority() const override
Get display priority for menu ordering.
float GetPreferredWidth() const override
Get preferred width for this panel (optional)
std::string GetEditorCategory() const override
Editor category this panel belongs to.
std::string GetIcon() const override
Material Design icon for this panel.
WindowPresentationPolicy GetPresentationPolicy() const override
How this content is hosted and advertised by workspace chrome.
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
WindowContent for Vanilla Sprite Editor.
VanillaSpriteEditorPanel(DrawCallback draw_callback)
void Draw(bool *p_open) override
Draw the panel content.
DrawCallback draw_callback_
WindowPresentationPolicy GetPresentationPolicy() const override
How this content is hosted and advertised by workspace chrome.
std::string GetId() const override
Unique identifier for this panel.
std::string GetEditorCategory() const override
Editor category this panel belongs to.
bool IsVisibleByDefault() const override
Whether this panel should be visible by default.
std::string GetIcon() const override
Material Design icon for this panel.
float GetPreferredWidth() const override
Get preferred width for this panel (optional)
std::function< void()> DrawCallback
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
int GetPriority() const override
Get display priority for menu ordering.
Base interface for all logical window content components.
#define ICON_MD_ADD_CIRCLE
#define ICON_MD_SMART_TOY
static WindowPresentationPolicy CoreWorkspace()
static WindowPresentationPolicy OptionalPopOut()