Sha256: 6c7171b1140c619902f7f38ad9f0c1de64dfde36e5b093a5227c4ee051f0708b

Contents?: true

Size: 538 Bytes

Versions: 67

Compression:

Stored size: 538 Bytes

Contents

# Frame that displays a print preview
class Wx::PreviewFrame
  # a PreviewFrame has a preview associated with it that must be
  # protected from Ruby's GC. However, there is no C++ method to access
  # the Wx::PrintPreview (only a protected member), so instead we have
  # to assign it to an instance variable so it is marked correctly when
  # the frame displaying it is marked.
  wx_init = self.instance_method(:initialize)
  define_method(:initialize) do | *args |
    wx_init.bind(self).call(*args)
    @__preview = args[0]
  end
end

Version data entries

67 entries across 67 versions & 3 rubygems

Version Path
wxruby64-2.0.1-x64-mingw32 lib/wx/classes/previewframe.rb
wxruby-ruby19-2.0.1-x86-mingw32 lib/wx/classes/previewframe.rb
wxruby-ruby19-2.0.1-x86-linux lib/wx/classes/previewframe.rb
wxruby-ruby19-2.0.1-x86-darwin-9 lib/wx/classes/previewframe.rb
wxruby-2.0.1-x86-mswin32-60 lib/wx/classes/previewframe.rb
wxruby-2.0.1-x86-mingw32 lib/wx/classes/previewframe.rb
wxruby-2.0.1-x86-linux lib/wx/classes/previewframe.rb
wxruby-2.0.1-universal-darwin-9 lib/wx/classes/previewframe.rb
wxruby-1.9.7-i386-mswin32 lib/wx/classes/previewframe.rb
wxruby-1.9.5-i386-mswin32 lib/wx/classes/previewframe.rb
wxruby-1.9.4-i386-mswin32 lib/wx/classes/previewframe.rb
wxruby-1.9.3-i386-mswin32 lib/wx/classes/previewframe.rb
wxruby-1.9.2-powerpc-darwin8.10.0 lib/wx/classes/previewframe.rb
wxruby-1.9.2-i686-linux lib/wx/classes/previewframe.rb
wxruby-1.9.2-i686-darwin8.8.2 lib/wx/classes/previewframe.rb
wxruby-1.9.2-i386-mswin32 lib/wx/classes/previewframe.rb
wxruby-1.9.1-powerpc-darwin8.3.0 lib/wx/classes/previewframe.rb
wxruby-1.9.1-i686-linux lib/wx/classes/previewframe.rb
wxruby-1.9.1-i686-darwin8.4.1 lib/wx/classes/previewframe.rb
wxruby-1.9.1-i386-mswin32 lib/wx/classes/previewframe.rb