SCohtmlWidget

Inherits from SLeafWidget

Protected Classes

Name
structGesturePolicyDeleter

Public Functions

Name
SLATE_BEGIN_ARGS(SCohtmlWidget )
COHTMLPLUGIN_APISCohtmlWidget()
virtual COHTMLPLUGIN_API~SCohtmlWidget()
COHTMLPLUGIN_API voidConstruct(const FArguments & InArgs)
COHTMLPLUGIN_API voidConstruct(const FArguments & InArgs, const FString & Url, TSharedPtr< cohtml::IViewListener > Listener)
COHTMLPLUGIN_API voidConstruct(const FArguments & InArgs, const cohtml::ViewSettings & Info, const FString & Url, TSharedPtr< cohtml::IViewListener > Listener)
virtual COHTMLPLUGIN_API FVector2DComputeDesiredSize(float LayoutScaleMultiplier) const override
virtual COHTMLPLUGIN_API voidTick(const FGeometry & AllottedGeometry, const double InCurrentTime, const float InDeltaTime) override
virtual COHTMLPLUGIN_API int32OnPaint(const FPaintArgs & Args, const FGeometry & AllottedGeometry, const FSlateRect & MyClippingRect, FSlateWindowElementList & OutDrawElements, int32 LayerId, const FWidgetStyle & InWidgetStyle, bool bParentEnabled) const override
virtual COHTMLPLUGIN_API FReplyOnMouseMove(const FGeometry & MyGeometry, const FPointerEvent & MouseEvent) override
virtual COHTMLPLUGIN_API FReplyOnMouseButtonDown(const FGeometry & MyGeometry, const FPointerEvent & MouseEvent) override
virtual COHTMLPLUGIN_API FReplyOnMouseButtonDoubleClick(const FGeometry & MyGeometry, const FPointerEvent & MouseEvent) override
virtual COHTMLPLUGIN_API FReplyOnMouseButtonUp(const FGeometry & MyGeometry, const FPointerEvent & MouseEvent) override
virtual COHTMLPLUGIN_API FReplyOnMouseWheel(const FGeometry & MyGeometry, const FPointerEvent & MouseEvent) override
virtual COHTMLPLUGIN_API FReplyOnTouchMoved(const FGeometry & MyGeometry, const FPointerEvent & TouchEvent) override
virtual COHTMLPLUGIN_API FReplyOnTouchStarted(const FGeometry & MyGeometry, const FPointerEvent & TouchEvent) override
virtual COHTMLPLUGIN_API FReplyOnTouchEnded(const FGeometry & MyGeometry, const FPointerEvent & TouchEvent) override
virtual COHTMLPLUGIN_API FReplyOnDragDetected(const FGeometry & MyGeometry, const FPointerEvent & PointerEvent) override
virtual COHTMLPLUGIN_API FCursorReplyOnCursorQuery(const FGeometry & MyGeometry, const FPointerEvent & CursorEvent) const override
virtual COHTMLPLUGIN_API FReplyOnKeyDown(const FGeometry & MyGeometry, const FKeyEvent & KeyEvent) override
virtual COHTMLPLUGIN_API FReplyOnKeyUp(const FGeometry & MyGeometry, const FKeyEvent & KeyEvent) override
virtual COHTMLPLUGIN_API FReplyOnAnalogValueChanged(const FGeometry & MyGeometry, const FAnalogInputEvent & KeyEvent) override
virtual COHTMLPLUGIN_API FReplyOnKeyChar(const FGeometry & MyGeometry, const FCharacterEvent & InCharacterEvent) override
virtual COHTMLPLUGIN_API boolSupportsKeyboardFocus() const override
virtual COHTMLPLUGIN_API FReplyOnFocusReceived(const FGeometry & MyGeometry, const FFocusEvent & InKeyboardFocusEvent) override
virtual COHTMLPLUGIN_API voidOnFocusLost(const FFocusEvent & InKeyboardFocusEvent) override
COHTMLPLUGIN_API voidCreateView(const FString & Url, TSharedPtr< cohtml::IViewListener > Listener, TSharedPtr< cohtml::ITextInputHandler > TextInputHandler, cohtml::IAsyncResourceHandler * Handler)
COHTMLPLUGIN_API voidCreateView(const cohtml::ViewSettings & Info, const FString & Url, TSharedPtr< cohtml::IViewListener > Listener, TSharedPtr< cohtml::ITextInputHandler > TextInputHandler, FCohtmlUEViewSettings & ViewSettingsUE)
COHTMLPLUGIN_API voidRecreateView(const cohtml::ViewSettings & Info, const FString & Url, TSharedPtr< cohtml::IViewListener > Listener, TSharedPtr< cohtml::ITextInputHandler > TextInputHandler, FCohtmlUEViewSettings & ViewSettingsUE)
COHTMLPLUGIN_API cohtml::View *GetView()
COHTMLPLUGIN_API cohtml::ViewRenderer *GetViewRenderer()
COHTMLPLUGIN_API UTextureRenderTarget2D *GetRenderTexture() const
COHTMLPLUGIN_API boolGetNeedToAdvanceView() const
COHTMLPLUGIN_API voidSetNeedToAdvanceView(bool InNeedToAdvanceView)
FCohtmlViewWrapper *GetViewWrapper() const
TWeakObjectPtr< UObject >GetOwningWidget()
boolHasRequestedView() const
enum TextureFilterGetFilter() const
voidSetFilter(enum TextureFilter InFilter)
COHTMLPLUGIN_API voidSetReceiveInput(bool bInReceiveInput)
COHTMLPLUGIN_API voidSetReceiveInputWhenTransparent(bool bInReceiveInputWhenTransparent)
COHTMLPLUGIN_API voidSetInputPropagationBehaviour(ECohtmlInputPropagationBehaviour::Type Behaviour)
FCohtmlGesturePolicy *GetGesturePolicy()
virtual voidPreCohtmlMouseEvent(SCohtmlWidget * , cohtml::View * , const cohtml::MouseEventData & )

Protected Functions

Name
FORCEINLINE FReplyHandleEventIfNeeded(const FKeyEvent & KeyEvent)
FORCEINLINE FReplyHandleEventIfNeeded(const FCharacterEvent & KeyEvent)
FORCEINLINE boolIsOwnerValid()
voidProcessKeyEvent(const FInputEvent & Event, cohtml::KeyEventData::EventType Type)
FReplyOnMouseEvent(const FGeometry & MyGeometry, const FPointerEvent & MouseEvent, cohtml::MouseEventData::EventType EventType)
FReplyOnTouchEvent(const FGeometry & MyGeometry, const FPointerEvent & TouchEvent, cohtml::TouchEventData::EventType EventType)
voidOnViewportResized(class FViewport * , uint32 )
voidComputeDPIScaleBasedOnSize()

Public Attributes

Name
FCohtmlGamepadBehaviourOnFocusLostDelegateGamepadBehaviourOnFocusLostDelegate
FCohtmlCaretRectCaretRect
EMouseCursor::TypeCurrentMouseCursor

Protected Attributes

Name
TSharedPtr< class FCoherentSlateElement, ESPMode::ThreadSafe >SlateElement
TUniquePtr< FCohtmlViewWrapper >ViewWrapper
TUniquePtr< FCohtmlGesturePolicy, GesturePolicyDeleter >GesturePolicy
TUniquePtr< class FCohtmlWidgetIME >IMEManager
TWeakObjectPtr< UObject >Owner
FIntPointDPIScaledSize
TEnumAsByte< enum TextureFilter >Filter
floatDPIScaleBasedOnSize
ECohtmlGamepadBehaviourOnFocusLostGamepadBehaviourOnFocusLost
boolbReceiveInput
boolbNeedsTextureUpdate
boolbNeedToAdvanceViewNextFrame
cohtml::MouseEventDataLastMouseDownData
cohtml::TouchEventDataLastTouchDownData
boolbUnpairedMouseDown
boolbUnpairedTouchDown
boolbUseSurfacePartitioning
FDelegateHandleViewportResizedHandle
TEnumAsByte< ECohtmlInputPropagationBehaviour::Type >InputPropagationBehaviour

Friends

Name
classUCohtmlWidget
classFCohtmlWidgetIME

Public Functions Documentation

function SLATE_BEGIN_ARGS

inline SLATE_BEGIN_ARGS(
    SCohtmlWidget 
)

function SCohtmlWidget

COHTMLPLUGIN_API SCohtmlWidget()

function ~SCohtmlWidget

virtual COHTMLPLUGIN_API ~SCohtmlWidget()

function Construct

COHTMLPLUGIN_API void Construct(
    const FArguments & InArgs
)

function Construct

COHTMLPLUGIN_API void Construct(
    const FArguments & InArgs,
    const FString & Url,
    TSharedPtr< cohtml::IViewListener > Listener
)

function Construct

COHTMLPLUGIN_API void Construct(
    const FArguments & InArgs,
    const cohtml::ViewSettings & Info,
    const FString & Url,
    TSharedPtr< cohtml::IViewListener > Listener
)

function ComputeDesiredSize

virtual COHTMLPLUGIN_API FVector2D ComputeDesiredSize(
    float LayoutScaleMultiplier
) const override

function Tick

virtual COHTMLPLUGIN_API void Tick(
    const FGeometry & AllottedGeometry,
    const double InCurrentTime,
    const float InDeltaTime
) override

function OnPaint

virtual COHTMLPLUGIN_API int32 OnPaint(
    const FPaintArgs & Args,
    const FGeometry & AllottedGeometry,
    const FSlateRect & MyClippingRect,
    FSlateWindowElementList & OutDrawElements,
    int32 LayerId,
    const FWidgetStyle & InWidgetStyle,
    bool bParentEnabled
) const override

function OnMouseMove

virtual COHTMLPLUGIN_API FReply OnMouseMove(
    const FGeometry & MyGeometry,
    const FPointerEvent & MouseEvent
) override

function OnMouseButtonDown

virtual COHTMLPLUGIN_API FReply OnMouseButtonDown(
    const FGeometry & MyGeometry,
    const FPointerEvent & MouseEvent
) override

function OnMouseButtonDoubleClick

virtual COHTMLPLUGIN_API FReply OnMouseButtonDoubleClick(
    const FGeometry & MyGeometry,
    const FPointerEvent & MouseEvent
) override

function OnMouseButtonUp

virtual COHTMLPLUGIN_API FReply OnMouseButtonUp(
    const FGeometry & MyGeometry,
    const FPointerEvent & MouseEvent
) override

function OnMouseWheel

virtual COHTMLPLUGIN_API FReply OnMouseWheel(
    const FGeometry & MyGeometry,
    const FPointerEvent & MouseEvent
) override

function OnTouchMoved

virtual COHTMLPLUGIN_API FReply OnTouchMoved(
    const FGeometry & MyGeometry,
    const FPointerEvent & TouchEvent
) override

function OnTouchStarted

virtual COHTMLPLUGIN_API FReply OnTouchStarted(
    const FGeometry & MyGeometry,
    const FPointerEvent & TouchEvent
) override

function OnTouchEnded

virtual COHTMLPLUGIN_API FReply OnTouchEnded(
    const FGeometry & MyGeometry,
    const FPointerEvent & TouchEvent
) override

function OnDragDetected

virtual COHTMLPLUGIN_API FReply OnDragDetected(
    const FGeometry & MyGeometry,
    const FPointerEvent & PointerEvent
) override

function OnCursorQuery

virtual COHTMLPLUGIN_API FCursorReply OnCursorQuery(
    const FGeometry & MyGeometry,
    const FPointerEvent & CursorEvent
) const override

function OnKeyDown

virtual COHTMLPLUGIN_API FReply OnKeyDown(
    const FGeometry & MyGeometry,
    const FKeyEvent & KeyEvent
) override

function OnKeyUp

virtual COHTMLPLUGIN_API FReply OnKeyUp(
    const FGeometry & MyGeometry,
    const FKeyEvent & KeyEvent
) override

function OnAnalogValueChanged

virtual COHTMLPLUGIN_API FReply OnAnalogValueChanged(
    const FGeometry & MyGeometry,
    const FAnalogInputEvent & KeyEvent
) override

function OnKeyChar

virtual COHTMLPLUGIN_API FReply OnKeyChar(
    const FGeometry & MyGeometry,
    const FCharacterEvent & InCharacterEvent
) override

function SupportsKeyboardFocus

virtual COHTMLPLUGIN_API bool SupportsKeyboardFocus() const override

function OnFocusReceived

virtual COHTMLPLUGIN_API FReply OnFocusReceived(
    const FGeometry & MyGeometry,
    const FFocusEvent & InKeyboardFocusEvent
) override

function OnFocusLost

virtual COHTMLPLUGIN_API void OnFocusLost(
    const FFocusEvent & InKeyboardFocusEvent
) override

function CreateView

COHTMLPLUGIN_API void CreateView(
    const FString & Url,
    TSharedPtr< cohtml::IViewListener > Listener,
    TSharedPtr< cohtml::ITextInputHandler > TextInputHandler,
    cohtml::IAsyncResourceHandler * Handler
)

function CreateView

COHTMLPLUGIN_API void CreateView(
    const cohtml::ViewSettings & Info,
    const FString & Url,
    TSharedPtr< cohtml::IViewListener > Listener,
    TSharedPtr< cohtml::ITextInputHandler > TextInputHandler,
    FCohtmlUEViewSettings & ViewSettingsUE
)

function RecreateView

COHTMLPLUGIN_API void RecreateView(
    const cohtml::ViewSettings & Info,
    const FString & Url,
    TSharedPtr< cohtml::IViewListener > Listener,
    TSharedPtr< cohtml::ITextInputHandler > TextInputHandler,
    FCohtmlUEViewSettings & ViewSettingsUE
)

function GetView

COHTMLPLUGIN_API cohtml::View * GetView()

function GetViewRenderer

COHTMLPLUGIN_API cohtml::ViewRenderer * GetViewRenderer()

function GetRenderTexture

COHTMLPLUGIN_API UTextureRenderTarget2D * GetRenderTexture() const

function GetNeedToAdvanceView

inline COHTMLPLUGIN_API bool GetNeedToAdvanceView() const

function SetNeedToAdvanceView

inline COHTMLPLUGIN_API void SetNeedToAdvanceView(
    bool InNeedToAdvanceView
)

function GetViewWrapper

inline FCohtmlViewWrapper * GetViewWrapper() const

function GetOwningWidget

inline TWeakObjectPtr< UObject > GetOwningWidget()

function HasRequestedView

bool HasRequestedView() const

function GetFilter

enum TextureFilter GetFilter() const

function SetFilter

void SetFilter(
    enum TextureFilter InFilter
)

function SetReceiveInput

COHTMLPLUGIN_API void SetReceiveInput(
    bool bInReceiveInput
)

function SetReceiveInputWhenTransparent

COHTMLPLUGIN_API void SetReceiveInputWhenTransparent(
    bool bInReceiveInputWhenTransparent
)

function SetInputPropagationBehaviour

COHTMLPLUGIN_API void SetInputPropagationBehaviour(
    ECohtmlInputPropagationBehaviour::Type Behaviour
)

function GetGesturePolicy

FCohtmlGesturePolicy * GetGesturePolicy()

function PreCohtmlMouseEvent

inline virtual void PreCohtmlMouseEvent(
    SCohtmlWidget * ,
    cohtml::View * ,
    const cohtml::MouseEventData & 
)

Protected Functions Documentation

function HandleEventIfNeeded

FORCEINLINE FReply HandleEventIfNeeded(
    const FKeyEvent & KeyEvent
)

function HandleEventIfNeeded

FORCEINLINE FReply HandleEventIfNeeded(
    const FCharacterEvent & KeyEvent
)

function IsOwnerValid

inline FORCEINLINE bool IsOwnerValid()

function ProcessKeyEvent

void ProcessKeyEvent(
    const FInputEvent & Event,
    cohtml::KeyEventData::EventType Type
)

function OnMouseEvent

FReply OnMouseEvent(
    const FGeometry & MyGeometry,
    const FPointerEvent & MouseEvent,
    cohtml::MouseEventData::EventType EventType
)

function OnTouchEvent

FReply OnTouchEvent(
    const FGeometry & MyGeometry,
    const FPointerEvent & TouchEvent,
    cohtml::TouchEventData::EventType EventType
)

function OnViewportResized

void OnViewportResized(
    class FViewport * ,
    uint32 
)

function ComputeDPIScaleBasedOnSize

void ComputeDPIScaleBasedOnSize()

Public Attributes Documentation

variable GamepadBehaviourOnFocusLostDelegate

FCohtmlGamepadBehaviourOnFocusLostDelegate GamepadBehaviourOnFocusLostDelegate;

variable CaretRect

FCohtmlCaretRect CaretRect;

variable CurrentMouseCursor

EMouseCursor::Type CurrentMouseCursor;

Protected Attributes Documentation

variable SlateElement

TSharedPtr< class FCoherentSlateElement, ESPMode::ThreadSafe > SlateElement;

variable ViewWrapper

TUniquePtr< FCohtmlViewWrapper > ViewWrapper;

variable GesturePolicy

TUniquePtr< FCohtmlGesturePolicy, GesturePolicyDeleter > GesturePolicy;

variable IMEManager

TUniquePtr< class FCohtmlWidgetIME > IMEManager;

variable Owner

TWeakObjectPtr< UObject > Owner;

variable DPIScaledSize

FIntPoint DPIScaledSize;

variable Filter

TEnumAsByte< enum TextureFilter > Filter;

variable DPIScaleBasedOnSize

float DPIScaleBasedOnSize;

variable GamepadBehaviourOnFocusLost

ECohtmlGamepadBehaviourOnFocusLost GamepadBehaviourOnFocusLost;

variable bReceiveInput

bool bReceiveInput;

variable bNeedsTextureUpdate

bool bNeedsTextureUpdate;

variable bNeedToAdvanceViewNextFrame

bool bNeedToAdvanceViewNextFrame;

variable LastMouseDownData

cohtml::MouseEventData LastMouseDownData;

variable LastTouchDownData

cohtml::TouchEventData LastTouchDownData;

variable bUnpairedMouseDown

bool bUnpairedMouseDown;

variable bUnpairedTouchDown

bool bUnpairedTouchDown;

variable bUseSurfacePartitioning

bool bUseSurfacePartitioning;

variable ViewportResizedHandle

FDelegateHandle ViewportResizedHandle;

variable InputPropagationBehaviour

TEnumAsByte< ECohtmlInputPropagationBehaviour::Type > InputPropagationBehaviour;

Friends

friend UCohtmlWidget

friend class UCohtmlWidget;

friend FCohtmlWidgetIME

friend class FCohtmlWidgetIME;