SUniformGridPanel

A panel that evenly divides up available space between all of its children.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Widgets/Layout/SUniformGridPanel.h

Include

#include "Widgets/Layout/SUniformGridPanel.h"

Syntax

class SUniformGridPanel : public SPanel

Remarks

A panel that evenly divides up available space between all of its children.

Constructors

Name Description

Public function

SUniformGridPanel()

Functions

Name Description

Public function

FSlot &

 

AddSlot

(
    int32 Column,
    int32 Row
)

Dynamically add a new slot to the UI at specified Column and Row.

Public function

void

 

ClearChildren()

Removes all slots from the panel

Public function

void

 

Construct

(
    const FArguments& InArgs
)

Public function

bool

 

RemoveSlot

(
    const TSharedRef< SWidget >& SlotW...
)

Removes a slot from this panel which contains the specified SWidget

Public function

void

 

SetMinDesiredSlotHeight

(
    TAttribute< float > InMinDesiredSlo...
)

See MinDesiredSlotHeight attribute

Public function

void

 

SetMinDesiredSlotWidth

(
    TAttribute< float > InMinDesiredSlo...
)

See MinDesiredSlotWidth attribute

Public function

void

 

SetSlotPadding

(
    TAttribute< FMargin > InSlotPadding
)

See SlotPadding attribute

Public function Static

FSlot &

 

Slot

(
    int32 Column,
    int32 Row
)

Used by declarative syntax to create a Slot in the specified Column, Row.

Overridden from SWidget

Name Description

Protected function Virtual Const

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.

Public function Virtual

FChildren &#...

 

GetChildren()

All widgets must provide a way to access their children in a layout-agnostic way.

Public function Virtual Const

void

 

OnArrangeChildren

(
    const FGeometry& AllottedGeometry,
    FArrangedChildren& ArrangedChildre...
)

Panels arrange their children in a space described by the AllottedGeometry parameter.

Classes

Name

Description

Public struct

FArguments

Public struct

FSlot

Stores the per-child info for this panel type

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss