Class: RubyJard::Screen
- Inherits:
-
Object
- Object
- RubyJard::Screen
- Defined in:
- lib/ruby_jard/screen.rb
Overview
A screen is a unit of information drawing on the terminal. Each screen is generated based on input layout specifiation, screen data, and top-left corner cordination.
Direct Known Subclasses
RubyJard::Screens::BacktraceScreen, RubyJard::Screens::MenuScreen, RubyJard::Screens::SourceScreen, RubyJard::Screens::ThreadsScreen, RubyJard::Screens::VariablesScreen
Instance Attribute Summary collapse
-
#cursor ⇒ Object
Returns the value of attribute cursor.
-
#layout ⇒ Object
Returns the value of attribute layout.
-
#rows ⇒ Object
Returns the value of attribute rows.
-
#selected ⇒ Object
Returns the value of attribute selected.
-
#window ⇒ Object
Returns the value of attribute window.
Instance Method Summary collapse
- #build ⇒ Object
- #click(relative_x, relative_y) ⇒ Object
-
#initialize(layout, session: nil) ⇒ Screen
constructor
A new instance of Screen.
- #move_down ⇒ Object
- #move_up ⇒ Object
- #page_down ⇒ Object
- #page_up ⇒ Object
Constructor Details
Instance Attribute Details
#cursor ⇒ Object
Returns the value of attribute cursor.
9 10 11 |
# File 'lib/ruby_jard/screen.rb', line 9 def cursor @cursor end |
#layout ⇒ Object
Returns the value of attribute layout.
9 10 11 |
# File 'lib/ruby_jard/screen.rb', line 9 def layout @layout end |
#rows ⇒ Object
Returns the value of attribute rows.
9 10 11 |
# File 'lib/ruby_jard/screen.rb', line 9 def rows @rows end |
#selected ⇒ Object
Returns the value of attribute selected.
9 10 11 |
# File 'lib/ruby_jard/screen.rb', line 9 def selected @selected end |
#window ⇒ Object
Returns the value of attribute window.
9 10 11 |
# File 'lib/ruby_jard/screen.rb', line 9 def window @window end |
Instance Method Details
#build ⇒ Object
30 31 32 |
# File 'lib/ruby_jard/screen.rb', line 30 def build raise NotImplementedError, "#{self.class} should implement this method." end |
#click(relative_x, relative_y) ⇒ Object
28 |
# File 'lib/ruby_jard/screen.rb', line 28 def click(relative_x, relative_y); end |
#move_down ⇒ Object
20 |
# File 'lib/ruby_jard/screen.rb', line 20 def move_down; end |
#move_up ⇒ Object
22 |
# File 'lib/ruby_jard/screen.rb', line 22 def move_up; end |
#page_down ⇒ Object
26 |
# File 'lib/ruby_jard/screen.rb', line 26 def page_down; end |
#page_up ⇒ Object
24 |
# File 'lib/ruby_jard/screen.rb', line 24 def page_up; end |