Search Results for

    Show / Hide Table of Contents

    Class WebElementsHelper

    Helpers to manipulate Web elements.

    Inheritance
    object
    WebElementsHelper
    Namespace: Evergine.Web
    Assembly: Evergine.Web.dll
    Syntax
    public static class WebElementsHelper

    Methods

    SummaryToButton(string)

    Gets button object from summary.

    Declaration
    public static MouseButtons SummaryToButton(string buttonSummary)
    Parameters
    Type Name Description
    string buttonSummary

    string summary from javascript.

    Returns
    Type Description
    MouseButtons

    The MouseButtons object.

    SummaryToKeyCode(string)

    Gets key objects from summary.

    Declaration
    public static (Keys keys, string rawKey) SummaryToKeyCode(string keySummary)
    Parameters
    Type Name Description
    string keySummary

    string summary from javascript.

    Returns
    Type Description
    (Keys keys, string rawKey)

    The Keys object and the raw key string.

    SummaryToPoint(string, IDpiAwarenessDispatcher, Point)

    Translate input events positions (mouse and touch) to positions relative to the element.

    Declaration
    public static Point SummaryToPoint(string pointSummary, IDpiAwarenessDispatcher dpiAwareness, Point offset)
    Parameters
    Type Name Description
    string pointSummary

    Custom output from javascript.

    IDpiAwarenessDispatcher dpiAwareness

    The IDpiAwarenessDispatcher instance to handle logical to device transform.

    Point offset

    The element offset in pixels.

    Returns
    Type Description
    Point

    The position in pixels of the event relative to the element.

    SummaryToTouchHandler(string, IDpiAwarenessDispatcher, Point, Action<long, Point>)

    Gets touch objects from summary.

    Declaration
    public static void SummaryToTouchHandler(string touchSummary, IDpiAwarenessDispatcher dpiAwareness, Point offset, Action<long, Point> handlePointer)
    Parameters
    Type Name Description
    string touchSummary

    string summary from javascript.

    IDpiAwarenessDispatcher dpiAwareness

    The IDpiAwarenessDispatcher instance to handle logical to device transform.

    Point offset

    The element offset in pixels.

    Action<long, Point> handlePointer

    pointer handler to be updated.

    SummaryToWheel(string)

    Gets wheel data from summary.

    Declaration
    public static (float deltaX, float deltaY) SummaryToWheel(string wheelSummary)
    Parameters
    Type Name Description
    string wheelSummary

    string summary from javascript.

    Returns
    Type Description
    (float deltaX, float deltaY)

    The deltas.

    TryGetAsPixels(string)

    Gets the given pixel value as double ('50px' to 50). If the value can not be converted, returns 0.

    Declaration
    public static double TryGetAsPixels(string value)
    Parameters
    Type Name Description
    string value

    The value.

    Returns
    Type Description
    double

    The double value if can be converted; otherwise, returns 0.

    In this article
    Back to top
    Generated by DocFX