HU/resizeBrowser
Jump to navigation
Jump to search
Lehetővé teszi a CEF böngészők méretezését futás közben.
Syntax
bool resizeBrowser ( browser webBrowser, float width, float height )
Required Arguments
- webBrowser: The browser you want to resize.
- width: The new width of the browser.
- height: The new height of the browser.
Returns
Returns true if the browser is resized successfully, false if there's something wrong.
Example
Example for resize browser by command.
screenWidth, screenHeight = guiGetScreenSize() initBrowser = guiCreateBrowser(0, 0, screenWidth, screenHeight, true, true, false) addCommandHandler("resize", function ( cmd, width, height ) local browser = guiGetBrowser(initBrowser) local width, height = tonumber(width), tonumber(height) resizeBrowser( browser, width, height ) end )
See Also
- HU/canBrowserNavigateBack
- HU/canBrowserNavigateForward
- HU/createBrowser
- HU/executeBrowserJavascript
- HU/focusBrowser
- HU/getBrowserProperty
- HU/getBrowserSettings
- HU/getBrowserSource
- HU/getBrowserTitle
- HU/getBrowserURL
- HU/injectBrowserMouseDown
- HU/injectBrowserMouseMove
- HU/injectBrowserMouseUp
- HU/injectBrowserMouseWheel
- HU/isBrowserDomainBlocked
- HU/isBrowserFocused
- HU/isBrowserLoading
- HU/loadBrowserURL
- HU/navigateBrowserBack
- HU/navigateBrowserForward
- HU/reloadBrowserPage
- HU/requestBrowserDomains
- HU/resizeBrowser
- HU/setBrowserAjaxHandler
- HU/setBrowserProperty
- HU/setBrowserRenderingPaused
- HU/setBrowserVolume
- HU/toggleBrowserDevTools
GUI Függvények
Fordította
- WorthlessCynomys