Class: MG::Web

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

Instance Attribute Summary

Attributes inherited from Node

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

Constructors collapse

Loading Data collapse

JavaScript Interface collapse

Methods inherited from Widget

#enabled=, #enabled?, #highlighted=, #highlighted?, #on_touch, #touch_enabled=, #touch_enabled?

Methods inherited from Node

#add, #children, #clear, #delete, #delete_from_parent, #intersects?, #number_of_running_actions, #parent, #run_action, #schedule, #schedule_once, #stop_action, #stop_all_actions, #unschedule, #visible=, #visible?

Constructor Details

#initializeWeb

Creates a new Web widget.



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

def initialize; end

Instance Method Details

#evaluate(expr) ⇒ self

Evaluates the given JavaScript expression.

Parameters:

  • expr (String)

    a JavaScript expression to evaluate.

Returns:

  • (self)

    the receiver.



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

def evaluate(expr); end

#load_file(path) ⇒ self

Loads a given file into the widget.

Parameters:

  • path (String)

    the file to load.

Returns:

  • (self)

    the receiver.



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

def load_file(path); end

#load_html(str, baseurl) ⇒ self

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:

  • (self)

    the receiver.



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

def load_html(str, baseurl); end

#load_url(url) ⇒ self

Loads a given URL into the widget.

Parameters:

  • url (String)

    the URL to load.

Returns:

  • (self)

    the receiver.



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

def load_url(url); end

#reloadself

Reloads the current context.

Returns:

  • (self)

    the receiver.



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

def reload; end

#stopself

Stops the current loading.

Returns:

  • (self)

    the receiver.



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

def stop; end