Method: CDK::VIEWER#draw

Defined in:
lib/cdk/components/viewer.rb

#draw(box) ⇒ Object

This function draws the viewer widget.



631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
# File 'lib/cdk/components/viewer.rb', line 631

def draw(box)
  # Do we need to draw in the shadow?
  unless @shadow_win.nil?
    Draw.drawShadow(@shadow_win)
  end

  # Box it if it was asked for.
  if box
    Draw.drawObjBox(@win, self)
    wrefresh
  end

  # Draw the info in the viewer.
  self.drawInfo
end