Donner 0.8.0-pre
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
EditorShellLayout.h File Reference
This graph shows which files directly or indirectly include this file:

Classes

struct  donner::editor::EditorMainPaneLayoutInput
 Inputs used to compute the editor's horizontal source/render/sidebar layout. More...
struct  donner::editor::EditorMainPaneLayout
 Computed geometry for the editor's horizontal source/render/sidebar layout. More...
struct  donner::editor::RightSidebarLayoutInput
 Inputs used to compute the editor's right sidebar pane layout. More...
struct  donner::editor::RightSidebarLayout
 Computed geometry for the editor's right sidebar panes. More...

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.

Functions

EditorMainPaneLayout donner::editor::ComputeEditorMainPaneLayout (const EditorMainPaneLayoutInput &input)
 Compute horizontal pane geometry for the source pane, render pane, and right sidebar.
RightSidebarLayout donner::editor::ComputeRightSidebarLayout (const RightSidebarLayoutInput &input)
 Compute right sidebar pane geometry for a fixed tree view and resizable inspector/layer split.
float donner::editor::ResizeLayerPanelHeightFraction (float currentFraction, float lowerPaneHeight, float minLayerPanelHeight, float maxLayerPanelHeight, float splitterDeltaY)
 Update the layer panel height fraction from a vertical splitter drag.

Function Documentation

◆ ComputeEditorMainPaneLayout()

EditorMainPaneLayout donner::editor::ComputeEditorMainPaneLayout ( const EditorMainPaneLayoutInput & input)
nodiscard

Compute horizontal pane geometry for the source pane, render pane, and right sidebar.

Parameters
inputHorizontal layout constraints and persisted sidebar width.

◆ ComputeRightSidebarLayout()

RightSidebarLayout donner::editor::ComputeRightSidebarLayout ( const RightSidebarLayoutInput & input)
nodiscard

Compute right sidebar pane geometry for a fixed tree view and resizable inspector/layer split.

Parameters
inputSidebar layout constraints and persisted layer split fraction.

◆ ResizeLayerPanelHeightFraction()

float donner::editor::ResizeLayerPanelHeightFraction ( float currentFraction,
float lowerPaneHeight,
float minLayerPanelHeight,
float maxLayerPanelHeight,
float splitterDeltaY )
nodiscard

Update the layer panel height fraction from a vertical splitter drag.

Parameters
currentFractionCurrent fraction of lowerPaneHeight assigned to the layer panel.
lowerPaneHeightHeight available to the inspector and layer panel.
minLayerPanelHeightMinimum allowed layer panel height.
maxLayerPanelHeightMaximum allowed layer panel height.
splitterDeltaYImGui mouse delta for the splitter; dragging down shrinks the layer panel.