FWebBrowserViewport

A Slate viewport to display a Web Browser Window

Windows
MacOS
Linux

Inheritance Hierarchy

ISlateViewport

FWebBrowserViewport

References

Module

WebBrowser

Header

/Engine/Source/Runtime/WebBrowser/Public/WebBrowserViewport.h

Include

#include "WebBrowserViewport.h"

Syntax

class FWebBrowserViewport : public ISlateViewport

Remarks

A Slate viewport to display a Web Browser Window

Constructors

Name Description

Public function

FWebBrowserViewport

(
    TSharedPtr< IWebBrowserWindow > InW...,
    bool InIsPopup
)

Default Constructor

Destructors

Name Description

Public function

~FWebBrowserViewport()

Destructor.

Overridden from ISlateViewport

Name Description

Public function Virtual Const

FIntPoint

 

GetSize()

Returns the size of the viewport

Public function Virtual Const

FSlateShader...

 

GetViewportRenderTargetTexture()

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

Public function Virtual

FCursorReply

 

OnCursorQuery

(
    const FGeometry& MyGeometry,
    const FPointerEvent& CursorEvent
)

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

Public function Virtual

void

 

OnFocusLost

(
    const FFocusEvent& InFocusEvent
)

Called when the viewport loses keyboard focus.

Public function Virtual

FReply

 

OnFocusReceived

(
    const FFocusEvent& InFocusEvent
)

Called when the viewport gains keyboard focus.

Public function Virtual

FReply

 

OnKeyChar

(
    const FGeometry& MyGeometry,
    const FCharacterEvent& InCharacter...
)

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

Public function Virtual

FReply

 

OnKeyDown

(
    const FGeometry& MyGeometry,
    const FKeyEvent& InKeyEvent
)

Called by Slate when a key is pressed inside the viewport

Public function Virtual

FReply

 

OnKeyUp

(
    const FGeometry& MyGeometry,
    const FKeyEvent& InKeyEvent
)

Called by Slate when a key is released inside the viewport

Public function Virtual

FReply

 

OnMouseButtonDoubleClick

(
    const FGeometry& InMyGeometry,
    const FPointerEvent& InMouseEvent
)

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

Public function Virtual

FReply

 

OnMouseButtonDown

(
    const FGeometry& MyGeometry,
    const FPointerEvent& MouseEvent
)

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

Public function Virtual

FReply

 

OnMouseButtonUp

(
    const FGeometry& MyGeometry,
    const FPointerEvent& MouseEvent
)

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

Public function Virtual

void

 

OnMouseEnter

(
    const FGeometry& MyGeometry,
    const FPointerEvent& MouseEvent
)

Public function Virtual

void

 

OnMouseLeave

(
    const FPointerEvent& MouseEvent
)

Public function Virtual

FReply

 

OnMouseMove

(
    const FGeometry& MyGeometry,
    const FPointerEvent& MouseEvent
)

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

Public function Virtual

FReply

 

OnMouseWheel

(
    const FGeometry& MyGeometry,
    const FPointerEvent& MouseEvent
)

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

Public function Virtual Const

bool

 

RequiresVsync()

Returns true if the viewport should be vsynced.

Public function Virtual

void

 

Tick

(
    const FGeometry& AllottedGeometry,
    double InCurrentTime,
    float DeltaTime
)

Performs any ticking necessary by this handle

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss