Classes | |
| struct | DockNodeIds |
| struct | DockSplitConfig |
| struct | DockSplitNeeds |
Functions | |
| void | ShowDefaultWindowsForEditor (WorkspaceWindowManager *registry, EditorType type) |
| yaze::Json | BoolMapToJson (const std::unordered_map< std::string, bool > &map) |
| void | JsonToBoolMap (const yaze::Json &obj, std::unordered_map< std::string, bool > *map) |
| void | JsonToWindowMap (const yaze::Json &entry, std::unordered_map< std::string, bool > *windows) |
| std::filesystem::path | GetLayoutsFilePath (LayoutScope scope, const std::string &project_key) |
| bool | TryGetNamedPreset (const std::string &preset_name, PanelLayoutPreset *preset_out) |
| std::string | ResolveProfilePresetName (const std::string &profile_id, EditorType editor_type) |
| bool | ShouldDockPanelInDefaultLayout (const PanelLayoutPreset &preset, const std::string &panel_id) |
| std::vector< std::pair< std::string, DockPosition > > | CollectDockedPanels (const PanelLayoutPreset &preset) |
| DockSplitNeeds | ComputeSplitNeeds (const std::vector< std::pair< std::string, DockPosition > > &docked_panels) |
| bool | IsRightDockPosition (DockPosition pos) |
| bool | IsLeftDockPosition (DockPosition pos) |
| float | ResolvePreferredRegionWidth (WorkspaceWindowManager *window_manager, const std::vector< std::pair< std::string, DockPosition > > &docked_panels, bool(*matches_region)(DockPosition)) |
| void | ApplyPreferredSplitWidths (DockSplitConfig *cfg, const DockSplitNeeds &needs, float viewport_width, WorkspaceWindowManager *window_manager, const std::vector< std::pair< std::string, DockPosition > > &docked_panels) |
| DockNodeIds | BuildDockTree (ImGuiID dockspace_id, const DockSplitNeeds &needs, const DockSplitConfig &cfg) |
Variables | |
| constexpr char | kLegacyPanelsKey [] = "panels" |
| constexpr char | kWindowsKey [] = "windows" |
| void yaze::editor::anonymous_namespace{layout_manager.cc}::ShowDefaultWindowsForEditor | ( | WorkspaceWindowManager * | registry, |
| EditorType | type ) |
Definition at line 32 of file layout_manager.cc.
References yaze::editor::LayoutPresets::GetDefaultWindows(), LOG_INFO, yaze::editor::WorkspaceWindowManager::OpenWindow(), and ShowDefaultWindowsForEditor().
Referenced by ShowDefaultWindowsForEditor().

| yaze::Json yaze::editor::anonymous_namespace{layout_manager.cc}::BoolMapToJson | ( | const std::unordered_map< std::string, bool > & | map | ) |
Definition at line 46 of file layout_manager.cc.
References BoolMapToJson(), and yaze::Json::object().
Referenced by BoolMapToJson().

| void yaze::editor::anonymous_namespace{layout_manager.cc}::JsonToBoolMap | ( | const yaze::Json & | obj, |
| std::unordered_map< std::string, bool > * | map ) |
Definition at line 54 of file layout_manager.cc.
References yaze::Json::is_object(), yaze::Json::items(), and JsonToBoolMap().
Referenced by JsonToBoolMap(), and JsonToWindowMap().

| void yaze::editor::anonymous_namespace{layout_manager.cc}::JsonToWindowMap | ( | const yaze::Json & | entry, |
| std::unordered_map< std::string, bool > * | windows ) |
Definition at line 67 of file layout_manager.cc.
References yaze::Json::contains(), yaze::Json::is_object(), JsonToBoolMap(), JsonToWindowMap(), kLegacyPanelsKey, and kWindowsKey.
Referenced by JsonToWindowMap().

| std::filesystem::path yaze::editor::anonymous_namespace{layout_manager.cc}::GetLayoutsFilePath | ( | LayoutScope | scope, |
| const std::string & | project_key ) |
Definition at line 83 of file layout_manager.cc.
References yaze::util::PlatformPaths::EnsureDirectoryExists(), yaze::util::PlatformPaths::GetAppDataSubdirectory(), GetLayoutsFilePath(), and yaze::editor::kProject.
Referenced by GetLayoutsFilePath().

| bool yaze::editor::anonymous_namespace{layout_manager.cc}::TryGetNamedPreset | ( | const std::string & | preset_name, |
| PanelLayoutPreset * | preset_out ) |
Definition at line 103 of file layout_manager.cc.
References yaze::editor::LayoutPresets::GetAudioEngineerPreset(), yaze::editor::LayoutPresets::GetDesignerPreset(), yaze::editor::LayoutPresets::GetDeveloperPreset(), yaze::editor::LayoutPresets::GetDungeonMasterPreset(), yaze::editor::LayoutPresets::GetLogicDebuggerPreset(), yaze::editor::LayoutPresets::GetMinimalPreset(), yaze::editor::LayoutPresets::GetModderPreset(), yaze::editor::LayoutPresets::GetOverworldArtistPreset(), and TryGetNamedPreset().
Referenced by TryGetNamedPreset().
| std::string yaze::editor::anonymous_namespace{layout_manager.cc}::ResolveProfilePresetName | ( | const std::string & | profile_id, |
| EditorType | editor_type ) |
Definition at line 145 of file layout_manager.cc.
References yaze::editor::kDungeon, and ResolveProfilePresetName().
Referenced by ResolveProfilePresetName().

| bool yaze::editor::anonymous_namespace{layout_manager.cc}::ShouldDockPanelInDefaultLayout | ( | const PanelLayoutPreset & | preset, |
| const std::string & | panel_id ) |
Definition at line 354 of file layout_manager.cc.
References yaze::editor::PanelLayoutPreset::default_visible_panels, yaze::editor::PanelLayoutPreset::dock_only_default_visible_panels, and ShouldDockPanelInDefaultLayout().
Referenced by CollectDockedPanels(), and ShouldDockPanelInDefaultLayout().

| std::vector< std::pair< std::string, DockPosition > > yaze::editor::anonymous_namespace{layout_manager.cc}::CollectDockedPanels | ( | const PanelLayoutPreset & | preset | ) |
Definition at line 364 of file layout_manager.cc.
References CollectDockedPanels(), yaze::editor::PanelLayoutPreset::default_visible_panels, yaze::editor::PanelLayoutPreset::optional_panels, yaze::editor::PanelLayoutPreset::panel_positions, and ShouldDockPanelInDefaultLayout().
Referenced by CollectDockedPanels().

| DockSplitNeeds yaze::editor::anonymous_namespace{layout_manager.cc}::ComputeSplitNeeds | ( | const std::vector< std::pair< std::string, DockPosition > > & | docked_panels | ) |
Definition at line 414 of file layout_manager.cc.
References yaze::editor::Bottom, yaze::editor::Center, ComputeSplitNeeds(), yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitNeeds::left, yaze::editor::Left, yaze::editor::LeftBottom, yaze::editor::LeftTop, yaze::editor::Right, yaze::editor::RightBottom, yaze::editor::RightTop, and yaze::editor::Top.
Referenced by ComputeSplitNeeds().

| bool yaze::editor::anonymous_namespace{layout_manager.cc}::IsRightDockPosition | ( | DockPosition | pos | ) |
Definition at line 455 of file layout_manager.cc.
References IsRightDockPosition(), yaze::editor::Right, yaze::editor::RightBottom, and yaze::editor::RightTop.
Referenced by ApplyPreferredSplitWidths(), and IsRightDockPosition().

| bool yaze::editor::anonymous_namespace{layout_manager.cc}::IsLeftDockPosition | ( | DockPosition | pos | ) |
Definition at line 460 of file layout_manager.cc.
References IsLeftDockPosition(), yaze::editor::Left, yaze::editor::LeftBottom, and yaze::editor::LeftTop.
Referenced by ApplyPreferredSplitWidths(), and IsLeftDockPosition().

| float yaze::editor::anonymous_namespace{layout_manager.cc}::ResolvePreferredRegionWidth | ( | WorkspaceWindowManager * | window_manager, |
| const std::vector< std::pair< std::string, DockPosition > > & | docked_panels, | ||
| bool(*)(DockPosition) | matches_region ) |
Definition at line 465 of file layout_manager.cc.
References yaze::editor::WorkspaceWindowManager::GetWindowContent(), and ResolvePreferredRegionWidth().
Referenced by ApplyPreferredSplitWidths(), and ResolvePreferredRegionWidth().

| void yaze::editor::anonymous_namespace{layout_manager.cc}::ApplyPreferredSplitWidths | ( | DockSplitConfig * | cfg, |
| const DockSplitNeeds & | needs, | ||
| float | viewport_width, | ||
| WorkspaceWindowManager * | window_manager, | ||
| const std::vector< std::pair< std::string, DockPosition > > & | docked_panels ) |
Definition at line 485 of file layout_manager.cc.
References ApplyPreferredSplitWidths(), IsLeftDockPosition(), IsRightDockPosition(), yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitConfig::left, yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitNeeds::left, ResolvePreferredRegionWidth(), yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitConfig::right, and yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitNeeds::right.
Referenced by ApplyPreferredSplitWidths().

| DockNodeIds yaze::editor::anonymous_namespace{layout_manager.cc}::BuildDockTree | ( | ImGuiID | dockspace_id, |
| const DockSplitNeeds & | needs, | ||
| const DockSplitConfig & | cfg ) |
Definition at line 510 of file layout_manager.cc.
References yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitConfig::bottom, yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitNeeds::bottom, BuildDockTree(), yaze::editor::anonymous_namespace{layout_manager.cc}::DockNodeIds::center, yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitConfig::left, yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitNeeds::left, yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitNeeds::left_bottom, yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitNeeds::left_top, yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitConfig::right, yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitNeeds::right, yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitNeeds::right_bottom, yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitNeeds::right_top, yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitConfig::top, yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitNeeds::top, and yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitConfig::vertical_split.
Referenced by BuildDockTree().

|
constexpr |
Definition at line 28 of file layout_manager.cc.
Referenced by JsonToWindowMap().
|
constexpr |
Definition at line 29 of file layout_manager.cc.
Referenced by JsonToWindowMap().