Class: Cliptic::Main::Windows::Cluebox

Inherits:
Windows::Window show all
Defined in:
lib/cliptic/main.rb

Constant Summary

Constants included from Chars

Chars::Block, Chars::HL, Chars::LL, Chars::LS, Chars::LU, Chars::MS, Chars::Nums, Chars::RL, Chars::RS, Chars::RU, Chars::TD, Chars::TL, Chars::TR, Chars::TU, Chars::Tick, Chars::VL, Chars::XX

Instance Attribute Summary

Attributes inherited from Windows::Window

#centered_x, #centered_y, #col, #line, #x, #y

Instance Method Summary collapse

Methods inherited from Windows::Window

#add_str, #bold, #clear, #color, #draw, #move, #refresh, #reset_attrs, #reset_pos, #setpos, #standend, #standout, #time_str, #wrap_str

Methods included from Chars

small_num

Constructor Details

#initialize(grid:) ⇒ Cluebox

Returns a new instance of Cluebox.



109
110
111
# File 'lib/cliptic/main.rb', line 109

def initialize(grid:)
  super(y:Curses.lines-grid.y-2, line:grid.y+1, col:0)
end

Instance Method Details

#show(clue:) ⇒ Object



112
113
114
115
116
117
# File 'lib/cliptic/main.rb', line 112

def show(clue:)
  draw(cp:$colors[:cluebox])
  set_meta(clue)
  set_hint(clue)
  noutrefresh
end