Class: MG::Web

Inherits:
Widget show all
Defined in:
motion-game

Instance Attribute Summary

Attributes inherited from Widget

#enabled?, #highlighted?

Attributes inherited from Node

#alpha, #anchor_point, #color, #name, #position, #rotation, #scale, #size, #visible?, #z_index

Constructors (collapse)

Loading Data (collapse)

JavaScript Interface (collapse)

Methods inherited from Widget

#on_touch

Methods inherited from Node

#add, #children, #clear, #delete, #delete_from_parent, #intersects?, #parent

Constructor Details

- (Web) initialize

Creates a new Web widget.



888
# File 'motion-game', line 888

def initialize; end

Instance Method Details

- (Web) evaluate(expr)

Evaluates the given JavaScript expression.

Parameters:

  • expr (String)

    a JavaScript expression to evaluate.

Returns:

  • (Web)

    the receiver.



923
# File 'motion-game', line 923

def evaluate(expr); end

- (Web) load_file(path)

Loads a given file into the widget.

Parameters:

  • path (String)

    the file to load.

Returns:

  • (Web)

    the receiver.



907
# File 'motion-game', line 907

def load_file(path); end

- (Web) load_html(str, baseurl)

Loads a given HTML data into the widget.

Parameters:

  • str (String)

    the HTML string to load.

  • baseurl (String)

    the base URL for the content.

Returns:

  • (Web)

    the receiver.



897
# File 'motion-game', line 897

def load_html(str, baseurl); end

- (Web) load_url(url)

Loads a given URL into the widget.

Parameters:

  • url (String)

    the URL to load.

Returns:

  • (Web)

    the receiver.



902
# File 'motion-game', line 902

def load_url(url); end

- (Web) reload

Reloads the current context.

Returns:

  • (Web)

    the receiver.



915
# File 'motion-game', line 915

def reload; end

- (Web) stop

Stops the current loading.

Returns:

  • (Web)

    the receiver.



911
# File 'motion-game', line 911

def stop; end