Sha256: b3e831a3c080bdf282335a33cd57b360a1c46eb2e26da1171c81b16ff1ee9ea6

Contents?: true

Size: 1.07 KB

Versions: 6

Compression:

Stored size: 1.07 KB

Contents

###
# wxRuby3 wxWidgets interface director
# Copyright (c) M.J.N. Corino, The Netherlands
###

require_relative './ctrl_with_items'

module WXRuby3

  class Director

    class ComboBox < ControlWithItems

      def setup
        super
        setup_ctrl_with_items('wxComboBox')
        # mixin TextEntry
        spec.include_mixin 'wxComboBox', 'Wx::TextEntry'
        spec.override_inheritance_chain('wxComboBox',
                                        %w[wxControlWithItems
                                           wxControl
                                           wxWindow
                                           wxEvtHandler
                                           wxObject])
        spec.ignore(%w[
          wxComboBox::IsEmpty])
        spec.rename_for_ruby(
          'SetTextSelectionRange' => 'wxComboBox::SetSelection(long, long)',
          'GetTextSelectionRange' => 'wxComboBox::GetSelection(long *, long *) const')
        spec.map_apply 'long * OUTPUT' => [ 'long *from', 'long *to' ]
      end

    end # class ComboBox

  end # class Director

end # module WXRuby3

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
wxruby3-0.9.0.pre.beta.14 rakelib/lib/director/combobox.rb
wxruby3-0.9.0.pre.beta.13 rakelib/lib/director/combobox.rb
wxruby3-0.9.0.pre.beta.11 rakelib/lib/director/combobox.rb
wxruby3-0.9.0.pre.beta.10 rakelib/lib/director/combobox.rb
wxruby3-0.9.0.pre.beta.9 rakelib/lib/director/combobox.rb
wxruby3-0.9.0.pre.beta.8 rakelib/lib/director/combobox.rb