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