Sha256: 3e3fa4dba51feb19bbc33837929afe9debe459b4bacd4c45a34a086d2335858c
Contents?: true
Size: 1.11 KB
Versions: 2
Compression:
Stored size: 1.11 KB
Contents
### # wxRuby3 wxWidgets interface director # Copyright (c) M.J.N. Corino, The Netherlands ### module WXRuby3 class Director class Clipboard < Director include Typemap::DataFormat def setup super spec.gc_as_temporary # don't even track Clipboard objects # there is no need or support for clipboard derivatives # not least because wxRuby only ever allows a single global clipboard spec.disable_proxies spec.make_abstract 'wxClipboard' # After a data object has been set to the clipboard using set_data, it # becomes owned by the clipboard and shouldn't be freed spec.disown 'wxDataObject* data' spec.add_extend_code 'wxClipboard', <<~__HEREDOC // Provide access to the global clipboard; same clipboard must be used // between calls to do data transfer properly. static VALUE get_global_clipboard() { return SWIG_NewPointerObj(wxTheClipboard, SWIGTYPE_p_wxClipboard, 0); } __HEREDOC end end # class Clipboard end # class Director end # module WXRuby3
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wxruby3-0.9.0.pre.beta.14 | rakelib/lib/director/clipboard.rb |
wxruby3-0.9.0.pre.beta.13 | rakelib/lib/director/clipboard.rb |