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

Common functionality for game and editor viewport clients 更多...

#include <UnrealClient.h>

+ 类 FCommonViewportClient 继承关系图:

Public 成员函数

ENGINE_API float GetDPIDerivedResolutionFraction () const
 
virtual ENGINE_API float GetDPIScale () const override
 
ENGINE_API void RequestUpdateDPIScale ()
 Tells this viewport to update editor dpi scale when needed
 
- Public 成员函数 继承自 FViewportClient
virtual void CapturedMouseMove (FViewport *InViewport, int32 InMouseX, int32 InMouseY)
 Called when the mouse is moved while a window input capture is in effect 更多...
 
virtual bool CaptureMouseOnLaunch ()
 Gets whether or not the viewport captures the Mouse on launch of the application Technically this controls capture on the first window activate, so in situations where the application is launched but isn't activated the effect is delayed until activation.
 
virtual void ConditionalRestoreWorld (class UWorld *InWorld)
 Restores GWorld to InWorld 更多...
 
virtual class UWorld * ConditionalSetWorld ()
 Sets GWorld to the appropriate world for this client 更多...
 
virtual EMouseCursor::Type GetCursor (FViewport *Viewport, int32 X, int32 Y)
 Retrieves the cursor that should be displayed by the OS 更多...
 
virtual float GetDPIScale () const
 
virtual const TArray< FString > * GetEnabledStats () const
 Get a ptr to the enabled stats list
 
virtual EMouseCaptureMode GetMouseCaptureMode () const
 Gets the mouse capture behavior when the viewport is clicked
 
virtual FStatHitchesData * GetStatHitchesData () const
 Get a ptr to the stat unit data for this viewport
 
virtual FStatUnitData * GetStatUnitData () const
 Get a ptr to the stat unit data for this viewport
 
virtual bool HandleNavigation (const uint32 InUserIndex, TSharedPtr< SWidget > InDestination)
 Optionally do custom handling of a navigation.
 
virtual bool HideCursorDuringCapture () const
 Gets whether or not the cursor is hidden when the viewport captures the mouse
 
virtual bool IgnoreInput ()
 Check whether we should ignore input.
 
virtual bool InputAxis (FViewport *Viewport, int32 ControllerId, FKey Key, float Delta, float DeltaTime, int32 NumSamples=1, bool bGamepad=false)
 Check an axis movement received by the viewport. 更多...
 
virtual bool InputChar (FViewport *Viewport, int32 ControllerId, TCHAR Character)
 Check a character input received by the viewport. 更多...
 
virtual bool InputGesture (FViewport *Viewport, EGestureEvent GestureType, const FVector2D &GestureDelta, bool bIsDirectionInvertedFromDevice)
 Check a gesture event received by the viewport. 更多...
 
virtual bool InputKey (const FInputKeyEventArgs &EventArgs)
 Check a key event received by the viewport. 更多...
 
virtual bool InputMotion (FViewport *Viewport, int32 ControllerId, const FVector &Tilt, const FVector &RotationRate, const FVector &Gravity, const FVector &Acceleration)
 Each frame, the input system will update the motion data. 更多...
 
virtual bool InputTouch (FViewport *Viewport, int32 ControllerId, uint32 Handle, ETouchType::Type Type, const FVector2D &TouchLocation, float Force, FDateTime DeviceTimestamp, uint32 TouchpadIndex)
 Check a key event received by the viewport. 更多...
 
virtual bool IsInGameView () const
 Returns true if this viewport is excluding non-game elements from its display
 
virtual bool IsOrtho () const
 Returns true if this viewport is orthogonal. 更多...
 
virtual bool IsStatEnabled (const FString &InName) const
 Check whether a specific stat is enabled for this viewport
 
virtual bool LockDuringCapture ()
 Gets whether or not the cursor is locked to the viewport when the viewport captures the mouse
 
virtual TOptional< TSharedRef< SWidget > > MapCursor (FViewport *Viewport, const FCursorReply &CursorReply)
 Called to map a cursor reply to an actual widget to render. 更多...
 
virtual FPopupMethodReply OnQueryPopupMethod () const
 Should we make new windows for popups or create an overlay in the current window.
 
virtual bool OverrideHighResScreenshotCaptureRegion (FIntRect &OutCaptureRegion)
 Allow viewport client to override the current capture region 更多...
 
virtual void ProcessAccumulatedPointerInput (FViewport *InViewport)
 Called from slate when input is finished for this frame, and we should process any queued mouse moves.
 
virtual TOptional< bool > QueryShowFocus (const EFocusCause InFocusCause) const
 Called to determine if we should render the focus brush. 更多...
 
virtual bool RequiresKeyboardInput () const
 Determine if the viewport client is going to need any keyboard input 更多...
 
virtual bool RequiresUncapturedAxisInput () const
 Determines whether this viewport client should receive calls to InputAxis() if the game's window is not currently capturing the mouse. 更多...
 
virtual void SetEnabledStats (const TArray< FString > &InEnabledStats)
 Sets all the stats that should be enabled for the viewport
 
virtual void SetShowStats (bool bWantStats)
 Sets whether stats should be visible for the viewport
 
virtual bool ShouldAlwaysLockMouse ()
 Gets whether or not the cursor should always be locked to the viewport.
 
virtual bool ShouldDPIScaleSceneCanvas () const
 
virtual bool WindowCloseRequested ()
 Called when the top level window associated with the viewport has been requested to close. 更多...
 

Protected 成员函数

virtual float UpdateViewportClientWindowDPIScale () const
 

详细描述

Common functionality for game and editor viewport clients

成员函数说明

◆ GetDPIDerivedResolutionFraction()

ENGINE_API float FCommonViewportClient::GetDPIDerivedResolutionFraction ( ) const
返回
the current resolution fraction to be used for scene rendering in this client.

◆ GetDPIScale()

virtual ENGINE_API float FCommonViewportClient::GetDPIScale ( ) const
overridevirtual
返回
The DPI Scale of this viewport

重载 FViewportClient .

◆ UpdateViewportClientWindowDPIScale()

virtual float FCommonViewportClient::UpdateViewportClientWindowDPIScale ( ) const
inlineprotectedvirtual
返回
the DPI scale of the window that the viewport client is in

被 UGameViewportClient 重载.


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