SVisibilityWidget

Widget responsible for managing the visibility for a single item

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

SImage

SImage

SVisibilityWidget

References

Module

SceneOutliner

Header

/Engine/Source/Editor/SceneOutliner/Public/SceneOutlinerGutter.h

Include

#include "SceneOutlinerGutter.h"

Syntax

class SVisibilityWidget :
    public SImage,
    public SImage

Remarks

Widget responsible for managing the visibility for a single item

Variables

Name Description

Protected variable

const FSlateBru...

 

NotVisibleHoveredBrush

Protected variable

const FSlateBru...

 

NotVisibleNotHoveredBrush

Protected variable

const STableRow...

 

Row

Weak pointer back to the row

Protected variable

TUniquePtr< FSc...

 

UndoTransaction

Scoped undo transaction

Protected variable

const FSlateBru...

 

VisibleHoveredBrush

Visibility brushes for the various states

Protected variable

const FSlateBru...

 

VisibleNotHoveredBrush

Protected variable

TWeakPtr< FScen...

 

WeakColumn

Weak pointer back to the column

Protected variable

TWeakPtr< IScen...

 

WeakOutliner

Reference back to the outliner so we can set visibility of a whole selection

Protected variable

TWeakPtr< IScen...

 

WeakTreeItem

The tree item we relate to

Functions

Name Description

Public function

void

 

Construct

(
    const FArguments& InArgs,
    TWeakPtr< FSceneOutlinerGutter > In...,
    TWeakPtr< ISceneOutliner > InWeakOu...,
    TWeakPtr< ISceneOutlinerTreeItem > ...,
    const STableRow< FSceneOutlinerTree...
)

Construct this widget

Public function

void

 

Construct

(
    const FArguments& InArgs,
    TWeakPtr< FPoseWatchManagerColumnVi...,
    TWeakPtr< IPoseWatchManager > InWea...,
    TWeakPtr< IPoseWatchManagerTreeItem...,
    const STableRow< FPoseWatchManagerT...
)

Protected function Virtual Const

const FSlate...

 

GetBrush()

Get the brush for this widget

Protected function

FReply

 

HandleClick()

Protected function Virtual Const

bool

 

IsEnabled()

Returns whether the widget is enabled or not

Protected function Const

bool

 

IsVisible()

Check if our wrapped tree item is visible

Protected function Static

bool

 

IsVisible

(
    const FSceneOutlinerTreeItemPtr& I...,
    const TSharedPtr< FSceneOutlinerGut...
)

Check if the specified item is visible

Protected function Virtual

void

 

OnSetItemVisibility

(
    ISceneOutlinerTreeItem& Item,
    const bool bNewVisibility
)

Called when visibility change happens on an Item.

Protected function

void

 

SetIsVisible

(
    const bool bVisible
)

Set the item this widget is responsible for to be hidden or shown

Protected function Virtual Const

bool

 

ShouldPropagateVisibilityChangeOnChildren()

Whether visibility change should propagate down to children.

Overridden from SWidget

Name Description

Protected function Virtual Const

FSlateColor

 

GetForegroundColor()

Protected function Virtual

FReply

 

OnDragDetected

(
    const FGeometry& MyGeometry,
    const FPointerEvent& MouseEvent
)

Start a new drag/drop operation for this widget

Protected function Virtual

void

 

OnDragEnter

(
    const FGeometry& MyGeometry,
    const FDragDropEvent& DragDropEven...
)

If a visibility drag drop operation has entered this widget, set its item to the new visibility state

Protected function Virtual

FReply

 

OnMouseButtonDoubleClick

(
    const FGeometry& InMyGeometry,
    const FPointerEvent& InMouseEvent
)

Called when a mouse button is double clicked. Override this in derived classes.

Protected function Virtual

FReply

 

OnMouseButtonDown

(
    const FGeometry& MyGeometry,
    const FPointerEvent& MouseEvent
)

Called when the mouse button is pressed down on this widget

Protected function Virtual

FReply

 

OnMouseButtonUp

(
    const FGeometry& MyGeometry,
    const FPointerEvent& MouseEvent
)

Process a mouse up message

Protected function Virtual

void

 

OnMouseCaptureLost

(
    const FCaptureLostEvent& CaptureLo...
)

Called when this widget had captured the mouse, but that capture has been revoked for some reason.

Classes

Name

Description

Public struct

FArguments