Class: Zgomot::UI::CCWindow
Instance Attribute Summary collapse
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#rows ⇒ Object
readonly
Returns the value of attribute rows.
-
#widths ⇒ Object
readonly
Returns the value of attribute widths.
Instance Method Summary collapse
- #display ⇒ Object
-
#initialize(height, top) ⇒ CCWindow
constructor
A new instance of CCWindow.
Constructor Details
#initialize(height, top) ⇒ CCWindow
Returns a new instance of CCWindow.
216 217 218 219 220 221 222 |
# File 'lib/zgomot/ui/windows.rb', line 216 def initialize(height, top) @height = height @widths = Zgomot::UI::Output::CC_OUTPUT_FORMAT_WIDTHS TitleWindow.new('Input CCs', COLOR_BORDER, top, COLOR_BLUE) TableRowWindow.new(Zgomot::UI::Output::CC_HEADER, widths, COLOR_BORDER, top + 3, COLOR_BORDER) add_ccs(top + 3) end |
Instance Attribute Details
#height ⇒ Object (readonly)
Returns the value of attribute height.
215 216 217 |
# File 'lib/zgomot/ui/windows.rb', line 215 def height @height end |
#rows ⇒ Object (readonly)
Returns the value of attribute rows.
215 216 217 |
# File 'lib/zgomot/ui/windows.rb', line 215 def rows @rows end |
#widths ⇒ Object (readonly)
Returns the value of attribute widths.
215 216 217 |
# File 'lib/zgomot/ui/windows.rb', line 215 def widths @widths end |
Instance Method Details
#display ⇒ Object
223 224 225 226 |
# File 'lib/zgomot/ui/windows.rb', line 223 def display ccs = get_ccs (0..ccs.length-1).each{|i| rows[i].display(ccs[i], cc_color(ccs[i]))} end |