Sha256: 8114229ad262f5f4ab7ab0ba4f5e434e29f540917fa4171d50fa6fb488020da2
Contents?: true
Size: 1.46 KB
Versions: 8
Compression:
Stored size: 1.46 KB
Contents
### # wxRuby3 wxWidgets interface director # Copyright (c) M.J.N. Corino, The Netherlands ### require_relative './event_handler' module WXRuby3 class Director class TextValidator < EvtHandler def setup super # need a custom implementation to handle event handler proc cleanup spec.add_header_code <<~__HEREDOC class WXRubyTextValidator : public wxTextValidator { public: WXRubyTextValidator(const wxTextValidator& v) : wxTextValidator(v) {} WXRubyTextValidator(long style=wxFILTER_NONE, wxString *valPtr=NULL) : wxTextValidator(style, valPtr) {} virtual ~WXRubyTextValidator() { wxRuby_ReleaseEvtHandlerProcs(this); } }; __HEREDOC spec.use_class_implementation 'wxTextValidator', 'WXRubyTextValidator' spec.no_proxy 'wxTextValidator::Clone' spec.new_object 'wxTextValidator::Clone' # handle clone mapping spec.map 'wxObject *' => 'Wx::TextValidator' do map_out code: <<~__CODE $result = SWIG_NewPointerObj(SWIG_as_voidptr($1), SWIGTYPE_p_wxTextValidator, SWIG_POINTER_OWN | 0 ); __CODE end # not provided in Ruby spec.ignore %w[wxTextValidator::TransferFromWindow wxTextValidator::TransferToWindow] end end # class TextValidator end # class Director end # module WXRuby3
Version data entries
8 entries across 8 versions & 1 rubygems