Sha256: 4c0860d4075ca917117cfdd3750e31e98f1db7056920c128e8f1f27d7105e9ac

Contents?: true

Size: 581 Bytes

Versions: 9

Compression:

Stored size: 581 Bytes

Contents

# Device Context to paint on a window outside an on_paint handler. It is
# recommended that PaintDC is used in preference to this class.
class Wx::ClientDC
  # This class should not be instantiated directly in wxRuby; it should
  # always be used via Window#paint, which takes a block receiving the
  # DC. This ensures that the DC is cleaned up at the correct time,
  # avoiding errors and segfaults on exit.
  def initialize(*args)
    Kernel.raise RuntimeError,
                 "Do not instantiate ClientDC directly; use Window#paint",
                 caller[1..-1]
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
wxruby-1.9.1-powerpc-darwin8.3.0 lib/wx/classes/clientdc.rb
wxruby-1.9.1-i686-linux lib/wx/classes/clientdc.rb
wxruby-1.9.1-i686-darwin8.4.1 lib/wx/classes/clientdc.rb
wxruby-1.9.1-i386-mswin32 lib/wx/classes/clientdc.rb
wxruby-1.9.0-powerpc-darwin8.10.0 lib/wx/classes/clientdc.rb
wxruby-1.9.0-i686-linux lib/wx/classes/clientdc.rb
wxruby-1.9.0-i686-darwin8.4.1 lib/wx/classes/clientdc.rb
wxruby-1.9.0-i386-mswin32 lib/wx/classes/clientdc.rb
wxruby-1.9.1-x86_64-linux lib/wx/classes/clientdc.rb