Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Slate/Public/Widgets/Layout/SSplitter.h |
Include |
#include "Widgets/Layout/SSplitter.h" |
class SSplitter : public SPanel
SSplitter divides its allotted area into N segments, where N is the number of children it has. It allows the users to resize the children along the splitters axis: that is, horizontally or vertically.
Name | Description | ||
---|---|---|---|
|
bIsResizing |
||
|
TPanelChildren<... |
Children |
|
|
TSlateAttribute... |
HighlightedHandleIndex |
|
|
float |
HitDetectionSplitterHandleSize |
|
|
HoveredHandleIndex |
||
|
float |
MinSplitterChildLength |
The user is not allowed to make any of the splitter's children smaller than this. |
|
OnGetMaxSlotSize |
||
|
OnHandleHovered |
||
|
FSimpleDelegate |
OnSplitterFinishedResizing |
|
|
Orientation |
||
|
float |
PhysicalSplitterHandleSize |
The thickness of the grip area that the user uses to resize a splitter |
|
ResizeMode |
||
|
const FSplitter... |
Style |
Name | Description | |
---|---|---|
|
SSplitter() |
Name | Description | ||
---|---|---|---|
|
FScopedWidge... |
AddSlot ( |
Add a slot to the splitter at the specified index Sample usage: SomeSplitter->AddSlot() [ SNew(SSomeWidget) ]; |
|
float |
ClampChild ( |
|
|
Construct ( |
Construct this widget |
|
|
FindAllResizeableSlotsAfterHandle ( |
||
|
FindResizeableSlotAfterHandle ( |
Given the index of the dragged handle and the children, find a child below/right_of the dragged handle that can be resized |
|
|
FindResizeableSlotBeforeHandle ( |
Given the index of the dragged handle and the children, find a child above/left_of of the dragged handle that can be resized. |
|
|
GetHandleBeingResizedFromMousePosition ( |
Given a mouse position within the splitter, figure out which resize handle we are hovering (if any). |
|
|
GetOrientation() |
||
|
HandleResizingByMousePosition ( |
Resizes the children based on user input. |
|
|
HandleResizingBySize ( |
||
|
HandleResizingDelta ( |
||
|
RemoveAt ( |
Remove the child at IndexToRemove |
|
|
SetOrientation ( |
Change the orientation of the splitter |
|
|
FSlot::FSlot... |
Slot() |
|
|
SSplitter::F... |
SlotAt ( |
Get the slot at the specified index |
Name | Description | ||
---|---|---|---|
|
ComputeDesiredSize ( |
A Panel's desired size in the space required to arrange of its children on the screen while respecting all of the children's desired sizes and any layout-related options specified by the user. |
|
|
FChildren &#... |
GetChildren() |
All widgets must provide a way to access their children in a layout-agnostic way. |
|
OnArrangeChildren ( |
Panels arrange their children in a space described by the AllottedGeometry parameter. |
|
|
OnCursorQuery ( |
The system asks each widget under the mouse to provide a cursor. This event is bubbled. |
|
|
OnMouseButtonDoubleClick ( |
Called when a mouse button is double clicked. Override this in derived classes. |
|
|
OnMouseButtonDown ( |
The system calls this method to notify the widget that a mouse button was pressed within it. |
|
|
OnMouseButtonUp ( |
The system calls this method to notify the widget that a mouse button was release within it. |
|
|
OnMouseLeave ( |
The system will use this event to notify a widget that the cursor has left it. |
|
|
OnMouseMove ( |
The system calls this method to notify the widget that a mouse moved within it. |
|
|
OnPaint ( |
The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children. |
Name |
Description |
|
---|---|---|
|
FArguments |
|
|
FSlot |
Name |
Description |
|
---|---|---|
|
ESizeRule |
How should a child's size be determined |
Name |
Description |
---|---|
FOnGetMaxSlotSize |
|
FOnHandleHovered |
|
FOnSlotResized |
|
FScopedWidgetSlotArguments |