Sha256: 07ea5c7b4e61368e6f8353dcb7168f89f81a17219dd8d02216e2a8ec724de59f
Contents?: true
Size: 1.11 KB
Versions: 3
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_untracked # 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wxruby3-0.9.0.pre.rc.3 | rakelib/lib/director/clipboard.rb |
wxruby3-0.9.0.pre.rc.2 | rakelib/lib/director/clipboard.rb |
wxruby3-0.9.0.pre.rc.1 | rakelib/lib/director/clipboard.rb |