class WebSurface

in global :: Sandbox

Enables rendering and interacting with a webpage


public WebSurface.TextureChangedDelegate OnTexture { get; set; }

Called when the texture has changed and should be updated

public string Url { get; set; }

The current Url

public Vector2 Size { get; set; }

The size of the browser

public void TellMouseMove( Vector2 position )

Tell the browser the mouse has moved

public void TellMouseWheel( int delta )

Tell the browser the mouse wheel has moved

public void TellMouseButton( MouseButtons button, bool state )

Tell the browser a mouse button has been pressed

public void TellChar( uint unicodeKey, KeyboardModifiers modifiers )

Tell the browser a unicode key has been pressed

public void TellKey( uint virtualKeyCode, KeyboardModifiers modifiers, bool state )

Tell the browser a key has been pressed or released

public bool HasKeyFocus { get; set; }

Tell the html control if it has key focus currently, controls showing the I-beam cursor in text controls amongst other things

public float ScaleFactor { get; set; }

DPI Scaling factor

public bool InBackgroundMode { get; set; }

Enable/disable low-resource background mode, where javascript and repaint timers are throttled, resources are more aggressively purged from memory, and audio/video elements are paused. When background mode is enabled, all HTML5 video and audio objects will execute ".pause()" and gain the property "._steam_background_paused = 1". When background mode is disabled, any video or audio objects with that property will resume with ".play()".

public string ToString( )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public string Cursor { get; }

😔 No documentation found.

public string PageTitle { get; }

😔 No documentation found.

public void Dispose( )

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public bool IsLimited { get; }

😔 No documentation found.