Class: GGLib::Containable::Dimension

Inherits:
Object
  • Object
show all
Defined in:
lib/widget.rb

Constant Summary collapse

Infinite =
-1

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(h, v) ⇒ Dimension

Returns a new instance of Dimension.



34
35
36
# File 'lib/widget.rb', line 34

def initialize(h, v)
  @horizontal, @vertical = h, v
end

Instance Attribute Details

#containerObject

Returns the value of attribute container.



33
34
35
# File 'lib/widget.rb', line 33

def container
  @container
end

#horizontalObject

Returns the value of attribute horizontal.



32
33
34
# File 'lib/widget.rb', line 32

def horizontal
  @horizontal
end

#verticalObject

Returns the value of attribute vertical.



32
33
34
# File 'lib/widget.rb', line 32

def vertical
  @vertical
end