SteamHTMLSurface
public struct SteamHTMLSurface: Sendable
Steamworks ISteamHTMLSurface
Access via htmlSurface
.
Topics
func addHeader(browserHandle: HHTMLBrowser, key: String, value: String)
func addHeader(browserHandle: HHTMLBrowser, key: String, value: String)
Steamworks ISteamHTMLSurface::AddHeader()
Declaration
public func addHeader(browserHandle: HHTMLBrowser, key: String, value: String)
func allowStartRequest(browserHandle: HHTMLBrowser, allowed: Bool)
func allowStartRequest(browserHandle: HHTMLBrowser, allowed: Bool)
Steamworks ISteamHTMLSurface::AllowStartRequest()
Declaration
public func allowStartRequest(browserHandle: HHTMLBrowser, allowed: Bool)
func copyToClipboard(browserHandle: HHTMLBrowser)
func copyToClipboard(browserHandle: HHTMLBrowser)
Steamworks ISteamHTMLSurface::CopyToClipboard()
Declaration
public func copyToClipboard(browserHandle: HHTMLBrowser)
func createBrowser(userAgent: String?, userCSS: String?, completion: (sending HTMLBrowserReady?) -> Void)
func createBrowser(userAgent: String?, userCSS: String?, completion: (sending HTMLBrowserReady?) -> Void)
Steamworks ISteamHTMLSurface::CreateBrowser()
, callback
Declaration
public func createBrowser(
userAgent: String?, userCSS: String?,
completion: @Sendable @escaping (sending HTMLBrowserReady?) -> Void)
func createBrowser(isolation: isolated (any Actor)?, userAgent: String?, userCSS: String?) async -> HTMLBrowserReady?
func createBrowser(isolation: isolated (any Actor)?, userAgent: String?, userCSS: String?) async -> HTMLBrowserReady?
Steamworks ISteamHTMLSurface::CreateBrowser()
, async
Declaration
public func createBrowser(
isolation: isolated (any Actor)? = #isolation, userAgent: String?,
userCSS: String?
) async -> HTMLBrowserReady?
func executeJavascript(browserHandle: HHTMLBrowser, script: String)
func executeJavascript(browserHandle: HHTMLBrowser, script: String)
Steamworks ISteamHTMLSurface::ExecuteJavascript()
Declaration
public func executeJavascript(browserHandle: HHTMLBrowser, script: String)
func fileLoadDialogResponse(browserHandle: HHTMLBrowser, selectedFiles: [String])
func fileLoadDialogResponse(browserHandle: HHTMLBrowser, selectedFiles: [String])
Steamworks ISteamHTMLSurface::FileLoadDialogResponse()
Declaration
public func fileLoadDialogResponse(
browserHandle: HHTMLBrowser, selectedFiles: [String])
func find(browserHandle: HHTMLBrowser, searchStr: String, currentlyInFind: Bool, reverse: Bool)
func find(browserHandle: HHTMLBrowser, searchStr: String, currentlyInFind: Bool, reverse: Bool)
Steamworks ISteamHTMLSurface::Find()
Declaration
public func find(
browserHandle: HHTMLBrowser, searchStr: String, currentlyInFind: Bool,
reverse: Bool)
func getLinkAtPosition(browserHandle: HHTMLBrowser, x: Int, y: Int)
func getLinkAtPosition(browserHandle: HHTMLBrowser, x: Int, y: Int)
Steamworks ISteamHTMLSurface::GetLinkAtPosition()
Declaration
public func getLinkAtPosition(browserHandle: HHTMLBrowser, x: Int, y: Int)
func goBack(browserHandle: HHTMLBrowser)
func goBack(browserHandle: HHTMLBrowser)
Steamworks ISteamHTMLSurface::GoBack()
Declaration
public func goBack(browserHandle: HHTMLBrowser)
func goForward(browserHandle: HHTMLBrowser)
func goForward(browserHandle: HHTMLBrowser)
Steamworks ISteamHTMLSurface::GoForward()
Declaration
public func goForward(browserHandle: HHTMLBrowser)
func initialize() -> Bool
func initialize() -> Bool
func jsDialogResponse(browserHandle: HHTMLBrowser, result: Bool)
func jsDialogResponse(browserHandle: HHTMLBrowser, result: Bool)
Steamworks ISteamHTMLSurface::JSDialogResponse()
Declaration
public func jsDialogResponse(browserHandle: HHTMLBrowser, result: Bool)
func keyChar(browserHandle: HHTMLBrowser, unicodeChar: Int, htmlKeyModifiers: HTMLKeyModifiers)
func keyChar(browserHandle: HHTMLBrowser, unicodeChar: Int, htmlKeyModifiers: HTMLKeyModifiers)
Steamworks ISteamHTMLSurface::KeyChar()
Declaration
public func keyChar(
browserHandle: HHTMLBrowser, unicodeChar: Int,
htmlKeyModifiers: HTMLKeyModifiers)
func keyDown(browserHandle: HHTMLBrowser, nativeKeyCode: Int, htmlKeyModifiers: HTMLKeyModifiers, isSystemKey: Bool)
func keyDown(browserHandle: HHTMLBrowser, nativeKeyCode: Int, htmlKeyModifiers: HTMLKeyModifiers, isSystemKey: Bool)
Steamworks ISteamHTMLSurface::KeyDown()
Declaration
public func keyDown(
browserHandle: HHTMLBrowser, nativeKeyCode: Int,
htmlKeyModifiers: HTMLKeyModifiers, isSystemKey: Bool = false)
func keyUp(browserHandle: HHTMLBrowser, nativeKeyCode: Int, htmlKeyModifiers: HTMLKeyModifiers)
func keyUp(browserHandle: HHTMLBrowser, nativeKeyCode: Int, htmlKeyModifiers: HTMLKeyModifiers)
Steamworks ISteamHTMLSurface::KeyUp()
Declaration
public func keyUp(
browserHandle: HHTMLBrowser, nativeKeyCode: Int,
htmlKeyModifiers: HTMLKeyModifiers)
func loadURL(browserHandle: HHTMLBrowser, url: String, postData: String?)
func loadURL(browserHandle: HHTMLBrowser, url: String, postData: String?)
Steamworks ISteamHTMLSurface::LoadURL()
Declaration
public func loadURL(browserHandle: HHTMLBrowser, url: String, postData: String?)
func mouseMove(browserHandle: HHTMLBrowser, x: Int, y: Int)
func mouseMove(browserHandle: HHTMLBrowser, x: Int, y: Int)
Steamworks ISteamHTMLSurface::MouseMove()
Declaration
public func mouseMove(browserHandle: HHTMLBrowser, x: Int, y: Int)
func mouseWheel(browserHandle: HHTMLBrowser, delta: Int)
func mouseWheel(browserHandle: HHTMLBrowser, delta: Int)
Steamworks ISteamHTMLSurface::MouseWheel()
Declaration
public func mouseWheel(browserHandle: HHTMLBrowser, delta: Int)
func openDeveloperTools(browserHandle: HHTMLBrowser)
func openDeveloperTools(browserHandle: HHTMLBrowser)
Steamworks ISteamHTMLSurface::OpenDeveloperTools()
Declaration
public func openDeveloperTools(browserHandle: HHTMLBrowser)
func pasteFromClipboard(browserHandle: HHTMLBrowser)
func pasteFromClipboard(browserHandle: HHTMLBrowser)
Steamworks ISteamHTMLSurface::PasteFromClipboard()
Declaration
public func pasteFromClipboard(browserHandle: HHTMLBrowser)
func reload(browserHandle: HHTMLBrowser)
func reload(browserHandle: HHTMLBrowser)
Steamworks ISteamHTMLSurface::Reload()
Declaration
public func reload(browserHandle: HHTMLBrowser)
func removeBrowser(browserHandle: HHTMLBrowser)
func removeBrowser(browserHandle: HHTMLBrowser)
Steamworks ISteamHTMLSurface::RemoveBrowser()
Declaration
public func removeBrowser(browserHandle: HHTMLBrowser)
func setBackgroundMode(browserHandle: HHTMLBrowser, backgroundMode: Bool)
func setBackgroundMode(browserHandle: HHTMLBrowser, backgroundMode: Bool)
Steamworks ISteamHTMLSurface::SetBackgroundMode()
Declaration
public func setBackgroundMode(browserHandle: HHTMLBrowser, backgroundMode: Bool)
func setDPIScalingFactor(browserHandle: HHTMLBrowser, dpiScaling: Float)
func setDPIScalingFactor(browserHandle: HHTMLBrowser, dpiScaling: Float)
Steamworks ISteamHTMLSurface::SetDPIScalingFactor()
Declaration
public func setDPIScalingFactor(browserHandle: HHTMLBrowser, dpiScaling: Float)
func setHorizontalScroll(browserHandle: HHTMLBrowser, absolutePixelScroll: Int)
func setHorizontalScroll(browserHandle: HHTMLBrowser, absolutePixelScroll: Int)
Steamworks ISteamHTMLSurface::SetHorizontalScroll()
Declaration
public func setHorizontalScroll(
browserHandle: HHTMLBrowser, absolutePixelScroll: Int)
func setKeyFocus(browserHandle: HHTMLBrowser, hasKeyFocus: Bool)
func setKeyFocus(browserHandle: HHTMLBrowser, hasKeyFocus: Bool)
Steamworks ISteamHTMLSurface::SetKeyFocus()
Declaration
public func setKeyFocus(browserHandle: HHTMLBrowser, hasKeyFocus: Bool)
func setPageScaleFactor(browserHandle: HHTMLBrowser, zoom: Float, pointX: Int, pointY: Int)
func setPageScaleFactor(browserHandle: HHTMLBrowser, zoom: Float, pointX: Int, pointY: Int)
Steamworks ISteamHTMLSurface::SetPageScaleFactor()
Declaration
public func setPageScaleFactor(
browserHandle: HHTMLBrowser, zoom: Float, pointX: Int, pointY: Int)
func setSize(browserHandle: HHTMLBrowser, width: Int, height: Int)
func setSize(browserHandle: HHTMLBrowser, width: Int, height: Int)
Steamworks ISteamHTMLSurface::SetSize()
Declaration
public func setSize(browserHandle: HHTMLBrowser, width: Int, height: Int)
func setVerticalScroll(browserHandle: HHTMLBrowser, absolutePixelScroll: Int)
func setVerticalScroll(browserHandle: HHTMLBrowser, absolutePixelScroll: Int)
Steamworks ISteamHTMLSurface::SetVerticalScroll()
Declaration
public func setVerticalScroll(
browserHandle: HHTMLBrowser, absolutePixelScroll: Int)
func shutdown() -> Bool
func shutdown() -> Bool
Steamworks ISteamHTMLSurface::Shutdown()
Declaration
@discardableResult
public func shutdown() -> Bool
func stopFind(browserHandle: HHTMLBrowser)
func stopFind(browserHandle: HHTMLBrowser)
Steamworks ISteamHTMLSurface::StopFind()
Declaration
public func stopFind(browserHandle: HHTMLBrowser)
func stopLoad(browserHandle: HHTMLBrowser)
func stopLoad(browserHandle: HHTMLBrowser)
Steamworks ISteamHTMLSurface::StopLoad()
Declaration
public func stopLoad(browserHandle: HHTMLBrowser)
func viewSource(browserHandle: HHTMLBrowser)
func viewSource(browserHandle: HHTMLBrowser)
Steamworks ISteamHTMLSurface::ViewSource()
Declaration
public func viewSource(browserHandle: HHTMLBrowser)