Navigation
API > API/Developer > API/Developer/ToolWidgets > API/Developer/ToolWidgets/Sidebar
References
| Module | ToolWidgets |
| Header | /Engine/Source/Developer/ToolWidgets/Public/Sidebar/SidebarState.h |
| Include | #include "Sidebar/SidebarState.h" |
Syntax
USTRUCT ()
struct FSidebarState
Remarks
Represents the state of a sidebar to be saved/restored to/from config.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bHidden | ||
| float | ContentSize | Save the other splitter slot size to exactly restore the size when a drawer is docked in a SSplitter widget. | |
| float | DrawerSize | ||
| TArray< FSidebarDrawerState > | DrawerStates |
Functions
| Type | Name | Description | |
|---|---|---|---|
| const FSidebarDrawerState * | FindDrawerState
(
const FSidebarDrawerState& InDrawerState |
||
| FSidebarDrawerState & | FindOrAddDrawerState
(
const FSidebarDrawerState& InDrawerState |
||
| float | |||
| void | GetDrawerSizes
(
float& OutDrawerSize, |
||
| const TArray< FSidebarDrawerState > & | |||
| bool | IsHidden () |
||
| bool | IsValid () |
||
| bool | IsVisible () |
||
| void | SaveDrawerState
(
const FSidebarDrawerState& InState |
Saves the state of a drawer. If the drawers state already exists in config, it will be replaced. | |
| void | SetDrawerSize
(
const float InSize |
||
| void | SetDrawerSizes
(
const float InDrawerSize, |
||
| void | SetHidden
(
const bool bInHidden |
||
| void | SetVisible
(
const bool bInVisible |
Constants
| Name | Description |
|---|---|
| AutoDockThresholdSize | |
| DefaultSize | |
| MaxSize | |
| MinSize |