Gamalto

Fork me on GitHub

Object BitmapLibrary Overview

Gamalto. BitmapLibrary

new Gamalto.BitmapLibrary()

Creates a bitmap resource manager.

Extends

Members

tag :object

inherited

Utility property to exchange data between objects.

Inherited From

Methods

clone() object

inherited abstract

Clones the object. It will be shallow copy unless otherwise specfied.

Inherited From
Returns
  • New instance of the object. Defaults to null.

getItem(name) object

inherited

Gets a resource from the library.

Parameters
Name Type Description
name string

Name of the resource.

Inherited From
Returns
  • Requested item if it exists.

hasItem(name) boolean

inherited

Tests whether a resource is available.

Parameters
Name Type Description
name string

Name of the resource.

Inherited From
Returns
  • True is the resource exists and has been properly loaded.

load() Promise

inherited

Tries to load all the resources pushed into the library.

Inherited From
Returns
  • Promise to handle the loading states.

loadItem(name, src, typeopt) Promise

Tries to load a new resource in the library.

Parameters
Name Type Attributes Description
name string

Name of the resource.

src string

Location of the item to load.

type Gamalto.Bitmap <optional>

Type of the bitmap object to be instanciated.

Returns
  • A promise to handle loading states.

pushItem(name, src)

inherited

Pushes a new resource into the list.

Parameters
Name Type Description
name string

Name of the resource.

src string

Location of the item to load.

Inherited From

toString() string

inherited abstract

Converts the object into a string.

Inherited From
Returns
  • string

unloadItem(name)

inherited

Releases the resource.

Parameters
Name Type Description
name string

Name of the resource.

Inherited From
Documentation generated by JSDoc 3.3.2 on Sun Sep 13 2015 20:13:31 GMT+0200 (CEST)