Class: Qt::Painter

Inherits:
Object show all
Defined in:
lib/cosmos/gui/qt.rb

Instance Method Summary collapse

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

#addRectColorFill(x, y, w, h, color = Cosmos::BLACK) ⇒ Object



685
686
687
688
689
690
# File 'lib/cosmos/gui/qt.rb', line 685

def addRectColorFill(x, y, w, h, color = Cosmos::BLACK)
  color = Cosmos::getColor(color)
  setPen(color)
  setBrush(Cosmos.getBrush(color))
  drawRect(x,y,w,h)
end

#addSimpleTextAt(text, x, y, color = Cosmos::BLACK) ⇒ Object



692
693
694
695
696
# File 'lib/cosmos/gui/qt.rb', line 692

def addSimpleTextAt(text, x, y, color = Cosmos::BLACK)
  color = Cosmos::getColor(color)
  setPen(color)
  drawText(x, y, text)
end