module GraphicContext
Public Instance Methods
get_fill_glyph()
click to toggle source
# File lib/curses/geometry/graphic_context.rb, line 28 def get_fill_glyph @@graphic_context[:fill_glyph] end
get_graphic_context()
click to toggle source
# File lib/curses/geometry/graphic_context.rb, line 6 def get_graphic_context @@graphic_context end
get_stroke_glyph()
click to toggle source
# File lib/curses/geometry/graphic_context.rb, line 20 def get_stroke_glyph @@graphic_context[:stroke_glyph] end
register_color_pair(name, front_color, back_color)
click to toggle source
# File lib/curses/geometry/graphic_context.rb, line 10 def register_color_pair(name, front_color, back_color) new_pair_index = @@graphic_context[:color_pairs].length + 1 init_pair(new_pair_index, front_color, back_color) @@graphic_context[:color_pairs][name] = new_pair_index end
set_color_pair(name)
click to toggle source
# File lib/curses/geometry/graphic_context.rb, line 16 def set_color_pair(name) attron color_pair(@@graphic_context[:color_pairs][name]) end
set_fill_glyph(glyph)
click to toggle source
# File lib/curses/geometry/graphic_context.rb, line 32 def set_fill_glyph(glyph) @@graphic_context[:fill_glyph] = glyph end
set_stroke_glyph(glyph)
click to toggle source
# File lib/curses/geometry/graphic_context.rb, line 24 def set_stroke_glyph(glyph) @@graphic_context[:stroke_glyph] = glyph end