Class: Rfd::HeaderLeftWindow
- Defined in:
- lib/rfd/windows.rb
Instance Method Summary collapse
- #draw_current_file_info(current_file) ⇒ Object
- #draw_path_and_page_number(path: nil, current: 1, total: nil) ⇒ Object
-
#initialize ⇒ HeaderLeftWindow
constructor
A new instance of HeaderLeftWindow.
Methods inherited from Window
draw_borders, draw_ncursesw_border, ncursesw?, #writeln
Constructor Details
#initialize ⇒ HeaderLeftWindow
Returns a new instance of HeaderLeftWindow.
59 60 61 |
# File 'lib/rfd/windows.rb', line 59 def initialize super maxy: 3, maxx: Curses.cols - 32, begy: 1, begx: 1 end |
Instance Method Details
#draw_current_file_info(current_file) ⇒ Object
68 69 70 71 72 |
# File 'lib/rfd/windows.rb', line 68 def draw_current_file_info(current_file) draw_current_filename current_file.full_display_name draw_stat current_file noutrefresh end |
#draw_path_and_page_number(path: nil, current: 1, total: nil) ⇒ Object
63 64 65 66 |
# File 'lib/rfd/windows.rb', line 63 def draw_path_and_page_number(path: nil, current: 1, total: nil) writeln 0, %Q[Page: #{"#{current}/ #{total}".ljust(11)} Path: #{path}] noutrefresh end |