Class: GGLib::Containable
Direct Known Subclasses
Defined Under Namespace
Modules: Align, VAlign Classes: Dimension, Padding
Instance Attribute Summary collapse
-
#align ⇒ Object
Returns the value of attribute align.
-
#container ⇒ Object
readonly
Returns the value of attribute container.
-
#maxSize ⇒ Object
Returns the value of attribute maxSize.
-
#minSize ⇒ Object
Returns the value of attribute minSize.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#padding ⇒ Object
Returns the value of attribute padding.
-
#valign ⇒ Object
Returns the value of attribute valign.
Attributes inherited from Tile
#id, #inclusive, #x1, #x2, #y1, #y2
Instance Method Summary collapse
-
#initialize(x1, y1, x2, y2, container = nil) ⇒ Containable
constructor
A new instance of Containable.
Methods inherited from Tile
#centerOn, #del, deleteAllInstances, deleteById, #each, #eachBorder, getAllInstances, getById, #height, #iTile, intersect?, #intersect?, #isInTile?, #move, #resize, setAllInstances, #setCoordinates, #setTile, #width, #xTile
Constructor Details
#initialize(x1, y1, x2, y2, container = nil) ⇒ Containable
Returns a new instance of Containable.
64 65 66 67 68 69 70 71 72 73 |
# File 'lib/widget.rb', line 64 def initialize(x1, y1, x2, y2, container=nil) super(x1, y1, x2, y2) @padding = Padding.new(0,0,0,0) @offset = Dimension.new(0,0) @maxSize = Dimension.new(Dimension::Infinite,Dimension::Infinite) @minSize = Dimension.new(0,0) @align = Align::Default @valign = VAlign::Default @container = container end |
Instance Attribute Details
#align ⇒ Object
Returns the value of attribute align.
61 62 63 |
# File 'lib/widget.rb', line 61 def align @align end |
#container ⇒ Object (readonly)
Returns the value of attribute container.
62 63 64 |
# File 'lib/widget.rb', line 62 def container @container end |
#maxSize ⇒ Object
Returns the value of attribute maxSize.
61 62 63 |
# File 'lib/widget.rb', line 61 def maxSize @maxSize end |
#minSize ⇒ Object
Returns the value of attribute minSize.
61 62 63 |
# File 'lib/widget.rb', line 61 def minSize @minSize end |
#offset ⇒ Object
Returns the value of attribute offset.
61 62 63 |
# File 'lib/widget.rb', line 61 def offset @offset end |
#padding ⇒ Object
Returns the value of attribute padding.
61 62 63 |
# File 'lib/widget.rb', line 61 def padding @padding end |
#valign ⇒ Object
Returns the value of attribute valign.
61 62 63 |
# File 'lib/widget.rb', line 61 def valign @valign end |