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

Windows-specific application implementation. 更多...

#include <WindowsApplication.h>

+ 类 FWindowsApplication 继承关系图:

Public 成员函数

virtual void AddMessageHandler (IWindowsMessageHandler &InMessageHandler)
 Adds a Windows message handler with the application instance. 更多...
 
void DeferDragDropOperation (const FDeferredWindowsDragDropOperation &DeferredDragDropOperation)
 Called by a window when an OLE Drag and Drop operation occurred on a non-game thread
 
virtual ITextInputMethodSystem * GetTextInputMethodSystem () override
 Function to return the current implementation of the Text Input Method System
 
virtual EWindowTitleAlignment::Type GetWindowTitleAlignment () const override
 Gets the horizontal alignment of the window title bar's title text.
 
virtual bool IsCursorDirectlyOverSlateWindow () const override
 
HRESULT OnOLEDragEnter (const HWND HWnd, const FDragDropOLEData &OLEData, ::DWORD KeyState, POINTL CursorPosition, ::DWORD *CursorEffect)
 Invoked by a window when an OLE Drag and Drop first enters it.
 
HRESULT OnOLEDragOut (const HWND HWnd)
 Invoked by a window when an OLE Drag and Drop exits the window.
 
HRESULT OnOLEDragOver (const HWND HWnd, ::DWORD KeyState, POINTL CursorPosition, ::DWORD *CursorEffect)
 Invoked by a window when an OLE Drag and Drop moves over the window.
 
HRESULT OnOLEDrop (const HWND HWnd, const FDragDropOLEData &OLEData, ::DWORD KeyState, POINTL CursorPosition, ::DWORD *CursorEffect)
 Invoked by a window when an OLE Drag and Drop is dropped onto the window.
 
virtual void RemoveMessageHandler (IWindowsMessageHandler &InMessageHandler)
 Removes a Windows message handler with the application instance. 更多...
 
virtual void SetForceFeedbackChannelValue (int32 ControllerId, FForceFeedbackChannelType ChannelType, float Value) override
 Sets the strength/speed of the given channel for the given controller id. 更多...
 
virtual void SetForceFeedbackChannelValues (int32 ControllerId, const FForceFeedbackValues &Values) override
 Sets the strength/speed of all the channels for the given controller id. 更多...
 
virtual void SetHapticFeedbackValues (int32 ControllerId, int32 Hand, const FHapticFeedbackValues &Values) override
 Sets the frequency and amplitude of haptic feedback channels for a given controller id. 更多...
 
virtual ~FWindowsApplication ()
 Virtual destructor.
 
- Public 成员函数 继承自 GenericApplication
 DECLARE_EVENT_OneParam (FSlateApplication, FVirtualKeyboardShownEvent, FPlatformRect)
 Delegate for virtual keyboard being shown/hidden in case UI wants to slide out of the way
 
virtual ITextInputMethodSystem * GetTextInputMethodSystem ()
 Function to return the current implementation of the Text Input Method System
 
virtual EWindowTitleAlignment::Type GetWindowTitleAlignment () const
 Gets the horizontal alignment of the window title bar's title text.
 
virtual TSharedPtr< FGenericWindow > GetWindowUnderCursor ()
 
virtual bool IsCursorDirectlyOverSlateWindow () const
 
FOnDisplayMetricsChanged & OnDisplayMetricsChanged ()
 Notifies subscribers when any of the display metrics change: e.g. 更多...
 
virtual void SendAnalytics (IAnalyticsProvider *Provider)
 Send any analytics captured by the application
 
- Public 成员函数 继承自 IInputInterface
virtual void SetDeviceProperty (int32 ControllerId, const FInputDeviceProperty *Property)
 Sets a property for a given controller id. 更多...
 
virtual void SetForceFeedbackChannelValue (int32 ControllerId, FForceFeedbackChannelType ChannelType, float Value)=0
 Sets the strength/speed of the given channel for the given controller id. 更多...
 
virtual void SetForceFeedbackChannelValues (int32 ControllerId, const FForceFeedbackValues &Values)=0
 Sets the strength/speed of all the channels for the given controller id. 更多...
 
virtual void SetHapticFeedbackValues (int32 ControllerId, int32 Hand, const FHapticFeedbackValues &Values)
 Sets the frequency and amplitude of haptic feedback channels for a given controller id. 更多...
 
virtual ~IInputInterface ()
 Virtual destructor.
 

静态 Public 成员函数

static FWindowsApplication * CreateWindowsApplication (const HINSTANCE InstanceHandle, const HICON IconHandle)
 Static: Creates a new Win32 application 更多...
 

Protected 成员函数

 FWindowsApplication (const HINSTANCE HInstance, const HICON IconHandle)
 Hidden constructor.
 
void ProcessDeferredDragDropOperation (const FDeferredWindowsDragDropOperation &Op)
 Processes deferred drag and drop operations.
 
int32 ProcessDeferredMessage (const FDeferredWindowsMessage &DeferredMessage)
 Processes a deferred Windows message.
 
int32 ProcessMessage (HWND hwnd, uint32 msg, WPARAM wParam, LPARAM lParam)
 Processes a single Windows message.
 
- Protected 成员函数 继承自 GenericApplication
void BroadcastDisplayMetricsChanged (const FDisplayMetrics &InMetrics)
 Trigger the OnDisplayMetricsChanged event with the argument 'InMetrics'
 

静态 Protected 成员函数

static LRESULT CALLBACK AppWndProc (HWND hwnd, uint32 msg, WPARAM wParam, LPARAM lParam)
 Windows callback for message processing (forwards messages to the FWindowsApplication instance).
 

额外继承的成员函数

- Protected 属性 继承自 GenericApplication
FVirtualKeyboardHiddenEvent VirtualKeyboardHiddenEvent
 Delegate for virtual keyboard being shown
 
FVirtualKeyboardShownEvent VirtualKeyboardShownEvent
 Delegate for virtual keyboard being shown
 

详细描述

Windows-specific application implementation.

成员函数说明

◆ AddMessageHandler()

virtual void FWindowsApplication::AddMessageHandler ( IWindowsMessageHandler &  InMessageHandler)
virtual

Adds a Windows message handler with the application instance.

参数
MessageHandlerThe message handler to register.
参见
RemoveMessageHandler

◆ CreateWindowsApplication()

static FWindowsApplication * FWindowsApplication::CreateWindowsApplication ( const HINSTANCE  InstanceHandle,
const HICON  IconHandle 
)
static

Static: Creates a new Win32 application

参数
InstanceHandleWin32 instance handle.
IconHandleWin32 application icon handle.
返回
New application object.

◆ IsCursorDirectlyOverSlateWindow()

virtual bool FWindowsApplication::IsCursorDirectlyOverSlateWindow ( ) const
overridevirtual
返回
true if the system cursor is currently directly over a slate window.

重载 GenericApplication .

◆ RemoveMessageHandler()

virtual void FWindowsApplication::RemoveMessageHandler ( IWindowsMessageHandler &  InMessageHandler)
virtual

Removes a Windows message handler with the application instance.

参数
MessageHandlerThe message handler to register.
参见
AddMessageHandler

◆ SetForceFeedbackChannelValue()

virtual void FWindowsApplication::SetForceFeedbackChannelValue ( int32  ControllerId,
FForceFeedbackChannelType  ChannelType,
float  Value 
)
overridevirtual

Sets the strength/speed of the given channel for the given controller id.

NOTE: If the channel is not supported, the call will silently fail

参数
ControllerIdthe id of the controller whose value is to be set
ChannelTypethe type of channel whose value should be set
Valuestrength or speed of feedback, 0.0f to 1.0f. 0.0f will disable

实现了 IInputInterface.

◆ SetForceFeedbackChannelValues()

virtual void FWindowsApplication::SetForceFeedbackChannelValues ( int32  ControllerId,
const FForceFeedbackValues &  Values 
)
overridevirtual

Sets the strength/speed of all the channels for the given controller id.

NOTE: Unsupported channels are silently ignored

参数
ControllerIdthe id of the controller whose value is to be set
FForceFeedbackChannelValuesstrength or speed of feedback for all channels

实现了 IInputInterface.

◆ SetHapticFeedbackValues()

virtual void FWindowsApplication::SetHapticFeedbackValues ( int32  ControllerId,
int32  Hand,
const FHapticFeedbackValues &  Values 
)
overridevirtual

Sets the frequency and amplitude of haptic feedback channels for a given controller id.

Some devices / platforms may support just haptics, or just force feedback.

参数
ControllerIdID of the controller to issue haptic feedback for
HandIdWhich hand id (e.g. left or right) to issue the feedback for. These usually correspond to EControllerHands
ValuesFrequency and amplitude to haptics at

重载 IInputInterface .


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