stbSurface

stbSurface

Tutorials:

stbSurface instance.

Not accessible in global scope.
Can't be manually created but can be received from other STB global objects.

Members

(static, readonly) id :number

Browser instance unique identifier.

Type:
  • number

(static, readonly) type :number

Type of the linked object in the field owner.

Value Description
1 stbBrowser
2 stbPlayer
Type:
  • number

(static, readonly) owner :stbBrowser|stbPlayer

An object linked with this surface.

Type:

(static) opacity :number

Default Value:
  • 1

Surface opacity level [0 .. 1].

Type:
  • number
Example
// normal browser
stbBrowser.surface.opacity = 1;

// almost transparent browser
stbBrowser.surface.opacity = 0.1;

Methods

(static) moveUp() → {boolean}

Move this surface one level up in the list of all surfaces.

Returns:

operation status

Type
boolean

(static) moveDown() → {boolean}

Move this surface one level down in the list of all surfaces.

Returns:

operation status

Type
boolean

(static) moveTop() → {boolean}

Move this surface to the top of the list of all surfaces.

Returns:

operation status

Type
boolean

(static) moveBottom() → {boolean}

Move this surface to the bottom of the list of all surfaces.

Returns:

operation status

Type
boolean