Sha256: b45f0279b2d63bf5f74ca4da905ab747511886cdec83d686e16c8acfb6598dbd

Contents?: true

Size: 561 Bytes

Versions: 11

Compression:

Stored size: 561 Bytes

Contents

# Frame that displays a print preview
class Wx::PRT::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::PRT::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

11 entries across 11 versions & 1 rubygems

Version Path
wxruby3-0.9.0.pre.rc.3-x64-mingw-ucrt lib/wx/prt/previewframe.rb
wxruby3-0.9.0.pre.rc.2-x64-mingw-ucrt lib/wx/prt/previewframe.rb
wxruby3-0.9.0.pre.rc.1-x64-mingw-ucrt lib/wx/prt/previewframe.rb
wxruby3-0.9.0.pre.beta.14-x64-mingw-ucrt lib/wx/prt/previewframe.rb
wxruby3-0.9.0.pre.beta.13-x64-mingw-ucrt lib/wx/prt/previewframe.rb
wxruby3-0.9.0.pre.beta.11-x64-mingw-ucrt lib/wx/prt/previewframe.rb
wxruby3-0.9.0.pre.beta.10-x64-mingw-ucrt lib/wx/prt/previewframe.rb
wxruby3-0.9.0.pre.beta.9-x64-mingw-ucrt lib/wx/prt/previewframe.rb
wxruby3-0.9.0.pre.beta.8-x64-mingw-ucrt lib/wx/prt/previewframe.rb
wxruby3-0.9.0.pre.beta.2-x64-mingw-ucrt-3.2-3.2.2 lib/wx/prt/previewframe.rb
wxruby3-0.9.0.pre.beta.1-x64-mingw-ucrt-3.2 lib/wx/prt/previewframe.rb