Class: MG::Size
- Inherits:
-
Object
- Object
- MG::Size
- Defined in:
- doc/API_reference.rb
Overview
node.size = MG::Size.new(200, 400)
Instance Attribute Summary collapse
-
#height ⇒ Float
The size height.
-
#width ⇒ Float
The size width.
Constructors collapse
-
#initialize(*args) ⇒ Size
constructor
A new instance of Size.
Helpers collapse
-
#*(delta) ⇒ Size
Multiplies the dimensions of the receiver with the given number.
-
#+(size) ⇒ Size
Adds the dimensions of the receiver with the dimensions of the given size object.
-
#-(size) ⇒ Size
Substracts the dimensions of the receiver with the dimensions of the given size object.
-
#/(delta) ⇒ Size
Divides the dimensions of the receiver with the given number.
Constructor Details
Instance Attribute Details
#height ⇒ Float
Returns the size height.
1202 1203 1204 |
# File 'doc/API_reference.rb', line 1202 def height @height end |
#width ⇒ Float
Returns the size width.
1199 1200 1201 |
# File 'doc/API_reference.rb', line 1199 def width @width end |
Instance Method Details
#*(delta) ⇒ Size
Multiplies the dimensions of the receiver with the given number.
1227 |
# File 'doc/API_reference.rb', line 1227 def *(delta); end |
#+(size) ⇒ Size
Adds the dimensions of the receiver with the dimensions of the given size object.
1211 |
# File 'doc/API_reference.rb', line 1211 def +(size); end |
#-(size) ⇒ Size
Substracts the dimensions of the receiver with the dimensions of the given size object.
1217 |
# File 'doc/API_reference.rb', line 1217 def -(size); end |
#/(delta) ⇒ Size
Divides the dimensions of the receiver with the given number.
1222 |
# File 'doc/API_reference.rb', line 1222 def /(delta); end |