engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Protected 成员函数 | Protected 属性 | 友元 | 所有成员列表
FSlateApplicationBase类 参考abstract

Base class for Slate applications. 更多...

#include <SlateApplicationBase.h>

被 FSlateApplication 继承.

Public 成员函数

virtual TSharedRef< SWindow > AddWindow (TSharedRef< SWindow > InSlateWindow, const bool bShowImmediately=true)=0
 Associates a top level Slate Window with a native window and ensures that it is tracked properly by the application. 更多...
 
virtual bool AnyMenusVisible () const =0
 
virtual void ArrangeWindowToFrontVirtual (TArray< TSharedRef< SWindow > > &Windows, const TSharedRef< SWindow > &WindowToBringToFront)=0
 Reorders an array of windows so the specified window is "brought to the front"
 
virtual FVector2D CalculateTooltipWindowPosition (const FSlateRect &InAnchorRect, const FVector2D &InSize, bool bAutoAdjustForDPIScale) const =0
 Calculates the tooltip window position. 更多...
 
 DECLARE_EVENT_OneParam (FSlateApplicationBase, FOnInvalidateAllWidgets, bool)
 Gets a delegate that is invoked when a global invalidate of all widgets should occur
 
virtual bool FindPathToWidget (TSharedRef< const SWidget > InWidget, FWidgetPath &OutWidgetPath, EVisibility VisibilityFilter=EVisibility::Visible)=0
 Searches for the specified widget and generates a full path to it. 更多...
 
virtual TSharedPtr< SWindow > FindWidgetWindow (TSharedRef< const SWidget > InWidget) const =0
 Returns the window the provided widget is contained in 更多...
 
virtual TSharedPtr< SWindow > GetActiveTopLevelWindow () const =0
 Gets the active top-level window. 更多...
 
virtual const FSlateBrush * GetAppIcon () const =0
 Gets the global application icon. 更多...
 
virtual float GetApplicationScale () const =0
 Gets the ratio SlateUnit / ScreenPixel. 更多...
 
void GetCachedDisplayMetrics (FDisplayMetrics &OutDisplayMetrics) const
 Gets the application's cached display metrics. 更多...
 
virtual const double GetCurrentTime () const =0
 Gets Slate's current cached real time. 更多...
 
virtual FVector2D GetCursorPos () const =0
 Gets the current position of the cursor. 更多...
 
virtual FVector2D GetCursorSize () const =0
 Gets the size of the cursor. 更多...
 
void GetDisplayMetrics (FDisplayMetrics &OutDisplayMetrics)
 Gets the application's display metrics. 更多...
 
virtual TSharedPtr< SWidget > GetKeyboardFocusedWidget () const =0
 Gets the widget that currently has keyboard focus, if any. 更多...
 
virtual FVector2D GetLastCursorPos () const =0
 Gets the last known position of the cursor. 更多...
 
virtual const TSharedPtr< GenericApplication > GetPlatformApplication () const
 Gets the platform application. 更多...
 
virtual FSlateRect GetPreferredWorkArea () const =0
 Gets the rectangle of the current preferred work area. 更多...
 
FORCEINLINE FSlateRenderer * GetRenderer () const
 Gets the renderer being used to draw this application. 更多...
 
virtual bool GetSoftwareCursorAvailable () const =0
 Whether the software cursor is enabled for this application. 更多...
 
virtual EVisibility GetSoftwareCursorVis () const =0
 Gets the desired visibility of the software cursor 更多...
 
virtual const TArray< TSharedRef< SWindow > > GetTopLevelWindows () const =0
 Get a list of all top-level windows in the application, excluding virtual windows. 更多...
 
virtual TSharedPtr< SWidget > GetUserFocusedWidget (uint32 UserIndex) const =0
 
virtual EWindowTransparency GetWindowTransparencySupport () const =0
 Get the highest level of window transparency support currently enabled by this application 更多...
 
virtual bool HasAnyMouseCaptor () const =0
 Gets whether or not a widget has captured the mouse. 更多...
 
virtual bool HasFocusedDescendants (const TSharedRef< const SWidget > &Widget) const =0
 Checks whether the specified widget has any descendants which are currently focused. 更多...
 
virtual bool HasUserFocusedDescendants (const TSharedRef< const SWidget > &Widget, int32 UserIndex) const =0
 Checks whether the specified widget has any descendants which are currently focused for the specified user user. 更多...
 
virtual bool HasUserMouseCapture (int32 UserIndex) const =0
 Gets whether or not a widget has captured the mouse for a particular user. 更多...
 
void InvalidateAllWidgets (bool bClearResourcesImmediately) const
 Notifies all invalidation panels that they should invalidate their contents Note: this is a very expensive call and should only be done in non-performance critical situations
 
virtual bool IsActive () const =0
 Whether the application is active. 更多...
 
virtual bool IsExternalUIOpened ()=0
 Checks whether an UI for external services such as Steam is open. 更多...
 
bool IsSlateAsleep ()
 Is Slate currently sleeping or not. 更多...
 
virtual bool IsWindowHousingInteractiveTooltip (const TSharedRef< const SWindow > &WindowToTest) const =0
 
virtual FWidgetPath LocateWindowUnderMouse (FVector2D ScreenspaceMouseCoordinate, const TArray< TSharedRef< SWindow > > &Windows, bool bIgnoreEnabledStatus=false, int32 UserIndex=INDEX_NONE)=0
 Given the screen-space coordinate of the mouse cursor, searches for a string of widgets that are under the mouse. 更多...
 
virtual TSharedRef< SImage > MakeImage (const TAttribute< const FSlateBrush * > &Image, const TAttribute< FSlateColor > &Color, const TAttribute< EVisibility > &Visibility) const =0
 Creates an image widget. 更多...
 
virtual TSharedRef< IToolTip > MakeToolTip (const FText &ToolTipText)=0
 Creates a tool tip with the specified text. 更多...
 
virtual TSharedRef< IToolTip > MakeToolTip (const TAttribute< FText > &ToolTipText)=0
 Creates a tool tip with the specified text. 更多...
 
virtual TSharedRef< SWidget > MakeWindowTitleBar (const FWindowTitleBarArgs &InArgs, TSharedPtr< IWindowTitleBar > &OutTitleBar) const =0
 Creates a title bar for the specified window. 更多...
 
virtual TSharedRef< SWidget > MakeWindowTitleBar (const TSharedRef< SWindow > &Window, const TSharedPtr< SWidget > &CenterContent, EHorizontalAlignment CenterContentAlignment, TSharedPtr< IWindowTitleBar > &OutTitleBar) const
 Creates a title bar for the specified window. 更多...
 
virtual void RequestDestroyWindow (TSharedRef< SWindow > WindowToDestroy)=0
 Destroying windows has implications on some OSs (e.g. 更多...
 
virtual void SetAllUserFocus (const FWidgetPath &InFocusPath, const EFocusCause InCause)=0
 Sets the focus for all users to the specified widget. 更多...
 
virtual void SetAllUserFocusAllowingDescendantFocus (const FWidgetPath &InFocusPath, const EFocusCause InCause)=0
 Sets the focus for all users to the specified widget unless that user is focused on a descendant. 更多...
 
virtual bool SetKeyboardFocus (const FWidgetPath &InFocusPath, const EFocusCause InCause)=0
 Sets keyboard focus to the specified widget. 更多...
 
virtual bool SetUserFocus (const uint32 InUserIndex, const FWidgetPath &InFocusPath, const EFocusCause InCause)=0
 Sets user focus to the specified widget. 更多...
 

静态 Public 成员函数

static FSlateApplicationBase & Get ()
 Returns the current instance of the application. 更多...
 
static bool IsInitialized ()
 Returns true if a Slate application instance is currently initialized and ready 更多...
 

Protected 成员函数

bool AnyActiveTimersArePending ()
 Used to determine if any active timer handles are ready to fire. 更多...
 
virtual bool DoesWidgetHaveMouseCapture (const TSharedPtr< const SWidget > Widget) const =0
 Gets whether or not a particular widget has mouse capture. 更多...
 
virtual bool DoesWidgetHaveMouseCaptureByUser (const TSharedPtr< const SWidget > Widget, int32 UserIndex, TOptional< int32 > PointerIndex) const =0
 Gets whether or not a particular widget has mouse capture by a user. 更多...
 
virtual TSharedPtr< SWidget > GetMouseCaptorImpl () const =0
 Implementation of GetMouseCaptor which can be overridden without warnings. 更多...
 
virtual TOptional< EFocusCause > HasAnyUserFocus (const TSharedPtr< const SWidget > Widget) const =0
 Gets whether or not a particular widget has any users focus, and if so the type of focus (first one found). 更多...
 
virtual TOptional< EFocusCause > HasUserFocus (const TSharedPtr< const SWidget > Widget, int32 UserIndex) const =0
 Gets whether or not a particular widget has the specified users focus, and if so the type of focus. 更多...
 
virtual bool IsWidgetDirectlyHovered (const TSharedPtr< const SWidget > Widget) const =0
 Gets whether or not a particular widget is directly hovered. 更多...
 
virtual FWidgetPath LocateWidgetInWindow (FVector2D ScreenspaceMouseCoordinate, const TSharedRef< SWindow > &Window, bool bIgnoreEnabledStatus, int32 UserIndex) const =0
 Given a window, locate a widget under the cursor in it; returns an invalid path if cursor is not over this window.
 
virtual bool ShowUserFocus (const TSharedPtr< const SWidget > Widget) const =0
 Gets whether or not a particular widget should show user focus. 更多...
 

Protected 属性

FCriticalSection ActiveTimerCS
 Critical section for active timer registration as it can be called from the movie thread and the game thread
 
FOnInvalidateAllWidgets OnInvalidateAllWidgetsEvent
 multicast delegate to broadcast when a global invalidate is requested
 

友元

class FHitTesting
 
class SWidget
 

详细描述

Base class for Slate applications.

This class currently serves a temporary workaround for solving SlateCore dependencies to FSlateApplication. It should probably be removed once FSlateApplication has been refactored into SlateCore.

成员函数说明

◆ AddWindow()

virtual TSharedRef< SWindow > FSlateApplicationBase::AddWindow ( TSharedRef< SWindow >  InSlateWindow,
const bool  bShowImmediately = true 
)
pure virtual

Associates a top level Slate Window with a native window and ensures that it is tracked properly by the application.

Calling this method will cause the window to be displayed (unless specified otherwise), so be sure to associate content with the window object you're passing in first!

参数
InSlateWindowA SlateWindow to which to add a native window.
bShowImmediatelytrue to show the window, false if you're going to call ShowWindow() yourself later.
返回
a reference to the SWindow that was just added.

◆ AnyActiveTimersArePending()

bool FSlateApplicationBase::AnyActiveTimersArePending ( )
protected

Used to determine if any active timer handles are ready to fire.

Means we need to tick slate even if no user interaction.

◆ AnyMenusVisible()

virtual bool FSlateApplicationBase::AnyMenusVisible ( ) const
pure virtual
返回
Returns true if there are any pop-up menus summoned

◆ CalculateTooltipWindowPosition()

virtual FVector2D FSlateApplicationBase::CalculateTooltipWindowPosition ( const FSlateRect &  InAnchorRect,
const FVector2D &  InSize,
bool  bAutoAdjustForDPIScale 
) const
pure virtual

Calculates the tooltip window position.

参数
InAnchorRectThe current(suggested) window position and size of an area which may not be covered by the popup.
InSizeThe size of the tooltip window.
返回
The suggested position.

◆ DoesWidgetHaveMouseCapture()

virtual bool FSlateApplicationBase::DoesWidgetHaveMouseCapture ( const TSharedPtr< const SWidget >  Widget) const
protectedpure virtual

Gets whether or not a particular widget has mouse capture.

返回
True if the widget has mouse capture, otherwise false.

◆ DoesWidgetHaveMouseCaptureByUser()

virtual bool FSlateApplicationBase::DoesWidgetHaveMouseCaptureByUser ( const TSharedPtr< const SWidget >  Widget,
int32  UserIndex,
TOptional< int32 >  PointerIndex 
) const
protectedpure virtual

Gets whether or not a particular widget has mouse capture by a user.

返回
True if the widget has mouse capture, otherwise false.

◆ FindPathToWidget()

virtual bool FSlateApplicationBase::FindPathToWidget ( TSharedRef< const SWidget >  InWidget,
FWidgetPath &  OutWidgetPath,
EVisibility  VisibilityFilter = EVisibility::Visible 
)
pure virtual

Searches for the specified widget and generates a full path to it.

Note: this is a relatively slow operation!

参数
InWidgetWidget to generate a path to
OutWidgetPathThe generated widget path
VisibilityFilterWidgets must have this type of visibility to be included the path
返回
True if the widget path was found

◆ FindWidgetWindow()

virtual TSharedPtr< SWindow > FSlateApplicationBase::FindWidgetWindow ( TSharedRef< const SWidget >  InWidget) const
pure virtual

Returns the window the provided widget is contained in

参数
InWidgetWidget to find the window for
返回
returns the window the provided widget is contained in or nullptr if it's not currently in a window

◆ Get()

static FSlateApplicationBase & FSlateApplicationBase::Get ( )
inlinestatic

Returns the current instance of the application.

The application should have been initialized before this method is called

返回
Reference to the application

◆ GetActiveTopLevelWindow()

virtual TSharedPtr< SWindow > FSlateApplicationBase::GetActiveTopLevelWindow ( ) const
pure virtual

Gets the active top-level window.

返回
The top level window, or nullptr if no Slate windows are currently active.

◆ GetAppIcon()

virtual const FSlateBrush * FSlateApplicationBase::GetAppIcon ( ) const
pure virtual

Gets the global application icon.

返回
The icon.

◆ GetApplicationScale()

virtual float FSlateApplicationBase::GetApplicationScale ( ) const
pure virtual

Gets the ratio SlateUnit / ScreenPixel.

返回
Application scale.

◆ GetCachedDisplayMetrics()

void FSlateApplicationBase::GetCachedDisplayMetrics ( FDisplayMetrics &  OutDisplayMetrics) const

Gets the application's cached display metrics.

参数
OutDisplayMetricsWill contain the display metrics.

◆ GetCurrentTime()

virtual const double FSlateApplicationBase::GetCurrentTime ( ) const
pure virtual

Gets Slate's current cached real time.

This time value is updated every frame right before we tick widgets and is the recommended time value to use for UI animations and transitions, as opposed to calling FPlatformTime::Seconds() (which is generally slower)

返回
The current Slate real time in seconds

◆ GetCursorPos()

virtual FVector2D FSlateApplicationBase::GetCursorPos ( ) const
pure virtual

Gets the current position of the cursor.

返回
Cursor position.

◆ GetCursorSize()

virtual FVector2D FSlateApplicationBase::GetCursorSize ( ) const
pure virtual

Gets the size of the cursor.

返回
Cursor size.

◆ GetDisplayMetrics()

void FSlateApplicationBase::GetDisplayMetrics ( FDisplayMetrics &  OutDisplayMetrics)

Gets the application's display metrics.

参数
OutDisplayMetricsWill contain the display metrics.

◆ GetKeyboardFocusedWidget()

virtual TSharedPtr< SWidget > FSlateApplicationBase::GetKeyboardFocusedWidget ( ) const
pure virtual

Gets the widget that currently has keyboard focus, if any.

返回
The focused widget, or nullptr if no widget has focus.

◆ GetLastCursorPos()

virtual FVector2D FSlateApplicationBase::GetLastCursorPos ( ) const
pure virtual

Gets the last known position of the cursor.

返回
Cursor position.

◆ GetMouseCaptorImpl()

virtual TSharedPtr< SWidget > FSlateApplicationBase::GetMouseCaptorImpl ( ) const
protectedpure virtual

Implementation of GetMouseCaptor which can be overridden without warnings.

返回
Widget with the mouse capture

◆ GetPlatformApplication()

virtual const TSharedPtr< GenericApplication > FSlateApplicationBase::GetPlatformApplication ( ) const
inlinevirtual

Gets the platform application.

返回
Platform application.

◆ GetPreferredWorkArea()

virtual FSlateRect FSlateApplicationBase::GetPreferredWorkArea ( ) const
pure virtual

Gets the rectangle of the current preferred work area.

返回
Area rectangle.

◆ GetRenderer()

FORCEINLINE FSlateRenderer * FSlateApplicationBase::GetRenderer ( ) const
inline

Gets the renderer being used to draw this application.

返回
The Slate renderer.

◆ GetSoftwareCursorAvailable()

virtual bool FSlateApplicationBase::GetSoftwareCursorAvailable ( ) const
pure virtual

Whether the software cursor is enabled for this application.


返回
software cursor available or not.

◆ GetSoftwareCursorVis()

virtual EVisibility FSlateApplicationBase::GetSoftwareCursorVis ( ) const
pure virtual

Gets the desired visibility of the software cursor

返回
Software Cursor visibility

◆ GetTopLevelWindows()

virtual const TArray< TSharedRef< SWindow > > FSlateApplicationBase::GetTopLevelWindows ( ) const
pure virtual

Get a list of all top-level windows in the application, excluding virtual windows.

返回
An array of all current top-level SWindows.

◆ GetUserFocusedWidget()

virtual TSharedPtr< SWidget > FSlateApplicationBase::GetUserFocusedWidget ( uint32  UserIndex) const
pure virtual
返回
a pointer to the Widget that currently has the users focus; Empty pointer when the user has no focus.

◆ GetWindowTransparencySupport()

virtual EWindowTransparency FSlateApplicationBase::GetWindowTransparencySupport ( ) const
pure virtual

Get the highest level of window transparency support currently enabled by this application

返回
Enumeration value specifying the level of transparency currently supported

◆ HasAnyMouseCaptor()

virtual bool FSlateApplicationBase::HasAnyMouseCaptor ( ) const
pure virtual

Gets whether or not a widget has captured the mouse.

返回
True if one or more widgets have capture, otherwise false.

◆ HasAnyUserFocus()

virtual TOptional< EFocusCause > FSlateApplicationBase::HasAnyUserFocus ( const TSharedPtr< const SWidget >  Widget) const
protectedpure virtual

Gets whether or not a particular widget has any users focus, and if so the type of focus (first one found).

返回
The optional will be set with the focus cause, if unset this widget doesn't have focus.

◆ HasFocusedDescendants()

virtual bool FSlateApplicationBase::HasFocusedDescendants ( const TSharedRef< const SWidget > &  Widget) const
pure virtual

Checks whether the specified widget has any descendants which are currently focused.

参数
WidgetThe widget to check.
返回
true if any descendants are focused, false otherwise.

◆ HasUserFocus()

virtual TOptional< EFocusCause > FSlateApplicationBase::HasUserFocus ( const TSharedPtr< const SWidget >  Widget,
int32  UserIndex 
) const
protectedpure virtual

Gets whether or not a particular widget has the specified users focus, and if so the type of focus.

返回
The optional will be set with the focus cause, if unset this widget doesn't have focus.

◆ HasUserFocusedDescendants()

virtual bool FSlateApplicationBase::HasUserFocusedDescendants ( const TSharedRef< const SWidget > &  Widget,
int32  UserIndex 
) const
pure virtual

Checks whether the specified widget has any descendants which are currently focused for the specified user user.

参数
WidgetThe widget to check.
InUserIndexIndex of the user that we want to check for.
返回
true if any descendants are focused, false otherwise.

◆ HasUserMouseCapture()

virtual bool FSlateApplicationBase::HasUserMouseCapture ( int32  UserIndex) const
pure virtual

Gets whether or not a widget has captured the mouse for a particular user.

返回
True if one or more widgets have capture, otherwise false.

◆ IsActive()

virtual bool FSlateApplicationBase::IsActive ( ) const
pure virtual

Whether the application is active.

返回
application active or not

◆ IsExternalUIOpened()

virtual bool FSlateApplicationBase::IsExternalUIOpened ( )
pure virtual

Checks whether an UI for external services such as Steam is open.

返回
true if an external UI is open, false otherwise.

◆ IsInitialized()

static bool FSlateApplicationBase::IsInitialized ( )
inlinestatic

Returns true if a Slate application instance is currently initialized and ready

返回
True if Slate application is initialized

◆ IsSlateAsleep()

bool FSlateApplicationBase::IsSlateAsleep ( )

Is Slate currently sleeping or not.

返回
True if Slate is sleeping.

◆ IsWidgetDirectlyHovered()

virtual bool FSlateApplicationBase::IsWidgetDirectlyHovered ( const TSharedPtr< const SWidget >  Widget) const
protectedpure virtual

Gets whether or not a particular widget is directly hovered.

Directly hovered means that the widget is directly under the pointer, is not true for ancestors tho they are Hovered.

返回
True if the widget is directly hovered, otherwise false.

◆ IsWindowHousingInteractiveTooltip()

virtual bool FSlateApplicationBase::IsWindowHousingInteractiveTooltip ( const TSharedRef< const SWindow > &  WindowToTest) const
pure virtual
返回
true if 'WindowToTest' is being used to display the current tooltip and the tooltip is interactive.

◆ LocateWindowUnderMouse()

virtual FWidgetPath FSlateApplicationBase::LocateWindowUnderMouse ( FVector2D  ScreenspaceMouseCoordinate,
const TArray< TSharedRef< SWindow > > &  Windows,
bool  bIgnoreEnabledStatus = false,
int32  UserIndex = INDEX_NONE 
)
pure virtual

Given the screen-space coordinate of the mouse cursor, searches for a string of widgets that are under the mouse.

The widgets will be returned with the associated geometry. The first item will always be the top-level window while the last item will be the leaf-most widget.

返回
The path to the widget.

◆ MakeImage()

virtual TSharedRef< SImage > FSlateApplicationBase::MakeImage ( const TAttribute< const FSlateBrush * > &  Image,
const TAttribute< FSlateColor > &  Color,
const TAttribute< EVisibility > &  Visibility 
) const
pure virtual

Creates an image widget.

返回
The new image widget.

◆ MakeToolTip() [1/2]

virtual TSharedRef< IToolTip > FSlateApplicationBase::MakeToolTip ( const FText &  ToolTipText)
pure virtual

Creates a tool tip with the specified text.

参数
ToolTipTextThe text to assign to the tool tip.
返回
The tool tip.

◆ MakeToolTip() [2/2]

virtual TSharedRef< IToolTip > FSlateApplicationBase::MakeToolTip ( const TAttribute< FText > &  ToolTipText)
pure virtual

Creates a tool tip with the specified text.

参数
ToolTipTextThe text attribute to assign to the tool tip.
返回
The tool tip.

◆ MakeWindowTitleBar() [1/2]

virtual TSharedRef< SWidget > FSlateApplicationBase::MakeWindowTitleBar ( const FWindowTitleBarArgs &  InArgs,
TSharedPtr< IWindowTitleBar > &  OutTitleBar 
) const
pure virtual

Creates a title bar for the specified window.

参数
InArgsThe creation arguments for the titlebar
OutTitleBarWill hold a pointer to the title bar's interface.
返回
The new title bar widget.

◆ MakeWindowTitleBar() [2/2]

virtual TSharedRef< SWidget > FSlateApplicationBase::MakeWindowTitleBar ( const TSharedRef< SWindow > &  Window,
const TSharedPtr< SWidget > &  CenterContent,
EHorizontalAlignment  CenterContentAlignment,
TSharedPtr< IWindowTitleBar > &  OutTitleBar 
) const
virtual

Creates a title bar for the specified window.

参数
WindowThe window to create the title bar for.
CenterContentOptional content for the title bar's center (will override window title).
CenterContentAlignmentThe horizontal alignment of the center content.
OutTitleBarWill hold a pointer to the title bar's interface.
返回
The new title bar widget.

◆ RequestDestroyWindow()

virtual void FSlateApplicationBase::RequestDestroyWindow ( TSharedRef< SWindow >  WindowToDestroy)
pure virtual

Destroying windows has implications on some OSs (e.g.

destroying Win32 HWNDs can cause events to be lost).

Slate strictly controls when windows are destroyed.

参数
WindowToDestroyThe window to queue for destruction.

◆ SetAllUserFocus()

virtual void FSlateApplicationBase::SetAllUserFocus ( const FWidgetPath &  InFocusPath,
const EFocusCause  InCause 
)
pure virtual

Sets the focus for all users to the specified widget.

The widget must be allowed to receive focus.

参数
InWidgetWidgetPath to the Widget to being focused.
InCauseThe reason that focus is changing.

◆ SetAllUserFocusAllowingDescendantFocus()

virtual void FSlateApplicationBase::SetAllUserFocusAllowingDescendantFocus ( const FWidgetPath &  InFocusPath,
const EFocusCause  InCause 
)
pure virtual

Sets the focus for all users to the specified widget unless that user is focused on a descendant.

The widget must be allowed to receive focus.

参数
InWidgetWidgetPath to the Widget to being focused.
InCauseThe reason that focus is changing.

◆ SetKeyboardFocus()

virtual bool FSlateApplicationBase::SetKeyboardFocus ( const FWidgetPath &  InFocusPath,
const EFocusCause  InCause 
)
pure virtual

Sets keyboard focus to the specified widget.

The widget must be allowed to receive keyboard focus.

参数
InWidgetWidgetPath to the Widget to being focused
InCauseThe reason that keyboard focus is changing
返回
true if the widget is now focused, false otherwise.

◆ SetUserFocus()

virtual bool FSlateApplicationBase::SetUserFocus ( const uint32  InUserIndex,
const FWidgetPath &  InFocusPath,
const EFocusCause  InCause 
)
pure virtual

Sets user focus to the specified widget.

The widget must be allowed to receive focus.

参数
InUserIndexIndex of the user that we want to change the focus of.
InWidgetWidgetPath to the Widget to being focused.
InCauseThe reason that focus is changing.
返回
true if the widget is now focused, false otherwise.

◆ ShowUserFocus()

virtual bool FSlateApplicationBase::ShowUserFocus ( const TSharedPtr< const SWidget >  Widget) const
protectedpure virtual

Gets whether or not a particular widget should show user focus.

返回
True if we should show user focus

友元及相关函数文档

◆ FHitTesting

friend class FHitTesting
friend
返回
a hittesting object that can perform hittests agains widgets. Only certain classes can make use of FHitTesting

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