public sealed class Sandbox.WebSurface
Enables rendering and interacting with a webpage
Methods
Showing 6 methods
public virtual sealed void Dispose()
public void TellChar(uint unicodeKey, Sandbox.KeyboardModifiers modifiers)
Tell the browser a unicode key has been pressed
public void TellKey(uint virtualKeyCode, Sandbox.KeyboardModifiers modifiers, bool state)
Tell the browser a key has been pressed or released
public void TellMouseButton(Sandbox.MouseButtons button, bool state)
Tell the browser a mouse button has been pressed
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
No results match this filter.
Properties
Showing 9 properties
public string Sandbox.WebSurface.Cursor { get; set; }
public bool Sandbox.WebSurface.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 bool Sandbox.WebSurface.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 bool Sandbox.WebSurface.IsLimited { get; set; }
public Sandbox.WebSurface.TextureChangedDelegate Sandbox.WebSurface.OnTexture { get; set; }
Called when the texture has changed and should be updated
public string Sandbox.WebSurface.PageTitle { get; set; }
public float Sandbox.WebSurface.ScaleFactor { get; set; }
DPI Scaling factor
public Vector2 Sandbox.WebSurface.Size { get; set; }
The size of the browser
public string Sandbox.WebSurface.Url { get; set; }
The current Url
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.WebSurface |