Class: Rvim::Window

Inherits:
Object
  • Object
show all
Defined in:
lib/rvim/window.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(buffer) ⇒ Window

Returns a new instance of Window.



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/rvim/window.rb', line 9

def initialize(buffer)
  @buffer = buffer
  @scroll_top = 0
  @row = 0
  @col = 0
  @height = 24
  @width = 80
  @extra_rows = 0
  @extra_cols = 0
  @location_list = nil
  @vars = {}
end

Instance Attribute Details

#bufferObject

Returns the value of attribute buffer.



5
6
7
# File 'lib/rvim/window.rb', line 5

def buffer
  @buffer
end

#colObject

Returns the value of attribute col.



5
6
7
# File 'lib/rvim/window.rb', line 5

def col
  @col
end

#extra_colsObject

Returns the value of attribute extra_cols.



6
7
8
# File 'lib/rvim/window.rb', line 6

def extra_cols
  @extra_cols
end

#extra_rowsObject

Returns the value of attribute extra_rows.



6
7
8
# File 'lib/rvim/window.rb', line 6

def extra_rows
  @extra_rows
end

#heightObject

Returns the value of attribute height.



5
6
7
# File 'lib/rvim/window.rb', line 5

def height
  @height
end

#rowObject

Returns the value of attribute row.



5
6
7
# File 'lib/rvim/window.rb', line 5

def row
  @row
end

#scroll_topObject

Returns the value of attribute scroll_top.



5
6
7
# File 'lib/rvim/window.rb', line 5

def scroll_top
  @scroll_top
end

#varsObject

Returns the value of attribute vars.



7
8
9
# File 'lib/rvim/window.rb', line 7

def vars
  @vars
end

#widthObject

Returns the value of attribute width.



5
6
7
# File 'lib/rvim/window.rb', line 5

def width
  @width
end

Instance Method Details

#location_listObject



22
23
24
# File 'lib/rvim/window.rb', line 22

def location_list
  @location_list ||= Rvim::Quickfix.new
end