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
Constructor Details
#initialize ⇒ HeaderLeftWindow
Returns a new instance of HeaderLeftWindow.
28 29 30 |
# File 'lib/rfd/windows.rb', line 28 def initialize super maxy: 3, maxx: Curses.cols - 32, begy: 1, begx: 1 end |
Instance Method Details
#draw_current_file_info(current_file) ⇒ Object
37 38 39 40 41 |
# File 'lib/rfd/windows.rb', line 37 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
32 33 34 35 |
# File 'lib/rfd/windows.rb', line 32 def draw_path_and_page_number(path: nil, current: 1, total: nil) writeln 0, %Q[Page: #{"#{current}/ #{total}".ljust(11)} Path: #{path}] noutrefresh end |