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



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

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



683
684
685
686
687
# File 'lib/cosmos/gui/qt.rb', line 683

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

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



689
690
691
692
# File 'lib/cosmos/gui/qt.rb', line 689

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