コード例 #1
0
 /// <summary>
 /// <para> x and y are relative to the HTML bounds</para>
 /// </summary>
 public static void MouseMove(HHTMLBrowser unBrowserHandle, int x, int y)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamHTMLSurface_MouseMove(CSteamAPIContext.GetSteamHTMLSurface(), unBrowserHandle, x, y);
 }
コード例 #2
0
 /// <summary>
 /// <para> Tells the surface the size in pixels to display the surface</para>
 /// </summary>
 public static void SetSize(HHTMLBrowser unBrowserHandle, uint unWidth, uint unHeight)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamHTMLSurface_SetSize(CSteamAPIContext.GetSteamHTMLSurface(), unBrowserHandle, unWidth, unHeight);
 }
コード例 #3
0
 public static void MouseDoubleClick(HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamHTMLSurface_MouseDoubleClick(CSteamAPIContext.GetSteamHTMLSurface(), unBrowserHandle, eMouseButton);
 }
コード例 #4
0
 public static void MouseDown(HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamHTMLSurface_MouseDown(unBrowserHandle, eMouseButton);
 }
コード例 #5
0
 /// <summary>
 /// <para> You MUST call this in response to a HTML_FileOpenDialog_t callback</para>
 /// </summary>
 public static void FileLoadDialogResponse(HHTMLBrowser unBrowserHandle, IntPtr pchSelectedFiles)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamHTMLSurface_FileLoadDialogResponse(CSteamAPIContext.GetSteamHTMLSurface(), unBrowserHandle, pchSelectedFiles);
 }
コード例 #6
0
 /// <summary>
 /// <para> cUnicodeChar is the unicode character point for this keypress (and potentially multiple chars per press)</para>
 /// </summary>
 public static void KeyChar(HHTMLBrowser unBrowserHandle, uint cUnicodeChar, EHTMLKeyModifiers eHTMLKeyModifiers)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamHTMLSurface_KeyChar(CSteamAPIContext.GetSteamHTMLSurface(), unBrowserHandle, cUnicodeChar, eHTMLKeyModifiers);
 }
コード例 #7
0
 /// <summary>
 /// <para> tell the html control if it has key focus currently, controls showing the I-beam cursor in text controls amongst other things</para>
 /// </summary>
 public static void SetKeyFocus(HHTMLBrowser unBrowserHandle, bool bHasKeyFocus)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamHTMLSurface_SetKeyFocus(CSteamAPIContext.GetSteamHTMLSurface(), unBrowserHandle, bHasKeyFocus);
 }
コード例 #8
0
 /// <summary>
 /// <para> Zoom the current page by flZoom ( from 0.0 to 2.0, so to zoom to 120% use 1.2 ), zooming around point X,Y in the page (use 0,0 if you don't care)</para>
 /// </summary>
 public static void SetPageScaleFactor(HHTMLBrowser unBrowserHandle, float flZoom, int nPointX, int nPointY)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamHTMLSurface_SetPageScaleFactor(CSteamAPIContext.GetSteamHTMLSurface(), unBrowserHandle, flZoom, nPointX, nPointY);
 }
コード例 #9
0
 /// <summary>
 /// <para> Enable/disable low-resource background mode, where javascript and repaint timers are throttled, resources are</para>
 /// <para> more aggressively purged from memory, and audio/video elements are paused. When background mode is enabled,</para>
 /// <para> all HTML5 video and audio objects will execute ".pause()" and gain the property "._steam_background_paused = 1".</para>
 /// <para> When background mode is disabled, any video or audio objects with that property will resume with ".play()".</para>
 /// </summary>
 public static void SetBackgroundMode(HHTMLBrowser unBrowserHandle, bool bBackgroundMode)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamHTMLSurface_SetBackgroundMode(CSteamAPIContext.GetSteamHTMLSurface(), unBrowserHandle, bBackgroundMode);
 }
コード例 #10
0
 /// <summary>
 /// <para> paste from the local clipboard to the current html page</para>
 /// </summary>
 public static void PasteFromClipboard(HHTMLBrowser unBrowserHandle)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamHTMLSurface_PasteFromClipboard(CSteamAPIContext.GetSteamHTMLSurface(), unBrowserHandle);
 }
コード例 #11
0
 /// <summary>
 /// <para> return details about the link at position x,y on the current page</para>
 /// </summary>
 public static void GetLinkAtPosition(HHTMLBrowser unBrowserHandle, int x, int y)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamHTMLSurface_GetLinkAtPosition(CSteamAPIContext.GetSteamHTMLSurface(), unBrowserHandle, x, y);
 }
コード例 #12
0
 /// <summary>
 /// <para> navigate back in the page history</para>
 /// </summary>
 public static void GoBack(HHTMLBrowser unBrowserHandle)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamHTMLSurface_GoBack(unBrowserHandle);
 }
コード例 #13
0
 /// <summary>
 /// <para> copy the currently selected text on the html page to the local clipboard</para>
 /// </summary>
 public static void CopyToClipboard(HHTMLBrowser unBrowserHandle)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamHTMLSurface_CopyToClipboard(unBrowserHandle);
 }
コード例 #14
0
 /// <summary>
 /// <para> programmatically scroll this many pixels on the page</para>
 /// </summary>
 public static void SetHorizontalScroll(HHTMLBrowser unBrowserHandle, uint nAbsolutePixelScroll)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamHTMLSurface_SetHorizontalScroll(unBrowserHandle, nAbsolutePixelScroll);
 }
コード例 #15
0
 /// <summary>
 /// <para> nDelta is pixels of scroll</para>
 /// </summary>
 public static void MouseWheel(HHTMLBrowser unBrowserHandle, int nDelta)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamHTMLSurface_MouseWheel(CSteamAPIContext.GetSteamHTMLSurface(), unBrowserHandle, nDelta);
 }
コード例 #16
0
 /// <summary>
 /// <para> Scale the output display space by this factor, this is useful when displaying content on high dpi devices.</para>
 /// <para> Specifies the ratio between physical and logical pixels.</para>
 /// </summary>
 public static void SetDPIScalingFactor(HHTMLBrowser unBrowserHandle, float flDPIScaling)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamHTMLSurface_SetDPIScalingFactor(CSteamAPIContext.GetSteamHTMLSurface(), unBrowserHandle, flDPIScaling);
 }
コード例 #17
0
 /// <summary>
 /// <para> keyboard interactions, native keycode is the virtual key code value from your OS</para>
 /// </summary>
 public static void KeyDown(HHTMLBrowser unBrowserHandle, uint nNativeKeyCode, EHTMLKeyModifiers eHTMLKeyModifiers)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamHTMLSurface_KeyDown(CSteamAPIContext.GetSteamHTMLSurface(), unBrowserHandle, nNativeKeyCode, eHTMLKeyModifiers);
 }
コード例 #18
0
 /// <summary>
 /// <para> CALLBACKS</para>
 /// <para>  These set of functions are used as responses to callback requests</para>
 /// <para> You MUST call this in response to a HTML_StartRequest_t callback</para>
 /// <para>  Set bAllowed to true to allow this navigation, false to cancel it and stay</para>
 /// <para> on the current page. You can use this feature to limit the valid pages</para>
 /// <para> allowed in your HTML surface.</para>
 /// </summary>
 public static void AllowStartRequest(HHTMLBrowser unBrowserHandle, bool bAllowed)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamHTMLSurface_AllowStartRequest(CSteamAPIContext.GetSteamHTMLSurface(), unBrowserHandle, bAllowed);
 }
コード例 #19
0
 public static void SetVerticalScroll(HHTMLBrowser unBrowserHandle, uint nAbsolutePixelScroll)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamHTMLSurface_SetVerticalScroll(CSteamAPIContext.GetSteamHTMLSurface(), unBrowserHandle, nAbsolutePixelScroll);
 }
コード例 #20
0
 /// <summary>
 /// <para> You MUST call this in response to a HTML_JSAlert_t or HTML_JSConfirm_t callback</para>
 /// <para>  Set bResult to true for the OK option of a confirm, use false otherwise</para>
 /// </summary>
 public static void JSDialogResponse(HHTMLBrowser unBrowserHandle, bool bResult)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamHTMLSurface_JSDialogResponse(CSteamAPIContext.GetSteamHTMLSurface(), unBrowserHandle, bResult);
 }
コード例 #21
0
 /// <summary>
 /// <para> open the current pages html code in the local editor of choice, used for debugging</para>
 /// </summary>
 public static void ViewSource(HHTMLBrowser unBrowserHandle)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamHTMLSurface_ViewSource(CSteamAPIContext.GetSteamHTMLSurface(), unBrowserHandle);
 }
コード例 #22
0
 /// <summary>
 /// <para> Open HTML/JS developer tools</para>
 /// </summary>
 public static void OpenDeveloperTools(HHTMLBrowser unBrowserHandle)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamHTMLSurface_OpenDeveloperTools(CSteamAPIContext.GetSteamHTMLSurface(), unBrowserHandle);
 }