Namespace: stbWebWindow

stbWebWindow

Main object stbWebWindow methods declaration.

Methods

close

<static> close ()

Close window

Since:
  • 0.2.16

FocusMiddleWindow

<static> FocusMiddleWindow ()

Give the focus to the main web browser frame.

Since:
  • 0.2.16
Deprecated:
  • since 0.2.18

    FocusTopWindow

    <static> FocusTopWindow ()

    Give the focus to the top web browser frame.

    Since:
    • 0.2.16
    Deprecated:
    • since 0.2.18

      getCurrentUrl

      <static> getCurrentUrl () → {string}

      Get currently opened URL.

      Since:
      • 0.2.16
      Returns:
      Type Description

      string

      messageBroadcast

      <static> messageBroadcast ( message, data )

      Send message "message" with data "data" to all existed windows. Message can be handled using callback stbEvent.onBroadcastMessage(data)

      Parameters:
      Name Type Description

      message

      string

      data

      string

      Since:
      • 0.2.18

      messageSend

      <static> messageSend ( windowId, message, data )

      Send message "message" with data "data" to window ID "windowId". Message can be handled using callback stbEvent.onMessage(data) which should be defined in target window.

      Parameters:
      Name Type Description

      windowId

      number

      message

      string

      data

      string

      Since:
      • 0.2.18

      NavigateBack

      <static> NavigateBack ()

      Go back in the navigation history. Defined only for dedicated "Wild Web" window.

      Since:
      • 0.2.16

      NavigateForward

      <static> NavigateForward ()

      Go forward in the navigation history. Defined only for dedicated "Wild Web" window.

      Since:
      • 0.2.16

      ReloadDocument

      <static> ReloadDocument ()

      Reload current web ducument.

      Since:
      • 0.2.16

      SendVirtualKeypress

      <static> SendVirtualKeypress ( unicodeText, key )

      Generate virtual key event using Unicode text "unicodeText" and QT key code "key"

      Parameters:
      Name Type Description

      unicodeText

      String

      key

      Number

      Since:
      • 0.2.18

      SetFullScreenMode

      <static> SetFullScreenMode ( mode )

      Set full screen mode for dedicated "Wild Web" window.

      Parameters:
      Name Type Description

      mode

      boolean

      possible values:

      Value Description
      true maximized mode
      false normal mode
      Since:
      • 0.2.18

      SetZoomFactor

      <static> SetZoomFactor ( ratio )

      Set zoom ratio for embedded web browser.

      Parameters:
      Name Type Description

      ratio

      number

      zoom ratio, percent [10..1000]

      Since:
      • 0.2.16

      StopLoading

      <static> StopLoading ()

      Cancel loading web document.

      Since:
      • 0.2.16

      windowId

      <static> windowId () → {number}

      Get window ID.

      Returns:
      Type Description

      number

      id