class Canis::Box
Public Class Methods
new(form, config={})
click to toggle source
Calls superclass method
# File lib/canis/core/widgets/box.rb, line 29 def initialize form, config={}, &block bordertitle_init super @window = form.window if @form @editable = false @focusable = false #@height += 1 # for that silly -1 that happens @repaint_required = true end
Public Instance Methods
repaint()
click to toggle source
repaint the scrollbar
# File lib/canis/core/widgets/box.rb, line 42 def repaint return unless @repaint_required bc = $datacolor bordercolor = @border_color || bc borderatt = @border_attrib || Ncurses::A_NORMAL @window.print_border row, col, height, width, bordercolor, borderatt #print_borders print_title @repaint_required = false end