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