Class WebSurface
Web surface.
Inherited Members
Namespace: Evergine.Web
Assembly: Evergine.Web.dll
Syntax
public class WebSurface : Surface
Constructors
WebSurface(object)
Initializes a new instance of the WebSurface class.
Declaration
public WebSurface(object canvas)
Parameters
Type | Name | Description |
---|---|---|
object | canvas | Canvas. |
Properties
KeyboardDispatcher
Gets the keyboard event dispatcher associated with this surface.
Declaration
public override KeyboardDispatcher KeyboardDispatcher { get; }
Property Value
Type | Description |
---|---|
KeyboardDispatcher |
Overrides
MouseDispatcher
Gets the mouse event dispatcher associated with this surface.
Declaration
public override MouseDispatcher MouseDispatcher { get; }
Property Value
Type | Description |
---|---|
MouseDispatcher |
Overrides
TouchDispatcher
Gets the touch events dispatcher associated with this surface.
Declaration
public override PointerDispatcher TouchDispatcher { get; }
Property Value
Type | Description |
---|---|
PointerDispatcher |
Overrides
Methods
RefreshSize()
Refreshes the surface size from canvas' one.
Declaration
public void RefreshSize()
UpdateSize(uint, uint)
Updates the surface size.
Declaration
public void UpdateSize(uint width, uint height)
Parameters
Type | Name | Description |
---|---|---|
uint | width | The new width. |
uint | height | The new height. |