SGridPanel

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Slate

Header

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

Include

#include "Widgets/Layout/SGridPanel.h"

Syntax

class SGridPanel : public SPanel

Constructors

Name Description

Public function

SGridPanel()

Functions

Name Description

Public function

FSlot &

 

AddSlot

(
    int32 Column,
    int32 Row,
    Layer InLayer
)

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

 

ClearFill()

Clear the row and column fill rules.

Public function

void

 

Construct

(
    const FArguments& InArgs
)

Public function Const

FVector2D

 

GetDesiredRegionSize

(
    const FIntPoint& StartCell,
    int32 Width,
    int32 Height
)

GetDesiredSize of a subregion in the graph.

Public function

bool

 

RemoveSlot

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

Removes a slot from this panel which contains the specified SWidget

Public function

void

 

SetColumnFill

(
    int32 ColumnId,
    const TAttribute< float >& Coeffic...
)

Specify a column to stretch instead of sizing to content.

Public function

void

 

SetRowFill

(
    int32 RowId,
    const TAttribute< float >& Coeffic...
)

Specify a row to stretch instead of sizing to content.

Public function Static

FSlot &

 

Slot

(
    int32 Column,
    int32 Row,
    Layer InLayer
)

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

Overridden from SWidget

Name Description

Public function Virtual

void

 

CacheDesiredSize

(
    float InLayoutScaleMultiplier
)

The system calls this method.

Public 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.

Public function Virtual Const

int32

 

OnPaint

(
    const FPaintArgs& Args,
    const FGeometry& AllottedGeometry,
    const FSlateRect& MyCullingRect,
    FSlateWindowElementList& OutDrawEl...,
    int32 LayerId,
    const FWidgetStyle& InWidgetStyle,
    bool bParentEnabled
)

The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children.

Classes

Name

Description

Public struct

FArguments

Public class

FSlot

Public class

Layer

Used by the mandatory named parameter in FSlot.

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