Class: Rfd::HeaderLeftWindow

Inherits:
Window
  • Object
show all
Defined in:
lib/rfd/windows.rb

Instance Method Summary collapse

Methods inherited from Window

draw_borders, #writeln

Constructor Details

#initializeHeaderLeftWindow

Returns a new instance of HeaderLeftWindow.



26
27
28
# File 'lib/rfd/windows.rb', line 26

def initialize
  super maxy: 3, maxx: Curses.cols - 32, begy: 1, begx: 1
end

Instance Method Details

#draw_current_file_info(current_file) ⇒ Object



35
36
37
38
39
# File 'lib/rfd/windows.rb', line 35

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



30
31
32
33
# File 'lib/rfd/windows.rb', line 30

def draw_path_and_page_number(path: nil, current: 1, total: nil)
  writeln 0, %Q[Page: #{"#{current}/ #{total}".ljust(11)}  Path: #{path}]
  noutrefresh
end