class Qt::Painter

Public Instance Methods

paint() { |self| ... } click to toggle source

Ensure this painter is closed after the block is executed.

# File lib/rui/toolkits/qtbase/qt.rb, line 41
def paint
  yield self
ensure
  self.end
end
saving() { |self| ... } click to toggle source

Execute a block, then restore the painter state to what it was before execution.

# File lib/rui/toolkits/qtbase/qt.rb, line 51
def saving
  save
  yield self
ensure
  restore
end