Sha256: 836c1050bafc53936e6ab2fdb5a15f9d3835b186cb5a381244d2867b713f9f1a

Contents?: true

Size: 428 Bytes

Versions: 13

Compression:

Stored size: 428 Bytes

Contents

# Copyright (c) 2023 M.J.N. Corino, The Netherlands
#
# This software is released under the MIT license.
# 
# Some parts are
# Copyright 2004-2007, wxRuby development team
# released under the MIT-like wxRuby2 license

module Wx

  class PaintDC

    def self.draw_on(win, &block)
      win.paint(&block) if block
    end

  end

  AutoBufferedPaintDC = PaintDC.has_native_double_buffer ? Wx::PaintDC : Wx::BufferedPaintDC

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
wxruby3-1.5.1 lib/wx/core/paintdc.rb
wxruby3-1.5.0 lib/wx/core/paintdc.rb
wxruby3-1.4.2 lib/wx/core/paintdc.rb
wxruby3-1.4.1 lib/wx/core/paintdc.rb
wxruby3-1.4.0 lib/wx/core/paintdc.rb
wxruby3-1.3.1 lib/wx/core/paintdc.rb
wxruby3-1.3.0 lib/wx/core/paintdc.rb
wxruby3-1.2.1 lib/wx/core/paintdc.rb
wxruby3-1.2.0 lib/wx/core/paintdc.rb
wxruby3-1.1.2 lib/wx/core/paintdc.rb
wxruby3-1.1.1 lib/wx/core/paintdc.rb
wxruby3-1.1.0 lib/wx/core/paintdc.rb
wxruby3-1.0.1 lib/wx/core/paintdc.rb