Module: WhirledPeas::Graphics::ScrollbarHelper

Defined in:
lib/whirled_peas/graphics/scrollbar_helper.rb

Constant Summary collapse

HORIZONTAL =

Contants to paint scrollbars

[' ', '', '', '']
VERTICAL =
[
  ' ',
  '',
  '',
  ''
]

Class Method Summary collapse

Class Method Details

.horiz(col_count, viewable_col_count, first_visible_col) ⇒ Object

Return the characters to paint the horizontal scroll bar with for the given column

See Also:

  • for more details


21
22
23
# File 'lib/whirled_peas/graphics/scrollbar_helper.rb', line 21

def horiz(col_count, viewable_col_count, first_visible_col)
  scroll_chars(col_count, viewable_col_count, first_visible_col, HORIZONTAL)
end

.vert(row_count, viewable_row_count, first_visible_row) ⇒ Object

Return the characters to paint the vertical scroll bar with for the given row

See Also:

  • for more details


28
29
30
# File 'lib/whirled_peas/graphics/scrollbar_helper.rb', line 28

def vert(row_count, viewable_row_count, first_visible_row)
  scroll_chars(row_count, viewable_row_count, first_visible_row, VERTICAL)
end