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

#include <activity_bar.h>

Collaboration diagram for yaze::editor::ActivityBar:

Public Member Functions

 ActivityBar (PanelManager &panel_manager, std::function< bool()> is_dungeon_workbench_mode={}, std::function< void(bool)> set_dungeon_workflow_mode={})
 
void Render (size_t session_id, const std::string &active_category, const std::vector< std::string > &all_categories, const std::unordered_set< std::string > &active_editor_categories, std::function< bool()> has_rom)
 
void DrawPanelBrowser (size_t session_id, bool *p_open)
 

Private Member Functions

void DrawUtilityButtons (std::function< bool()> has_rom)
 
void DrawActivityBarStrip (size_t session_id, const std::string &active_category, const std::vector< std::string > &all_categories, const std::unordered_set< std::string > &active_editor_categories, std::function< bool()> has_rom)
 
void DrawSidePanel (size_t session_id, const std::string &category, std::function< bool()> has_rom)
 

Private Attributes

PanelManagerpanel_manager_
 
std::function< bool()> is_dungeon_workbench_mode_
 
std::function< void(bool)> set_dungeon_workflow_mode_
 

Detailed Description

Definition at line 14 of file activity_bar.h.

Constructor & Destructor Documentation

◆ ActivityBar()

yaze::editor::ActivityBar::ActivityBar ( PanelManager & panel_manager,
std::function< bool()> is_dungeon_workbench_mode = {},
std::function< void(bool)> set_dungeon_workflow_mode = {} )
explicit

Definition at line 27 of file activity_bar.cc.

Member Function Documentation

◆ Render()

void yaze::editor::ActivityBar::Render ( size_t session_id,
const std::string & active_category,
const std::vector< std::string > & all_categories,
const std::unordered_set< std::string > & active_editor_categories,
std::function< bool()> has_rom )

◆ DrawPanelBrowser()

◆ DrawUtilityButtons()

void yaze::editor::ActivityBar::DrawUtilityButtons ( std::function< bool()> has_rom)
private

◆ DrawActivityBarStrip()

void yaze::editor::ActivityBar::DrawActivityBarStrip ( size_t session_id,
const std::string & active_category,
const std::vector< std::string > & all_categories,
const std::unordered_set< std::string > & active_editor_categories,
std::function< bool()> has_rom )
private

◆ DrawSidePanel()

void yaze::editor::ActivityBar::DrawSidePanel ( size_t session_id,
const std::string & category,
std::function< bool()> has_rom )
private

Definition at line 244 of file activity_bar.cc.

References yaze::gui::LayoutHelpers::BeginContentChild(), yaze::gui::ConvertColorToImVec4(), yaze::gui::LayoutHelpers::EndContentChild(), yaze::gui::ThemeManager::Get(), yaze::editor::PanelManager::GetActiveSidePanelWidth(), yaze::gui::ThemeManager::GetCurrentTheme(), yaze::gui::GetOnSurfaceVec4(), yaze::gui::GetOutlineVec4(), yaze::editor::PanelManager::GetPanelDescriptor(), yaze::editor::PanelManager::GetPanelsInCategory(), yaze::editor::PanelManager::GetPanelsSortedByMRU(), yaze::editor::PanelManager::GetPanelWindowName(), yaze::editor::PanelManager::GetPinnedPanels(), yaze::gui::GetPrimaryVec4(), yaze::gui::LayoutHelpers::GetSafeAreaInsets(), yaze::editor::PanelManager::GetSidebarWidth(), yaze::gui::LayoutHelpers::GetStandardSpacing(), yaze::gui::LayoutHelpers::GetStandardWidgetHeight(), yaze::gui::GetSurfaceContainerHighestVec4(), yaze::gui::GetSurfaceContainerHighVec4(), yaze::gui::GetTextSecondaryVec4(), yaze::gui::LayoutHelpers::GetTopInset(), yaze::editor::PanelManager::HideAllPanelsInCategory(), yaze::editor::PanelManager::HidePanel(), 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::PanelManager::IsPanelPinned(), yaze::editor::PanelManager::IsPanelVisible(), yaze::gui::UIConfig::kContentMinHeightList, yaze::editor::PanelManager::MarkPanelRecentlyUsed(), panel_manager_, yaze::editor::PanelManager::ResetSidePanelWidth(), set_dungeon_workflow_mode_, yaze::editor::PanelManager::SetActiveSidePanelWidth(), yaze::editor::PanelManager::SetPanelExpanded(), yaze::editor::PanelManager::SetPanelPinned(), yaze::editor::PanelManager::ShowAllPanelsInCategory(), yaze::editor::PanelManager::ShowPanel(), yaze::gui::IconSize::Small(), yaze::editor::PanelManager::TogglePanel(), yaze::gui::TransparentIconButton(), yaze::editor::PanelManager::TriggerPanelClicked(), yaze::editor::PanelManager::TriggerShowPanelBrowser(), and yaze::editor::PanelDescriptor::visibility_flag.

Referenced by Render().

Member Data Documentation

◆ panel_manager_

PanelManager& yaze::editor::ActivityBar::panel_manager_
private

Definition at line 38 of file activity_bar.h.

Referenced by DrawActivityBarStrip(), DrawPanelBrowser(), DrawSidePanel(), and Render().

◆ is_dungeon_workbench_mode_

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

Definition at line 39 of file activity_bar.h.

Referenced by DrawSidePanel().

◆ set_dungeon_workflow_mode_

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

Definition at line 40 of file activity_bar.h.

Referenced by DrawSidePanel().


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