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

Version Path
wxruby3-0.9.0.pre.rc.3 rakelib/lib/director/date_picker_ctrl.rb
wxruby3-0.9.0.pre.rc.2 rakelib/lib/director/date_picker_ctrl.rb
wxruby3-0.9.0.pre.rc.1 rakelib/lib/director/date_picker_ctrl.rb
wxruby3-0.9.0.pre.beta.14 rakelib/lib/director/date_picker_ctrl.rb
wxruby3-0.9.0.pre.beta.13 rakelib/lib/director/date_picker_ctrl.rb
wxruby3-0.9.0.pre.beta.11 rakelib/lib/director/date_picker_ctrl.rb
wxruby3-0.9.0.pre.beta.10 rakelib/lib/director/date_picker_ctrl.rb
wxruby3-0.9.0.pre.beta.9 rakelib/lib/director/date_picker_ctrl.rb
wxruby3-0.9.0.pre.beta.8 rakelib/lib/director/date_picker_ctrl.rb