Sha256: cf4ab626008f295766d7856337594ff6fb9b42e38529e2bb1c64563f9aff6454
Contents?: true
Size: 673 Bytes
Versions: 7
Compression:
Stored size: 673 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
7 entries across 7 versions & 1 rubygems