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
694 695 696 697 698 |
# File 'lib/cosmos/gui/qt.rb', line 694 def addEllipseColor(x, y, w, h, color = Cosmos::BLACK) setPenColor(color) setBrush(nil) drawEllipse(x,y,w,h) end |
#addEllipseColorFill(x, y, w, h, color = Cosmos::BLACK) ⇒ Object
700 701 702 703 704 |
# File 'lib/cosmos/gui/qt.rb', line 700 def addEllipseColorFill(x, y, w, h, color = Cosmos::BLACK) setPenColor(color) setBrush(Cosmos.getBrush(color)) drawEllipse(x,y,w,h) end |
#addLineColor(x, y, w, h, color = Cosmos::BLACK) ⇒ Object
672 673 674 675 |
# File 'lib/cosmos/gui/qt.rb', line 672 def addLineColor(x, y, w, h, color = Cosmos::BLACK) setPenColor(color) drawLine(x,y,w,h) end |
#addRectColor(x, y, w, h, color = Cosmos::BLACK) ⇒ Object
677 678 679 680 681 |
# File 'lib/cosmos/gui/qt.rb', line 677 def addRectColor(x, y, w, h, color = Cosmos::BLACK) setPenColor(color) setBrush(nil) drawRect(x,y,w,h) end |