Sha256: d8a515ecce492ab1cd7ed0bee165eb07edfb01587f57cb9fddfd97ce1beff317
Contents?: true
Size: 663 Bytes
Versions: 2
Compression:
Stored size: 663 Bytes
Contents
module VER class TilingLayout module HorizontalTiling extend CommonTiling module_function def apply_masters(windows, center, step = 1.0 / windows.size) windows.each_with_index do |window, idx| evolve(window, relx: (step * idx), rely: 0.0, relheight: center, relwidth: step) end end def apply_stacked(windows, center, step = 1.0 / windows.size) relheight = 1.0 - center windows.each_with_index do |window, idx| evolve(window, relx: (step * idx), rely: center, relheight: relheight, relwidth: step) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ver-2010.08 | lib/ver/layout/tiling/horizontal.rb |
ver-2010.02 | lib/ver/layout/tiling/horizontal.rb |