Sha256: abfbd645b8704462fd2d303da7687192fc7e2adc81d5ddc7a6cec03780367763
Contents?: true
Size: 851 Bytes
Versions: 9
Compression:
Stored size: 851 Bytes
Contents
### # wxRuby3 wxWidgets interface director # Copyright (c) M.J.N. Corino, The Netherlands ### require_relative './window' module WXRuby3 class Director class DatePickerCtrl < Window include Typemap::DateTime def setup super # Custom implementation for Ruby spec.ignore 'wxDatePickerCtrl::GetRange' spec.add_extend_code 'wxDatePickerCtrl', <<~__HEREDOC VALUE get_range() { wxDateTime dt1, dt2; $self->GetRange(&dt1, &dt2); VALUE items = rb_ary_new(); rb_ary_push(items, wxRuby_wxDateTimeToRuby(dt1)); rb_ary_push(items, wxRuby_wxDateTimeToRuby(dt2)); return items; } __HEREDOC end end # class DatePickerCtrl end # class Director end # module WXRuby3
Version data entries
9 entries across 9 versions & 1 rubygems