Class: GGLib::Containable::Padding

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(t, r, b, l, contain = nil) ⇒ Padding

Returns a new instance of Padding.



8
9
10
11
# File 'lib/widget.rb', line 8

def initialize(t, r, b, l, contain=nil)
  @top, @right, @bottom, @left = t, r, b, l
  @container=contain
end

Instance Attribute Details

#bottomObject

Returns the value of attribute bottom.



6
7
8
# File 'lib/widget.rb', line 6

def bottom
  @bottom
end

#containerObject

Returns the value of attribute container.



7
8
9
# File 'lib/widget.rb', line 7

def container
  @container
end

#leftObject

Returns the value of attribute left.



6
7
8
# File 'lib/widget.rb', line 6

def left
  @left
end

#rightObject

Returns the value of attribute right.



6
7
8
# File 'lib/widget.rb', line 6

def right
  @right
end

#topObject

Returns the value of attribute top.



6
7
8
# File 'lib/widget.rb', line 6

def top
  @top
end