Class: MG::Size

Inherits:
Object
  • Object
show all
Defined in:
doc/API_reference.rb

Overview

node.size = size

Properties collapse

Helpers collapse

Instance Attribute Details

#heightFloat

Returns the size height.

Returns:

  • (Float)

    the size height.



1080
1081
1082
# File 'doc/API_reference.rb', line 1080

def height
  @height
end

#widthFloat

Returns the size width.

Returns:

  • (Float)

    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.

Parameters:

  • delta (Float)

    the number to multiply the receiver with.

Returns:

  • (Size)

    a new Size object.



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.

Parameters:

Returns:

  • (Size)

    a new 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.

Parameters:

Returns:

  • (Size)

    a new 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.

Parameters:

  • delta (Float)

    the number to divide the receiver with.

Returns:

  • (Size)

    a new Size object.



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

def /(delta); end