Class: Tk::Iwidgets::Selectionbox

Class | Tk::Iwidgets::Selectionbox
In: | tk/lib/tkextlib/iwidgets/selectionbox.rb
Parent: | Tk::Itk::Widget

### Methods

child_site clear_items clear_selection curselection delete get index insert_items insert_selection nearest scan_dragto scan_mark select_item selection_anchor selection_clear selection_includes selection_set size

### Constants

TkCommandNames | = | ['::iwidgets::selectionbox'.freeze].freeze
WidgetClassName | = | 'Selectionbox'.freeze

### Public Instance methods

child_site()

[Source]

    # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 31
      def child_site
        window(tk_call(@path, 'childsite'))
      end

clear_items()

[Source]

    # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 35
      def clear_items
        tk_call(@path, 'clear', 'items')
        self
      end

clear_selection()

[Source]

    # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 40
      def clear_selection
        tk_call(@path, 'clear', 'selection')
        self
      end

curselection()

based on TkListbox ( and TkTextWin )

[Source]

    # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 63
      def curselection
        list(tk_send_without_enc('curselection'))
      end

delete(first, last=None)

[Source]

    # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 66
      def delete(first, last=None)
        tk_send_without_enc('delete', first, last)
        self
      end

get()

[Source]

    # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 45
      def get
        tk_call(@path, 'get')
      end

index(idx)

[Source]

    # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 70
      def index(idx)
        tk_send_without_enc('index', idx).to_i
      end

insert_items(idx, *args)

[Source]

    # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 49
      def insert_items(idx, *args)
        tk_call(@path, 'insert', 'items', idx, *args)
      end

insert_selection(pos, text)

[Source]

    # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 53
      def insert_selection(pos, text)
        tk_call(@path, 'insert', 'selection', pos, text)
      end

nearest(y)

[Source]

    # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 73
      def nearest(y)
        tk_send_without_enc('nearest', y).to_i
      end

scan_dragto(x, y)

[Source]

    # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 80
      def scan_dragto(x, y)
        tk_send_without_enc('scan', 'dragto', x, y)
        self
      end

scan_mark(x, y)

[Source]

    # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 76
      def scan_mark(x, y)
        tk_send_without_enc('scan', 'mark', x, y)
        self
      end

select_item()

[Source]

    # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 57
      def select_item
        tk_call(@path, 'selectitem')
        self
      end

selection_anchor(index)

[Source]

    # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 84
      def selection_anchor(index)
        tk_send_without_enc('selection', 'anchor', index)
        self
      end

selection_clear(first, last=None)

[Source]

    # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 88
      def selection_clear(first, last=None)
        tk_send_without_enc('selection', 'clear', first, last)
        self
      end

selection_includes(index)

[Source]

    # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 92
      def selection_includes(index)
        bool(tk_send_without_enc('selection', 'includes', index))
      end

selection_set(first, last=None)

[Source]

    # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 95
      def selection_set(first, last=None)
        tk_send_without_enc('selection', 'set', first, last)
        self
      end

size()

[Source]

    # File tk/lib/tkextlib/iwidgets/selectionbox.rb, line 99
      def size
        tk_send_without_enc('size').to_i
      end

[Validate]