Class WebTouchDispatcher
Implements
Inherited Members
Namespace: Evergine.Web
Assembly: Evergine.Web.dll
Syntax
public class WebTouchDispatcher : PointerDispatcher, IDpiAwarenessDispatcher
Constructors
WebTouchDispatcher(JSObject)
Initializes a new instance of the WebTouchDispatcher class.
Declaration
public WebTouchDispatcher(JSObject element)
Parameters
| Type | Name | Description |
|---|---|---|
| JSObject | element | A DOM element. |
Properties
DevicePixelRatio
Gets or sets the ratio of the resolution in physical pixels to the resolution in CSS pixels for the current display device. This value could also be interpreted as the ratio of pixel sizes: the size of one CSS pixel to the size of one physical pixel.
Declaration
public double DevicePixelRatio { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
ElementOffset
Gets or sets the element offset (left and top) in pixels.
Declaration
public Point ElementOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| Point |
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()