class Layout
The basic, grid (flow) layout. inheritable.
Attributes
_[R]
Public Class Methods
new(layout=nil)
click to toggle source
# File lib/under_os/ui/collection/layout.rb, line 7 def initialize(layout=nil) @_ = layout || UICollectionViewFlowLayout.alloc.init self.items_spacing = 0 self.rows_spacing = 1 end
Public Instance Methods
item_size()
click to toggle source
# File lib/under_os/ui/collection/layout.rb, line 14 def item_size end
item_size=(*size)
click to toggle source
# File lib/under_os/ui/collection/layout.rb, line 17 def item_size=(*size) size = UnderOs::Point.new(*size) @_.itemSize = CGSizeMake(size.x, size.y) end
items_spacing()
click to toggle source
# File lib/under_os/ui/collection/layout.rb, line 22 def items_spacing @_.minimumInteritemSpacing end
items_spacing=(value)
click to toggle source
# File lib/under_os/ui/collection/layout.rb, line 26 def items_spacing=(value) @_.minimumInteritemSpacing = value end
rows_spacing()
click to toggle source
# File lib/under_os/ui/collection/layout.rb, line 30 def rows_spacing @_.minimumLineSpacing end
rows_spacing=(value)
click to toggle source
# File lib/under_os/ui/collection/layout.rb, line 34 def rows_spacing=(value) @_.minimumLineSpacing = value end
section_inset()
click to toggle source
# File lib/under_os/ui/collection/layout.rb, line 38 def section_inset end
section_inset=(value)
click to toggle source
# File lib/under_os/ui/collection/layout.rb, line 41 def section_inset=(value) end