Class: MG::Web
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
-
#initialize ⇒ Web
constructor
Creates a new Web widget.
Loading Data collapse
-
#load_file(path) ⇒ Web
Loads a given file into the widget.
-
#load_html(str, baseurl) ⇒ Web
Loads a given HTML data into the widget.
-
#load_url(url) ⇒ Web
Loads a given URL into the widget.
-
#reload ⇒ Web
Reloads the current context.
-
#stop ⇒ Web
Stops the current loading.
JavaScript Interface collapse
-
#evaluate(expr) ⇒ Web
Evaluates the given JavaScript expression.
Methods inherited from Widget
Methods inherited from Node
#add, #children, #clear, #delete, #delete_from_parent, #intersects?, #parent, #run_action, #stop_action, #stop_all_actions
Constructor Details
#initialize ⇒ Web
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.
1404 |
# File 'doc/API_reference.rb', line 1404 def evaluate(expr); end |
#load_file(path) ⇒ Web
Loads a given file into the widget.
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.
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.
1383 |
# File 'doc/API_reference.rb', line 1383 def load_url(url); end |
#reload ⇒ Web
Reloads the current context.
1396 |
# File 'doc/API_reference.rb', line 1396 def reload; end |