Class: MG::Web

Inherits:
Widget show all
Defined in:
doc/API_reference.rb

Instance Attribute Summary

Attributes inherited from Widget

#enabled?, #highlighted?, #touch_enabled?

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, #run_action, #stop_action, #stop_all_actions

Constructor Details

#initializeWeb

Creates a new Web widget.



1369
# File 'doc/API_reference.rb', line 1369

def initialize; end

Instance Method Details

#evaluate(expr) ⇒ Web

Evaluates the given JavaScript expression.

Parameters:

  • expr (String)

    a JavaScript expression to evaluate.

Returns:

  • (Web)

    the receiver.



1404
# File 'doc/API_reference.rb', line 1404

def evaluate(expr); end

#load_file(path) ⇒ Web

Loads a given file into the widget.

Parameters:

  • path (String)

    the file to load.

Returns:

  • (Web)

    the receiver.



1388
# File 'doc/API_reference.rb', line 1388

def load_file(path); end

#load_html(str, baseurl) ⇒ Web

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.



1378
# File 'doc/API_reference.rb', line 1378

def load_html(str, baseurl); end

#load_url(url) ⇒ Web

Loads a given URL into the widget.

Parameters:

  • url (String)

    the URL to load.

Returns:

  • (Web)

    the receiver.



1383
# File 'doc/API_reference.rb', line 1383

def load_url(url); end

#reloadWeb

Reloads the current context.

Returns:

  • (Web)

    the receiver.



1396
# File 'doc/API_reference.rb', line 1396

def reload; end

#stopWeb

Stops the current loading.

Returns:

  • (Web)

    the receiver.



1392
# File 'doc/API_reference.rb', line 1392

def stop; end