WebSurfaceclass
Enables rendering and interacting with a webpage
Methods6
Showing 6 methods
public virtual sealed void Dispose()
void—public void TellChar(uint unicodeKey, Sandbox.KeyboardModifiers modifiers)
Tell the browser a unicode key has been pressed
| Parameter | Type | Description |
|---|---|---|
| unicodeKey | uint | — |
| modifiers | KeyboardModifiers | — |
void—public void TellKey(uint virtualKeyCode, Sandbox.KeyboardModifiers modifiers, bool state)
Tell the browser a key has been pressed or released
| Parameter | Type | Description |
|---|---|---|
| virtualKeyCode | uint | — |
| modifiers | KeyboardModifiers | — |
| state | bool | — |
void—public void TellMouseButton(Sandbox.MouseButtons button, bool state)
Tell the browser a mouse button has been pressed
| Parameter | Type | Description |
|---|---|---|
| button | MouseButtons | — |
| state | bool | — |
void—public void TellMouseMove(Vector2 position)
Tell the browser the mouse has moved
| Parameter | Type | Description |
|---|---|---|
| position | Vector2 | — |
void—public void TellMouseWheel(int delta)
Tell the browser the mouse wheel has moved
| Parameter | Type | Description |
|---|---|---|
| delta | int | — |
void—No results match this filter.
Properties9
Showing 9 properties
public string Sandbox.WebSurface.Cursor { get; set; }
string—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
bool—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()".
bool—public bool Sandbox.WebSurface.IsLimited { get; set; }
bool—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; }
string—public float Sandbox.WebSurface.ScaleFactor { get; set; }
DPI Scaling factor
float—public Vector2 Sandbox.WebSurface.Size { get; set; }
The size of the browser
public string Sandbox.WebSurface.Url { get; set; }
The current Url
string—No results match this filter.