Module: VER::Layout::VerticalTiling

Extended by:
Tiling
Defined in:
lib/ver/layout.rb

Constant Summary

Constants included from Tiling

Tiling::DEFAULT

Class Method Summary collapse

Methods included from Tiling

apply, apply_hidden, prepare

Class Method Details

.apply_masters(windows, width, step = 1.0 / windows.size) ⇒ Object



138
139
140
141
142
# File 'lib/ver/layout.rb', line 138

def apply_masters(windows, width, step = 1.0 / windows.size)
  windows.each_with_index{|window, idx|
    window.place(relx: 0.0, rely: (step * idx),
                relheight: step, relwidth: width) }
end

.apply_stacked(windows, width, step = 1.0 / windows.size) ⇒ Object



144
145
146
147
148
# File 'lib/ver/layout.rb', line 144

def apply_stacked(windows, width, step = 1.0 / windows.size)
  windows.each_with_index{|window, idx|
    window.place(relx: 0.5, rely: (step * idx),
                relheight: step, relwidth: width) }
end