Method: CDK::SCALE#draw
- Defined in:
- lib/cdk/components/scale.rb
#draw(box) ⇒ Object
This function draws the widget.
389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 |
# File 'lib/cdk/components/scale.rb', line 389 def draw(box) # Draw the shadow. unless @shadow_win.nil? Draw.drawShadow(@shadow_win) end # Box the widget if asked. if box Draw.drawObjBox(@win, self) end self.drawTitle(@win) # Draw the label. unless @label_win.nil? Draw.writeChtype(@label_win, 0, 0, @label, CDK::HORIZONTAL, 0, @label_len) wrefresh(@label_win) end wrefresh # Draw the field window. self.drawField end |