Class: MG::Size
- Inherits:
-
Object
- Object
- MG::Size
- Defined in:
- doc/API_reference.rb
Overview
node.size = size
Properties collapse
-
#height ⇒ Float
The size height.
-
#width ⇒ Float
The size width.
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.
Instance Attribute Details
#height ⇒ Float
Returns the size height.
1080 1081 1082 |
# File 'doc/API_reference.rb', line 1080 def height @height end |
#width ⇒ Float
Returns the size width.
1077 1078 1079 |
# File 'doc/API_reference.rb', line 1077 def width @width end |
Instance Method Details
#*(delta) ⇒ Size
Multiplies the dimensions of the receiver with the given number.
1105 |
# File 'doc/API_reference.rb', line 1105 def *(delta); end |
#+(size) ⇒ Size
Adds the dimensions of the receiver with the dimensions of the given size object.
1089 |
# File 'doc/API_reference.rb', line 1089 def +(size); end |
#-(size) ⇒ Size
Substracts the dimensions of the receiver with the dimensions of the given size object.
1095 |
# File 'doc/API_reference.rb', line 1095 def -(size); end |
#/(delta) ⇒ Size
Divides the dimensions of the receiver with the given number.
1100 |
# File 'doc/API_reference.rb', line 1100 def /(delta); end |