Class: Qt::Painter
Instance Method Summary collapse
- #addEllipseColor(x, y, w, h, color = Cosmos::BLACK) ⇒ Object
- #addEllipseColorFill(x, y, w, h, color = Cosmos::BLACK) ⇒ Object
- #addLineColor(x, y, w, h, color = Cosmos::BLACK) ⇒ Object
- #addRectColor(x, y, w, h, color = Cosmos::BLACK) ⇒ Object
- #addRectColorFill(x, y, w, h, color = Cosmos::BLACK) ⇒ Object
- #addSimpleTextAt(text, x, y, color = Cosmos::BLACK) ⇒ Object
Instance Method Details
#addEllipseColor(x, y, w, h, color = Cosmos::BLACK) ⇒ Object
698 699 700 701 702 703 |
# File 'lib/cosmos/gui/qt.rb', line 698 def addEllipseColor(x, y, w, h, color = Cosmos::BLACK) color = Cosmos::getColor(color) setPen(color) setBrush(nil) drawEllipse(x,y,w,h) end |
#addEllipseColorFill(x, y, w, h, color = Cosmos::BLACK) ⇒ Object
705 706 707 708 709 710 |
# File 'lib/cosmos/gui/qt.rb', line 705 def addEllipseColorFill(x, y, w, h, color = Cosmos::BLACK) color = Cosmos::getColor(color) setPen(color) setBrush(Cosmos.getBrush(color)) drawEllipse(x,y,w,h) end |
#addLineColor(x, y, w, h, color = Cosmos::BLACK) ⇒ Object
672 673 674 675 676 |
# File 'lib/cosmos/gui/qt.rb', line 672 def addLineColor(x, y, w, h, color = Cosmos::BLACK) color = Cosmos::getColor(color) setPen(color) drawLine(x,y,w,h) end |
#addRectColor(x, y, w, h, color = Cosmos::BLACK) ⇒ Object
678 679 680 681 682 683 |
# File 'lib/cosmos/gui/qt.rb', line 678 def addRectColor(x, y, w, h, color = Cosmos::BLACK) color = Cosmos::getColor(color) setPen(color) setBrush(nil) drawRect(x,y,w,h) end |