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

A Slate viewport to display a Web Browser Window 更多...

#include <WebBrowserViewport.h>

+ 类 FWebBrowserViewport 继承关系图:

Public 成员函数

 FWebBrowserViewport (TSharedPtr< IWebBrowserWindow > InWebBrowserWindow, bool InIsPopup=false)
 Default Constructor 更多...
 
virtual FIntPoint GetSize () const override
 Returns the size of the viewport

 
virtual FSlateShaderResource * GetViewportRenderTargetTexture () const override
 Returns a slate texture used to draw the rendered viewport in Slate. 更多...
 
virtual FCursorReply OnCursorQuery (const FGeometry &MyGeometry, const FPointerEvent &CursorEvent) override
 Called when Slate needs to know what the mouse cursor should be. 更多...
 
virtual void OnFocusLost (const FFocusEvent &InFocusEvent) override
 Called when the viewport loses keyboard focus. 更多...
 
virtual FReply OnFocusReceived (const FFocusEvent &InFocusEvent) override
 Called when the viewport gains keyboard focus. 更多...
 
virtual FReply OnKeyChar (const FGeometry &MyGeometry, const FCharacterEvent &InCharacterEvent) override
 Called by Slate when a character key is pressed while the viewport has focus 更多...
 
virtual FReply OnKeyDown (const FGeometry &MyGeometry, const FKeyEvent &InKeyEvent) override
 Called by Slate when a key is pressed inside the viewport 更多...
 
virtual FReply OnKeyUp (const FGeometry &MyGeometry, const FKeyEvent &InKeyEvent) override
 Called by Slate when a key is released inside the viewport 更多...
 
virtual FReply OnMouseButtonDoubleClick (const FGeometry &InMyGeometry, const FPointerEvent &InMouseEvent) override
 Called by Slate when the mouse wheel is used inside the viewport 更多...
 
virtual FReply OnMouseButtonDown (const FGeometry &MyGeometry, const FPointerEvent &MouseEvent) override
 Called by Slate when a mouse button is pressed inside the viewport 更多...
 
virtual FReply OnMouseButtonUp (const FGeometry &MyGeometry, const FPointerEvent &MouseEvent) override
 Called by Slate when a mouse button is released inside the viewport 更多...
 
virtual FReply OnMouseMove (const FGeometry &MyGeometry, const FPointerEvent &MouseEvent) override
 Called by Slate when a mouse button is released inside the viewport 更多...
 
virtual FReply OnMouseWheel (const FGeometry &MyGeometry, const FPointerEvent &MouseEvent) override
 Called by Slate when the mouse wheel is used inside the viewport 更多...
 
virtual bool RequiresVsync () const override
 Returns true if the viewport should be vsynced.
 
virtual void Tick (const FGeometry &AllottedGeometry, double InCurrentTime, float DeltaTime) override
 Performs any ticking necessary by this handle

 
 ~FWebBrowserViewport ()
 Destructor.
 
- Public 成员函数 继承自 ISlateViewport
virtual bool AllowScaling () const
 Whether the viewport contents should be scaled or not. 更多...
 
virtual FIntPoint GetSize () const =0
 Returns the size of the viewport

 
virtual FVector2D GetSoftwareCursorPosition () const
 Returns the current position of the software cursor
 
virtual class FSlateShaderResource * GetViewportRenderTargetTexture () const =0
 Returns a slate texture used to draw the rendered viewport in Slate. 更多...
 
virtual TWeakPtr< SWidget > GetWidget ()
 Gets the SWidget associated with this viewport
 
virtual bool HandleNavigation (const uint32 InUserIndex, TSharedPtr< SWidget > InDestination)
 Give the viewport an opportunity to override the navigation behavior. 更多...
 
virtual bool IsSoftwareCursorVisible () const
 Returns whether the software cursor is currently visible
 
virtual bool IsViewportTextureAlphaOnly () const
 Does the texture returned by GetViewportRenderTargetTexture only have an alpha channel?
 
virtual FReply OnAnalogValueChanged (const FGeometry &MyGeometry, const FAnalogInputEvent &InAnalogInputEvent)
 Called when an analog value changes on a button that supports analog 更多...
 
virtual FCursorReply OnCursorQuery (const FGeometry &MyGeometry, const FPointerEvent &CursorEvent)
 Called when Slate needs to know what the mouse cursor should be. 更多...
 
virtual void OnDrawViewport (const FGeometry &AllottedGeometry, const FSlateRect &MyCullingRect, class FSlateWindowElementList &OutDrawElements, int32 LayerId, const FWidgetStyle &InWidgetStyle, bool bParentEnabled)
 Called by Slate when the viewport widget is drawn Implementers of this interface can use this method to perform custom per draw functionality. 更多...
 
virtual void OnFinishedPointerInput ()
 Called after all input for this frame is processed.
 
virtual void OnFocusLost (const FFocusEvent &InFocusEvent)
 Called when the viewport loses keyboard focus. 更多...
 
virtual FReply OnFocusReceived (const FFocusEvent &InFocusEvent)
 Called when the viewport gains keyboard focus. 更多...
 
virtual FReply OnKeyChar (const FGeometry &MyGeometry, const FCharacterEvent &InCharacterEvent)
 Called by Slate when a character key is pressed while the viewport has focus 更多...
 
virtual FReply OnKeyDown (const FGeometry &MyGeometry, const FKeyEvent &InKeyEvent)
 Called by Slate when a key is pressed inside the viewport 更多...
 
virtual FReply OnKeyUp (const FGeometry &MyGeometry, const FKeyEvent &InKeyEvent)
 Called by Slate when a key is released inside the viewport 更多...
 
virtual TOptional< TSharedRef< SWidget > > OnMapCursor (const FCursorReply &CursorReply)
 After OnCursorQuery has specified a cursor type the system asks each widget under the mouse to map that cursor to a widget. 更多...
 
virtual FReply OnMotionDetected (const FGeometry &MyGeometry, const FMotionEvent &InMotionEvent)
 Called when motion is detected (controller or device) e.g. 更多...
 
virtual FReply OnMouseButtonDoubleClick (const FGeometry &InMyGeometry, const FPointerEvent &InMouseEvent)
 Called by Slate when the mouse wheel is used inside the viewport 更多...
 
virtual FReply OnMouseButtonDown (const FGeometry &MyGeometry, const FPointerEvent &MouseEvent)
 Called by Slate when a mouse button is pressed inside the viewport 更多...
 
virtual FReply OnMouseButtonUp (const FGeometry &MyGeometry, const FPointerEvent &MouseEvent)
 Called by Slate when a mouse button is released inside the viewport 更多...
 
virtual FReply OnMouseMove (const FGeometry &MyGeometry, const FPointerEvent &MouseEvent)
 Called by Slate when a mouse button is released inside the viewport 更多...
 
virtual FReply OnMouseWheel (const FGeometry &MyGeometry, const FPointerEvent &MouseEvent)
 Called by Slate when the mouse wheel is used inside the viewport 更多...
 
virtual FNavigationReply OnNavigation (const FGeometry &MyGeometry, const FNavigationEvent &InNavigationEvent)
 Called when navigation is requested e.g. 更多...
 
virtual FPopupMethodReply OnQueryPopupMethod () const
 Called to figure out whether we can make new windows for popups within this viewport. 更多...
 
virtual TOptional< bool > OnQueryShowFocus (const EFocusCause InFocusCause) const
 Called to determine if we should render the focus brush. 更多...
 
virtual FReply OnRequestWindowClose ()
 Called when the top level window associated with the viewport has been requested to close. 更多...
 
virtual FReply OnTouchEnded (const FGeometry &MyGeometry, const FPointerEvent &InTouchEvent)
 Called when a touchpad touch is ended (finger lifted) 更多...
 
virtual FReply OnTouchFirstMove (const FGeometry &MyGeometry, const FPointerEvent &InTouchEvent)
 Called when a touchpad touch has first moved after initial press 更多...
 
virtual FReply OnTouchForceChanged (const FGeometry &MyGeometry, const FPointerEvent &InTouchEvent)
 Called when a touchpad touch force changes, but may or may not have moved 更多...
 
virtual FReply OnTouchGesture (const FGeometry &MyGeometry, const FPointerEvent &InGestureEvent)
 Called on a touchpad gesture event 更多...
 
virtual FReply OnTouchMoved (const FGeometry &MyGeometry, const FPointerEvent &InTouchEvent)
 Called when a touchpad touch is moved (finger moved) 更多...
 
virtual FReply OnTouchStarted (const FGeometry &MyGeometry, const FPointerEvent &InTouchEvent)
 Called when a touchpad touch is started (finger down) 更多...
 
virtual FReply OnViewportActivated (const FWindowActivateEvent &InActivateEvent)
 Called when the viewports top level window is being Activated
 
virtual void OnViewportClosed ()
 Called when the viewport has been requested to close.
 
virtual void OnViewportDeactivated (const FWindowActivateEvent &InActivateEvent)
 Called when the viewports top level window is being Deactivated
 
virtual bool RequiresVsync () const =0
 Returns true if the viewport should be vsynced.
 
virtual void Tick (const FGeometry &AllottedGeometry, double InCurrentTime, float DeltaTime)
 Performs any ticking necessary by this handle

 

详细描述

A Slate viewport to display a Web Browser Window

构造及析构函数说明

◆ FWebBrowserViewport()

FWebBrowserViewport::FWebBrowserViewport ( TSharedPtr< IWebBrowserWindow >  InWebBrowserWindow,
bool  InIsPopup = false 
)
inline

Default Constructor

参数
InWebBrowserWindowThe Web Browser Window this viewport will display
InViewportWidgetThe Widget displaying this viewport (needed to capture mouse)
InIsPopupUsed to initialize a viewport for showing browser popup menus instead of the main window.

成员函数说明

◆ GetViewportRenderTargetTexture()

virtual FSlateShaderResource * FWebBrowserViewport::GetViewportRenderTargetTexture ( ) const
overridevirtual

Returns a slate texture used to draw the rendered viewport in Slate.


实现了 ISlateViewport.

◆ OnCursorQuery()

virtual FCursorReply FWebBrowserViewport::OnCursorQuery ( const FGeometry &  MyGeometry,
const FPointerEvent &  CursorEvent 
)
overridevirtual

Called when Slate needs to know what the mouse cursor should be.

返回
FCursorReply::Unhandled() if the event is not handled; FCursorReply::Cursor() otherwise.

重载 ISlateViewport .

◆ OnFocusLost()

virtual void FWebBrowserViewport::OnFocusLost ( const FFocusEvent &  InFocusEvent)
overridevirtual

Called when the viewport loses keyboard focus.


参数
InFocusEventInformation about what caused the viewport to lose focus

重载 ISlateViewport .

◆ OnFocusReceived()

virtual FReply FWebBrowserViewport::OnFocusReceived ( const FFocusEvent &  InFocusEvent)
overridevirtual

Called when the viewport gains keyboard focus.


参数
InFocusEventInformation about what caused the viewport to gain focus

重载 ISlateViewport .

◆ OnKeyChar()

virtual FReply FWebBrowserViewport::OnKeyChar ( const FGeometry &  MyGeometry,
const FCharacterEvent &  InCharacterEvent 
)
overridevirtual

Called by Slate when a character key is pressed while the viewport has focus

参数
MyGeometryInformation about the location and size of the viewport
MouseEventInformation about the character that was pressed
返回
Whether the event was handled along with possible requests for the system to take action.

重载 ISlateViewport .

◆ OnKeyDown()

virtual FReply FWebBrowserViewport::OnKeyDown ( const FGeometry &  MyGeometry,
const FKeyEvent &  InKeyEvent 
)
overridevirtual

Called by Slate when a key is pressed inside the viewport

参数
MyGeometryInformation about the location and size of the viewport
MouseEventInformation about the key event
返回
Whether the event was handled along with possible requests for the system to take action.

重载 ISlateViewport .

◆ OnKeyUp()

virtual FReply FWebBrowserViewport::OnKeyUp ( const FGeometry &  MyGeometry,
const FKeyEvent &  InKeyEvent 
)
overridevirtual

Called by Slate when a key is released inside the viewport

参数
MyGeometryInformation about the location and size of the viewport
MouseEventInformation about the key event
返回
Whether the event was handled along with possible requests for the system to take action.

重载 ISlateViewport .

◆ OnMouseButtonDoubleClick()

virtual FReply FWebBrowserViewport::OnMouseButtonDoubleClick ( const FGeometry &  InMyGeometry,
const FPointerEvent &  InMouseEvent 
)
overridevirtual

Called by Slate when the mouse wheel is used inside the viewport

参数
MyGeometryInformation about the location and size of the viewport
MouseEventInformation about the mouse event
返回
Whether the event was handled along with possible requests for the system to take action.

重载 ISlateViewport .

◆ OnMouseButtonDown()

virtual FReply FWebBrowserViewport::OnMouseButtonDown ( const FGeometry &  MyGeometry,
const FPointerEvent &  MouseEvent 
)
overridevirtual

Called by Slate when a mouse button is pressed inside the viewport

参数
MyGeometryInformation about the location and size of the viewport
MouseEventInformation about the mouse event
返回
Whether the event was handled along with possible requests for the system to take action.

重载 ISlateViewport .

◆ OnMouseButtonUp()

virtual FReply FWebBrowserViewport::OnMouseButtonUp ( const FGeometry &  MyGeometry,
const FPointerEvent &  MouseEvent 
)
overridevirtual

Called by Slate when a mouse button is released inside the viewport

参数
MyGeometryInformation about the location and size of the viewport
MouseEventInformation about the mouse event
返回
Whether the event was handled along with possible requests for the system to take action.

重载 ISlateViewport .

◆ OnMouseMove()

virtual FReply FWebBrowserViewport::OnMouseMove ( const FGeometry &  MyGeometry,
const FPointerEvent &  MouseEvent 
)
overridevirtual

Called by Slate when a mouse button is released inside the viewport

参数
MyGeometryInformation about the location and size of the viewport
MouseEventInformation about the mouse event
返回
Whether the event was handled along with possible requests for the system to take action.

重载 ISlateViewport .

◆ OnMouseWheel()

virtual FReply FWebBrowserViewport::OnMouseWheel ( const FGeometry &  MyGeometry,
const FPointerEvent &  MouseEvent 
)
overridevirtual

Called by Slate when the mouse wheel is used inside the viewport

参数
MyGeometryInformation about the location and size of the viewport
MouseEventInformation about the mouse event
返回
Whether the event was handled along with possible requests for the system to take action.

重载 ISlateViewport .


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