yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::WindowSidebar Class Reference

#include <window_sidebar.h>

Collaboration diagram for yaze::editor::WindowSidebar:

Public Member Functions

 WindowSidebar (WorkspaceWindowManager &window_manager, std::function< bool()> is_dungeon_workbench_mode={}, std::function< void(bool)> set_dungeon_workflow_mode={})
 
void Draw (size_t session_id, const std::string &category, std::function< bool()> has_rom)
 

Static Public Member Functions

static bool MatchesWindowSearch (const std::string &query, const std::string &display_name, const std::string &window_id, const std::string &shortcut_hint)
 
static bool IsDungeonWindowModeTarget (const std::string &window_id)
 

Private Attributes

WorkspaceWindowManagerwindow_manager_
 
std::function< bool()> is_dungeon_workbench_mode_
 
std::function< void(bool)> set_dungeon_workflow_mode_
 
char sidebar_search_ [256] = {}
 

Detailed Description

Definition at line 12 of file window_sidebar.h.

Constructor & Destructor Documentation

◆ WindowSidebar()

yaze::editor::WindowSidebar::WindowSidebar ( WorkspaceWindowManager & window_manager,
std::function< bool()> is_dungeon_workbench_mode = {},
std::function< void(bool)> set_dungeon_workflow_mode = {} )
explicit

Definition at line 43 of file window_sidebar.cc.

Member Function Documentation

◆ MatchesWindowSearch()

bool yaze::editor::WindowSidebar::MatchesWindowSearch ( const std::string & query,
const std::string & display_name,
const std::string & window_id,
const std::string & shortcut_hint )
static

◆ IsDungeonWindowModeTarget()

bool yaze::editor::WindowSidebar::IsDungeonWindowModeTarget ( const std::string & window_id)
static

◆ Draw()

void yaze::editor::WindowSidebar::Draw ( size_t session_id,
const std::string & category,
std::function< bool()> has_rom )

Definition at line 71 of file window_sidebar.cc.

References yaze::gui::LayoutHelpers::BeginContentChild(), yaze::editor::WorkspaceWindowManager::CloseWindow(), yaze::gui::ConvertColorToImVec4(), yaze::gui::LayoutHelpers::EndContentChild(), yaze::gui::ThemeManager::Get(), yaze::editor::WorkspaceWindowManager::GetActiveSidePanelWidth(), yaze::gui::ThemeManager::GetCurrentTheme(), yaze::gui::GetOnSurfaceVec4(), yaze::gui::GetOutlineVec4(), yaze::editor::WorkspaceWindowManager::GetPinnedWindows(), yaze::gui::GetPrimaryVec4(), yaze::gui::LayoutHelpers::GetSafeAreaInsets(), yaze::editor::WorkspaceWindowManager::GetSidebarWidth(), yaze::gui::LayoutHelpers::GetStandardSpacing(), yaze::gui::LayoutHelpers::GetStandardWidgetHeight(), yaze::gui::GetSurfaceContainerHighestVec4(), yaze::gui::GetSurfaceContainerHighVec4(), yaze::gui::GetTextSecondaryVec4(), yaze::gui::LayoutHelpers::GetTopInset(), yaze::editor::WorkspaceWindowManager::GetWindowDescriptor(), yaze::editor::WorkspaceWindowManager::GetWindowsInCategory(), yaze::editor::WorkspaceWindowManager::GetWindowsSortedByMRU(), yaze::editor::WorkspaceWindowManager::GetWorkspaceWindowName(), yaze::editor::WorkspaceWindowManager::HideAllWindowsInCategory(), ICON_MD_APPS, ICON_MD_CHEVRON_LEFT, ICON_MD_CLEAR, ICON_MD_FOLDER_OPEN, ICON_MD_PIN, ICON_MD_PUSH_PIN, ICON_MD_SEARCH, ICON_MD_VIEW_QUILT, ICON_MD_VISIBILITY, ICON_MD_VISIBILITY_OFF, ICON_MD_WORKSPACES, is_dungeon_workbench_mode_, yaze::editor::WorkspaceWindowManager::IsWindowOpen(), yaze::editor::WorkspaceWindowManager::IsWindowPinned(), yaze::gui::UIConfig::kContentMinHeightList, yaze::editor::WorkspaceWindowManager::MarkWindowRecentlyUsed(), MatchesWindowSearch(), yaze::editor::WorkspaceWindowManager::OpenWindow(), yaze::editor::WorkspaceWindowManager::ResetSidePanelWidth(), set_dungeon_workflow_mode_, yaze::editor::WorkspaceWindowManager::SetActiveSidePanelWidth(), yaze::editor::WorkspaceWindowManager::SetSidebarExpanded(), yaze::editor::WorkspaceWindowManager::SetWindowPinned(), yaze::editor::WorkspaceWindowManager::ShowAllWindowsInCategory(), sidebar_search_, yaze::gui::IconSize::Small(), yaze::editor::WorkspaceWindowManager::ToggleWindow(), yaze::gui::TransparentIconButton(), yaze::editor::WorkspaceWindowManager::TriggerShowWindowBrowser(), yaze::editor::WorkspaceWindowManager::TriggerWindowClicked(), yaze::editor::WindowDescriptor::visibility_flag, and window_manager_.

Referenced by yaze::editor::ActivityBar::DrawSidePanel().

Member Data Documentation

◆ window_manager_

WorkspaceWindowManager& yaze::editor::WindowSidebar::window_manager_
private

Definition at line 29 of file window_sidebar.h.

Referenced by Draw().

◆ is_dungeon_workbench_mode_

std::function<bool()> yaze::editor::WindowSidebar::is_dungeon_workbench_mode_
private

Definition at line 30 of file window_sidebar.h.

Referenced by Draw().

◆ set_dungeon_workflow_mode_

std::function<void(bool)> yaze::editor::WindowSidebar::set_dungeon_workflow_mode_
private

Definition at line 31 of file window_sidebar.h.

Referenced by Draw().

◆ sidebar_search_

char yaze::editor::WindowSidebar::sidebar_search_[256] = {}
private

Definition at line 32 of file window_sidebar.h.

Referenced by Draw().


The documentation for this class was generated from the following files: