Class: Rfd::HeaderRightWindow
- Defined in:
- lib/rfd/windows.rb
Instance Method Summary collapse
- #draw_marked_items(count: 0, size: 0) ⇒ Object
- #draw_total_items(count: 0, size: 0) ⇒ Object
-
#initialize ⇒ HeaderRightWindow
constructor
A new instance of HeaderRightWindow.
Methods inherited from Window
Constructor Details
#initialize ⇒ HeaderRightWindow
Returns a new instance of HeaderRightWindow.
54 55 56 |
# File 'lib/rfd/windows.rb', line 54 def initialize super maxy: 2, maxx: 29, begy: 2, begx: Curses.cols - 30 end |
Instance Method Details
#draw_marked_items(count: 0, size: 0) ⇒ Object
58 59 60 61 |
# File 'lib/rfd/windows.rb', line 58 def draw_marked_items(count: 0, size: 0) writeln 0, %Q[#{"#{count}Marked".rjust(11)} #{size.to_s.reverse.gsub(/(\d{3})(?=\d)/, '\1,').reverse.rjust(16)}] noutrefresh end |
#draw_total_items(count: 0, size: 0) ⇒ Object
63 64 65 66 |
# File 'lib/rfd/windows.rb', line 63 def draw_total_items(count: 0, size: 0) writeln 1, %Q[#{"#{count}Files".rjust(10)} #{size.to_s.reverse.gsub(/(\d{3})(?=\d)/, '\1,').reverse.rjust(17)}] noutrefresh end |