Class: MG::Web
Instance Attribute Summary
Attributes inherited from Widget
Attributes inherited from Node
#alpha, #anchor_point, #color, #name, #position, #rotation, #scale, #size, #visible?, #z_index
Constructors (collapse)
-
- (Web) initialize
constructor
Creates a new Web widget.
Loading Data (collapse)
-
- (Web) load_file(path)
Loads a given file into the widget.
-
- (Web) load_html(str, baseurl)
Loads a given HTML data into the widget.
-
- (Web) load_url(url)
Loads a given URL into the widget.
-
- (Web) reload
Reloads the current context.
-
- (Web) stop
Stops the current loading.
JavaScript Interface (collapse)
-
- (Web) evaluate(expr)
Evaluates the given JavaScript expression.
Methods inherited from Widget
Methods inherited from Node
#add, #children, #clear, #delete, #delete_from_parent, #intersects?, #parent
Constructor Details
Instance Method Details
- (Web) evaluate(expr)
Evaluates the given JavaScript expression.
923 |
# File 'motion-game', line 923 def evaluate(expr); end |
- (Web) load_file(path)
Loads a given file into the widget.
907 |
# File 'motion-game', line 907 def load_file(path); end |
- (Web) load_html(str, baseurl)
Loads a given HTML data into the widget.
897 |
# File 'motion-game', line 897 def load_html(str, baseurl); end |
- (Web) load_url(url)
Loads a given URL into the widget.
902 |
# File 'motion-game', line 902 def load_url(url); end |