Skip to content
SiteEmail

SCohtmlWidget

Inherits from SLeafWidget

Name
structGesturePolicyDeleter
Name
SLATE_BEGIN_ARGS(SCohtmlWidget )
COHTMLPLUGIN_APISCohtmlWidget()
virtual COHTMLPLUGIN_API~SCohtmlWidget()
COHTMLPLUGIN_API voidConstruct(const FArguments & InArgs)
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 FReplyOnTouchStarted(const FGeometry & MyGeometry, const FPointerEvent & TouchEvent) override
virtual COHTMLPLUGIN_API FReplyOnTouchMoved(const FGeometry & MyGeometry, const FPointerEvent & TouchEvent) override
virtual COHTMLPLUGIN_API FReplyOnTouchEnded(const FGeometry & MyGeometry, const FPointerEvent & TouchEvent) override
COHTMLPLUGIN_API voidHandleCollectedTouchEvents()
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 voidInitViewWrapper(TSharedPtr< cohtml::IViewListener > InViewListener, TSharedPtr< cohtml::ITextInputHandler > InTextInputHandler, TEnumAsByte< enum TextureFilter > & InFilter, UObject * InOwner)
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)
COHTMLPLUGIN_API voidSchedulePaintNextFrame()
FCohtmlViewWrapper *GetViewWrapper() const
TWeakObjectPtr< UObject >GetOwningWidget()
boolHasRequestedView() const
enum TextureFilterGetFilter() const
voidSetFilter(enum TextureFilter InFilter)
COHTMLPLUGIN_API voidSetReceiveInput(bool bInReceiveInput)
COHTMLPLUGIN_API voidSetInputPropagationBehaviour(ECohtmlInputPropagationBehaviour::Type Behaviour)
COHTMLPLUGIN_API voidSetMultiTouchEventsHandling(ECohtmlMultiTouchEventsHandling MultiTouchHandling)
FCohtmlGesturePolicy *GetGesturePolicy()
virtual voidPreCohtmlMouseEvent(SCohtmlWidget * , cohtml::View * , const cohtml::MouseEventData & )
cohtml::IInputProxy *GetFocusedInput()
voidSetFocusedInput(cohtml::IInputProxy * Proxy)
Name
voidCreateView(const cohtml::ViewSettings & RequestedViewSettings, const FString & Url)
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(FViewport * ResizedViewport, uint32 )
voidCacheDPIScales()
voidCacheViewportDPIScale()
voidCacheWidgetWindowDPIScale()
voidForcePaintView(float InDeltaTime)
Name
FCohtmlGamepadBehaviourOnFocusLostDelegateGamepadBehaviourOnFocusLostDelegate
FCohtmlCaretRectCaretRect
EMouseCursor::TypeCurrentMouseCursor
Name
TSharedPtr< class FCoherentSlateElement, ESPMode::ThreadSafe >SlateElement
TUniquePtr< FCohtmlViewWrapper >ViewWrapper
TUniquePtr< FCohtmlGesturePolicy, GesturePolicyDeleter >GesturePolicy
TUniquePtr< class FCohtmlWidgetIME >IMEManager
TWeakObjectPtr< UObject >Owner
FIntPointViewportDPIScaledSize
FIntPointWidgetWindowDPIScaledSize
TEnumAsByte< enum TextureFilter >Filter
floatViewportDPIScale
floatWidgetWindowDPIScale
ECohtmlGamepadBehaviourOnFocusLostGamepadBehaviourOnFocusLost
boolbReceiveInput
boolbNeedsTextureUpdate
boolbViewCreationInProgress
boolbNeedToAdvanceViewNextFrame
cohtml::MouseEventDataLastMouseDownData
cohtml::TouchEventDataLastTouchDownData
boolbUnpairedMouseDown
boolbUnpairedTouchDown
boolbUseSurfacePartitioning
FDelegateHandleViewportResizedHandle
TEnumAsByte< ECohtmlInputPropagationBehaviour::Type >InputPropagationBehaviour
ECohtmlMultiTouchEventsHandlingMultiTouchEventsHandling
TArray< cohtml::TouchEventData >TouchEvents
FDelegateHandleOnSlateAppPostTickHandle
Name
classUCohtmlWidget
classFCohtmlWidgetIME
inline SLATE_BEGIN_ARGS(
SCohtmlWidget
)
COHTMLPLUGIN_API SCohtmlWidget()
virtual COHTMLPLUGIN_API ~SCohtmlWidget()
COHTMLPLUGIN_API void Construct(
const FArguments & InArgs
)
virtual COHTMLPLUGIN_API FVector2D ComputeDesiredSize(
float LayoutScaleMultiplier
) const override
virtual COHTMLPLUGIN_API void Tick(
const FGeometry & AllottedGeometry,
const double InCurrentTime,
const float InDeltaTime
) override
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
virtual COHTMLPLUGIN_API FReply OnMouseMove(
const FGeometry & MyGeometry,
const FPointerEvent & MouseEvent
) override
virtual COHTMLPLUGIN_API FReply OnMouseButtonDown(
const FGeometry & MyGeometry,
const FPointerEvent & MouseEvent
) override
virtual COHTMLPLUGIN_API FReply OnMouseButtonDoubleClick(
const FGeometry & MyGeometry,
const FPointerEvent & MouseEvent
) override
virtual COHTMLPLUGIN_API FReply OnMouseButtonUp(
const FGeometry & MyGeometry,
const FPointerEvent & MouseEvent
) override
virtual COHTMLPLUGIN_API FReply OnMouseWheel(
const FGeometry & MyGeometry,
const FPointerEvent & MouseEvent
) override
virtual COHTMLPLUGIN_API FReply OnTouchStarted(
const FGeometry & MyGeometry,
const FPointerEvent & TouchEvent
) override
virtual COHTMLPLUGIN_API FReply OnTouchMoved(
const FGeometry & MyGeometry,
const FPointerEvent & TouchEvent
) override
virtual COHTMLPLUGIN_API FReply OnTouchEnded(
const FGeometry & MyGeometry,
const FPointerEvent & TouchEvent
) override
COHTMLPLUGIN_API void HandleCollectedTouchEvents()
virtual COHTMLPLUGIN_API FReply OnDragDetected(
const FGeometry & MyGeometry,
const FPointerEvent & PointerEvent
) override
virtual COHTMLPLUGIN_API FCursorReply OnCursorQuery(
const FGeometry & MyGeometry,
const FPointerEvent & CursorEvent
) const override
virtual COHTMLPLUGIN_API FReply OnKeyDown(
const FGeometry & MyGeometry,
const FKeyEvent & KeyEvent
) override
virtual COHTMLPLUGIN_API FReply OnKeyUp(
const FGeometry & MyGeometry,
const FKeyEvent & KeyEvent
) override
virtual COHTMLPLUGIN_API FReply OnAnalogValueChanged(
const FGeometry & MyGeometry,
const FAnalogInputEvent & KeyEvent
) override
virtual COHTMLPLUGIN_API FReply OnKeyChar(
const FGeometry & MyGeometry,
const FCharacterEvent & InCharacterEvent
) override
virtual COHTMLPLUGIN_API bool SupportsKeyboardFocus() const override
virtual COHTMLPLUGIN_API FReply OnFocusReceived(
const FGeometry & MyGeometry,
const FFocusEvent & InKeyboardFocusEvent
) override
virtual COHTMLPLUGIN_API void OnFocusLost(
const FFocusEvent & InKeyboardFocusEvent
) override
COHTMLPLUGIN_API void InitViewWrapper(
TSharedPtr< cohtml::IViewListener > InViewListener,
TSharedPtr< cohtml::ITextInputHandler > InTextInputHandler,
TEnumAsByte< enum TextureFilter > & InFilter,
UObject * InOwner
)
COHTMLPLUGIN_API void RecreateView(
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
inline COHTMLPLUGIN_API bool GetNeedToAdvanceView() const
inline COHTMLPLUGIN_API void SetNeedToAdvanceView(
bool InNeedToAdvanceView
)
COHTMLPLUGIN_API void SchedulePaintNextFrame()
inline FCohtmlViewWrapper * GetViewWrapper() const
inline TWeakObjectPtr< UObject > GetOwningWidget()
bool HasRequestedView() const
enum TextureFilter GetFilter() const
void SetFilter(
enum TextureFilter InFilter
)
COHTMLPLUGIN_API void SetReceiveInput(
bool bInReceiveInput
)
COHTMLPLUGIN_API void SetInputPropagationBehaviour(
ECohtmlInputPropagationBehaviour::Type Behaviour
)
COHTMLPLUGIN_API void SetMultiTouchEventsHandling(
ECohtmlMultiTouchEventsHandling MultiTouchHandling
)
FCohtmlGesturePolicy * GetGesturePolicy()
inline virtual void PreCohtmlMouseEvent(
SCohtmlWidget * ,
cohtml::View * ,
const cohtml::MouseEventData &
)
cohtml::IInputProxy * GetFocusedInput()
void SetFocusedInput(
cohtml::IInputProxy * Proxy
)
void CreateView(
const cohtml::ViewSettings & RequestedViewSettings,
const FString & Url
)
FORCEINLINE FReply HandleEventIfNeeded(
const FKeyEvent & KeyEvent
)
FORCEINLINE FReply HandleEventIfNeeded(
const FCharacterEvent & KeyEvent
)
inline FORCEINLINE bool IsOwnerValid()
void ProcessKeyEvent(
const FInputEvent & Event,
cohtml::KeyEventData::EventType Type
)
FReply OnMouseEvent(
const FGeometry & MyGeometry,
const FPointerEvent & MouseEvent,
cohtml::MouseEventData::EventType EventType
)
FReply OnTouchEvent(
const FGeometry & MyGeometry,
const FPointerEvent & TouchEvent,
cohtml::TouchEventData::EventType EventType
)
void OnViewportResized(
FViewport * ResizedViewport,
uint32
)
void CacheDPIScales()
void CacheViewportDPIScale()
void CacheWidgetWindowDPIScale()
void ForcePaintView(
float InDeltaTime
)

variable GamepadBehaviourOnFocusLostDelegate

Section titled “variable GamepadBehaviourOnFocusLostDelegate”
FCohtmlGamepadBehaviourOnFocusLostDelegate GamepadBehaviourOnFocusLostDelegate;
FCohtmlCaretRect CaretRect;
EMouseCursor::Type CurrentMouseCursor;
TSharedPtr< class FCoherentSlateElement, ESPMode::ThreadSafe > SlateElement;
TUniquePtr< FCohtmlViewWrapper > ViewWrapper;
TUniquePtr< FCohtmlGesturePolicy, GesturePolicyDeleter > GesturePolicy;
TUniquePtr< class FCohtmlWidgetIME > IMEManager;
TWeakObjectPtr< UObject > Owner;
FIntPoint ViewportDPIScaledSize;
FIntPoint WidgetWindowDPIScaledSize;
TEnumAsByte< enum TextureFilter > Filter;
float ViewportDPIScale;
float WidgetWindowDPIScale;
ECohtmlGamepadBehaviourOnFocusLost GamepadBehaviourOnFocusLost;
bool bReceiveInput;
bool bNeedsTextureUpdate;
bool bViewCreationInProgress;
bool bNeedToAdvanceViewNextFrame;
cohtml::MouseEventData LastMouseDownData;
cohtml::TouchEventData LastTouchDownData;
bool bUnpairedMouseDown;
bool bUnpairedTouchDown;
bool bUseSurfacePartitioning;
FDelegateHandle ViewportResizedHandle;
TEnumAsByte< ECohtmlInputPropagationBehaviour::Type > InputPropagationBehaviour;
ECohtmlMultiTouchEventsHandling MultiTouchEventsHandling;
TArray< cohtml::TouchEventData > TouchEvents;
FDelegateHandle OnSlateAppPostTickHandle;
friend class UCohtmlWidget;
friend class FCohtmlWidgetIME;