Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets > API/Runtime/Slate/Widgets/Layout
Inheritance Hierarchy
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Widgets/Layout/SSplitter.h |
| Include | #include "Widgets/Layout/SSplitter.h" |
Syntax
class SSplitter : public SPanel
Remarks
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.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bIsResizing | ||
| TPanelChildren< FSlot > | Children | ||
| TSlateAttribute< int32, EInvalidateWidgetReason::Paint > | HighlightedHandleIndex | ||
| float | HitDetectionSplitterHandleSize | ||
| int32 | HoveredHandleIndex | ||
| float | MinSplitterChildLength | The user is not allowed to make any of the splitter's children smaller than this. | |
| FOnGetMaxSlotSize | OnGetMaxSlotSize | ||
| FOnHandleHovered | OnHandleHovered | ||
| FSimpleDelegate | OnSplitterFinishedResizing | ||
| EOrientation | Orientation | ||
| float | PhysicalSplitterHandleSize | The thickness of the grip area that the user uses to resize a splitter | |
| ESplitterResizeMode::Type | ResizeMode | ||
| const FSplitterStyle * | Style |
Constructors
| Type | Name | Description | |
|---|---|---|---|
SSplitter () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FScopedWidgetSlotArguments | AddSlot
(
int32 AtIndex |
Add a slot to the splitter at the specified index Sample usage: SomeSplitter->AddSlot() [ SNew(SSomeWidget) ]; | |
| float | ClampChild
(
const FSlot& ChildSlot, |
||
| void | Construct
(
const FArguments& InArgs |
Construct this widget | |
| void | FindAllResizeableSlotsAfterHandle
(
int32 DraggedHandle, |
||
| int32 | FindResizeableSlotAfterHandle
(
int32 DraggedHandle, |
Given the index of the dragged handle and the children, find a child below/right_of the dragged handle that can be resized | |
| int32 | FindResizeableSlotBeforeHandle
(
int32 DraggedHandle, |
Given the index of the dragged handle and the children, find a child above/left_of of the dragged handle that can be resized. | |
| int32 | GetHandleBeingResizedFromMousePosition
(
float PhysicalSplitterHandleSize, |
Given a mouse position within the splitter, figure out which resize handle we are hovering (if any). | |
| EOrientation | |||
| void | HandleResizingByMousePosition
(
EOrientation Orientation, |
Resizes the children based on user input. | |
| void | HandleResizingBySize
(
EOrientation Orientation, |
||
| void | HandleResizingDelta
(
EOrientation Orientation, |
||
| void | RemoveAt
(
int32 IndexToRemove |
Remove the child at IndexToRemove | |
| void | SetOrientation
(
EOrientation NewOrientation |
Change the orientation of the splitter | |
| FSlot::FSlotArguments | Slot () |
||
| SSplitter::FSlot & | SlotAt
(
int32 SlotIndex |
Get the slot at the specified index |
Overridden from SWidget
| Type | Name | Description | |
|---|---|---|---|
| FVector2D | ComputeDesiredSize
(
float |
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. | |
| void | OnArrangeChildren
(
const FGeometry& AllottedGeometry, |
Panels arrange their children in a space described by the AllottedGeometry parameter. | |
| FCursorReply | OnCursorQuery
(
const FGeometry& MyGeometry, |
The system asks each widget under the mouse to provide a cursor. This event is bubbled. | |
| FReply | OnMouseButtonDoubleClick
(
const FGeometry& InMyGeometry, |
Called when a mouse button is double clicked. Override this in derived classes. | |
| FReply | OnMouseButtonDown
(
const FGeometry& MyGeometry, |
The system calls this method to notify the widget that a mouse button was pressed within it. | |
| FReply | OnMouseButtonUp
(
const FGeometry& MyGeometry, |
The system calls this method to notify the widget that a mouse button was release within it. | |
| void | OnMouseLeave
(
const FPointerEvent& MouseEvent |
The system will use this event to notify a widget that the cursor has left it. | |
| FReply | OnMouseMove
(
const FGeometry& MyGeometry, |
The system calls this method to notify the widget that a mouse moved within it. | |
| int32 | OnPaint
(
const FPaintArgs& Args, |
The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments | |||
| FSlot |
Enums
| Type | Name | Description | |
|---|---|---|---|
| ESizeRule | How should a child's size be determined |
Typedefs
| Name | Description |
|---|---|
| FOnGetMaxSlotSize | |
| FOnHandleHovered | |
| FOnSlotResized | |
| FScopedWidgetSlotArguments |