Class: Marvi::Renderer::Curses::TabBar::Item
- Inherits:
-
Struct
- Object
- Struct
- Marvi::Renderer::Curses::TabBar::Item
- Defined in:
- lib/marvi/renderer/curses/tab_bar.rb
Instance Attribute Summary collapse
-
#col ⇒ Object
Returns the value of attribute col.
-
#index ⇒ Object
Returns the value of attribute index.
-
#row ⇒ Object
Returns the value of attribute row.
-
#text ⇒ Object
Returns the value of attribute text.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
Instance Attribute Details
#col ⇒ Object
Returns the value of attribute col
12 13 14 |
# File 'lib/marvi/renderer/curses/tab_bar.rb', line 12 def col @col end |
#index ⇒ Object
Returns the value of attribute index
12 13 14 |
# File 'lib/marvi/renderer/curses/tab_bar.rb', line 12 def index @index end |
#row ⇒ Object
Returns the value of attribute row
12 13 14 |
# File 'lib/marvi/renderer/curses/tab_bar.rb', line 12 def row @row end |
#text ⇒ Object
Returns the value of attribute text
12 13 14 |
# File 'lib/marvi/renderer/curses/tab_bar.rb', line 12 def text @text end |
#width ⇒ Object
Returns the value of attribute width
12 13 14 |
# File 'lib/marvi/renderer/curses/tab_bar.rb', line 12 def width @width end |
Instance Method Details
#contains?(y, x) ⇒ Boolean
13 14 15 |
# File 'lib/marvi/renderer/curses/tab_bar.rb', line 13 def contains?(y, x) y == row && x >= col && x < col + width end |