SCohtmlWidget
Inherits from SLeafWidget
Protected Classes #
Public Functions #
| Name |
---|
| SLATE_BEGIN_ARGS(SCohtmlWidget ) |
COHTMLPLUGIN_API | SCohtmlWidget() |
virtual COHTMLPLUGIN_API | ~SCohtmlWidget() |
COHTMLPLUGIN_API void | Construct(const FArguments & InArgs) |
COHTMLPLUGIN_API void | Construct(const FArguments & InArgs, const FString & Url, TSharedPtr< cohtml::IViewListener > Listener) |
COHTMLPLUGIN_API void | Construct(const FArguments & InArgs, const cohtml::ViewSettings & Info, const FString & Url, TSharedPtr< cohtml::IViewListener > Listener) |
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 | OnTouchMoved(const FGeometry & MyGeometry, const FPointerEvent & TouchEvent) override |
virtual COHTMLPLUGIN_API FReply | OnTouchStarted(const FGeometry & MyGeometry, const FPointerEvent & TouchEvent) override |
virtual COHTMLPLUGIN_API FReply | OnTouchEnded(const FGeometry & MyGeometry, const FPointerEvent & TouchEvent) override |
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 | CreateView(const FString & Url, TSharedPtr< cohtml::IViewListener > Listener, TSharedPtr< cohtml::ITextInputHandler > TextInputHandler, cohtml::IAsyncResourceHandler * Handler) |
COHTMLPLUGIN_API void | CreateView(const cohtml::ViewSettings & Info, const FString & Url, TSharedPtr< cohtml::IViewListener > Listener, TSharedPtr< cohtml::ITextInputHandler > TextInputHandler, FCohtmlUEViewSettings & ViewSettingsUE) |
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 |
COHTMLPLUGIN_API bool | GetNeedToAdvanceView() const |
COHTMLPLUGIN_API void | SetNeedToAdvanceView(bool InNeedToAdvanceView) |
FCohtmlViewWrapper * | GetViewWrapper() const |
TWeakObjectPtr< UObject > | GetOwningWidget() |
bool | HasRequestedView() const |
enum TextureFilter | GetFilter() const |
void | SetFilter(enum TextureFilter InFilter) |
COHTMLPLUGIN_API void | SetReceiveInput(bool bInReceiveInput) |
COHTMLPLUGIN_API void | SetReceiveInputWhenTransparent(bool bInReceiveInputWhenTransparent) |
COHTMLPLUGIN_API void | SetInputPropagationBehaviour(ECohtmlInputPropagationBehaviour::Type Behaviour) |
FCohtmlGesturePolicy * | GetGesturePolicy() |
virtual void | PreCohtmlMouseEvent(SCohtmlWidget * , cohtml::View * , const cohtml::MouseEventData & ) |
Protected Functions #
Public Attributes #
Protected Attributes #
Friends #
Public Functions Documentation #
function SLATE_BEGIN_ARGS #
inline SLATE_BEGIN_ARGS(
SCohtmlWidget
)
COHTMLPLUGIN_API 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
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
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
inline TWeakObjectPtr< UObject > GetOwningWidget()
function HasRequestedView #
bool HasRequestedView() const
function GetFilter #
enum TextureFilter GetFilter() const
function SetFilter #
void SetFilter(
enum TextureFilter InFilter
)
COHTMLPLUGIN_API void SetReceiveInput(
bool bInReceiveInput
)
COHTMLPLUGIN_API void SetReceiveInputWhenTransparent(
bool bInReceiveInputWhenTransparent
)
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;
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;
TEnumAsByte< ECohtmlInputPropagationBehaviour::Type > InputPropagationBehaviour;
Friends #
friend class UCohtmlWidget;
friend class FCohtmlWidgetIME;