engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
IWidgetReflector类 参考abstract

Interface for widget reflectors. 更多...

#include <IWidgetReflector.h>

Public 成员函数

virtual bool IsInPickingMode () const =0
 Checks whether user is in the process of selecting a widget. 更多...
 
virtual bool IsShowingFocus () const =0
 Checks whether we are visualizing the focused widgets. 更多...
 
virtual bool IsVisualizingLayoutUnderCursor () const =0
 Checks whether we should be inspecting widgets and visualizing their layout. 更多...
 
virtual void OnWidgetPicked ()=0
 Called when the user has picked a widget to observe.
 
virtual bool ReflectorNeedsToDrawIn (TSharedRef< SWindow > ThisWindow) const =0
 
virtual void SetAssetAccessDelegate (FAccessAsset InDelegate)=0
 
virtual void SetSourceAccessDelegate (FAccessSourceCode InDelegate)=0
 
virtual void SetWidgetsToVisualize (const FWidgetPath &InWidgetsToVisualize)=0
 Sets the widget that should be visualized. 更多...
 
virtual int32 Visualize (const FWidgetPath &InWidgetsToVisualize, FSlateWindowElementList &OutDrawElements, int32 LayerId)=0
 Take a snapshot of the UI pertaining to the widget that the user is hovering and visualize it. 更多...
 
virtual int32 VisualizeCursorAndKeys (FSlateWindowElementList &OutDrawElements, int32 LayerId) const
 Visualize the cursor position and any pressed keys for demo-recording purposes.
 
virtual ~IWidgetReflector ()
 Virtual destructor.
 

详细描述

Interface for widget reflectors.

成员函数说明

◆ IsInPickingMode()

virtual bool IWidgetReflector::IsInPickingMode ( ) const
pure virtual

Checks whether user is in the process of selecting a widget.

返回
true if the user is selecting a widget, false otherwise.

◆ IsShowingFocus()

virtual bool IWidgetReflector::IsShowingFocus ( ) const
pure virtual

Checks whether we are visualizing the focused widgets.

返回
true if focusing widgets, false otherwise.

◆ IsVisualizingLayoutUnderCursor()

virtual bool IWidgetReflector::IsVisualizingLayoutUnderCursor ( ) const
pure virtual

Checks whether we should be inspecting widgets and visualizing their layout.

返回
true if visualizing layout, false otherwise.

◆ ReflectorNeedsToDrawIn()

virtual bool IWidgetReflector::ReflectorNeedsToDrawIn ( TSharedRef< SWindow >  ThisWindow) const
pure virtual
参数
ThisWindowDo we want to draw something for this window?
返回
true if we want to draw something for this window; false otherwise

◆ SetAssetAccessDelegate()

virtual void IWidgetReflector::SetAssetAccessDelegate ( FAccessAsset  InDelegate)
pure virtual
参数
InDelegateA delegate to access assets with.

◆ SetSourceAccessDelegate()

virtual void IWidgetReflector::SetSourceAccessDelegate ( FAccessSourceCode  InDelegate)
pure virtual
参数
InDelegateA delegate to access source code with.

◆ SetWidgetsToVisualize()

virtual void IWidgetReflector::SetWidgetsToVisualize ( const FWidgetPath &  InWidgetsToVisualize)
pure virtual

Sets the widget that should be visualized.

参数
InWidgetsToVisualizeThe path to the widget to inspect via the reflector.

◆ Visualize()

virtual int32 IWidgetReflector::Visualize ( const FWidgetPath &  InWidgetsToVisualize,
FSlateWindowElementList &  OutDrawElements,
int32  LayerId 
)
pure virtual

Take a snapshot of the UI pertaining to the widget that the user is hovering and visualize it.

If we are not taking a snapshot, draw the overlay from a previous snapshot, if possible.

参数
InWidgetsToVisualizeWidgetPath that the cursor is currently over; could be null.
OutDrawElementsList of draw elements to which we will add a visualization overlay
LayerIdThe maximum layer id attained in the draw element list so far.
返回
The maximum layer ID that we attained while painting the overlay.

该类的文档由以下文件生成: