Sha256: 2bf8f54d2372f493f901a373b6dbabd2763ae941057c97b43797163f66e4d265

Contents?: true

Size: 655 Bytes

Versions: 16

Compression:

Stored size: 655 Bytes

Contents

# Copyright (c) 2023 M.J.N. Corino, The Netherlands
#
# This software is released under the MIT license.

# 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

16 entries across 16 versions & 1 rubygems

Version Path
wxruby3-1.3.1 lib/wx/prt/previewframe.rb
wxruby3-1.3.0 lib/wx/prt/previewframe.rb
wxruby3-1.2.1 lib/wx/prt/previewframe.rb
wxruby3-1.2.0 lib/wx/prt/previewframe.rb
wxruby3-1.1.2 lib/wx/prt/previewframe.rb
wxruby3-1.1.1 lib/wx/prt/previewframe.rb
wxruby3-1.1.0 lib/wx/prt/previewframe.rb
wxruby3-1.0.1 lib/wx/prt/previewframe.rb
wxruby3-0.9.8 lib/wx/prt/previewframe.rb
wxruby3-0.9.7 lib/wx/prt/previewframe.rb
wxruby3-0.9.5 lib/wx/prt/previewframe.rb
wxruby3-0.9.4 lib/wx/prt/previewframe.rb
wxruby3-0.9.3 lib/wx/prt/previewframe.rb
wxruby3-0.9.2 lib/wx/prt/previewframe.rb
wxruby3-0.9.1 lib/wx/prt/previewframe.rb
wxruby3-0.9.0 lib/wx/prt/previewframe.rb