class BBS::Selector::Row
All the items side by side on one row: the layout of a BBS::Selector with across. The items that do not fit are left off.
Public Class Methods
Source
# File lib/bbs/selector/layouts.rb, line 81 def initialize(count) @count = count end
Lays out count items on one row.
Public Instance Methods
Source
# File lib/bbs/selector/layouts.rb, line 101 def column_of(_index, _width) = 1
Always the first column: the cursor waits at the rowβs start.
Source
# File lib/bbs/selector/layouts.rb, line 98 def line_of(_index) = 1
Always the first row.
Source
# File lib/bbs/selector/layouts.rb, line 95 def page_of(_index) = 0
Always the first page.
Source
# File lib/bbs/selector/layouts.rb, line 89 def per_page = @count
Every item is on the one page.
Source
# File lib/bbs/selector/layouts.rb, line 104 def segments(_number, selector) = selector.across_cells
The words of the items on the row, the lit one a bar.
Source
# File lib/bbs/selector/layouts.rb, line 107 def side(selector, dir) = selector.move(dir)
Moves selector to the item before or after.