Class | Tk::Iwidgets::Spinner
In: | tk/lib/tkextlib/iwidgets/spinner.rb
Parent: | Tk::Iwidgets::Labeledwidget

### Methods

__validation_class_list clear cursor= delete down dragto get icursor index insert mark selection_adjust selection_clear selection_from selection_present selection_range selection_to set up value value= xview xview_moveto xview_scroll

### Included Modules

Tk::ValidateConfigure

### Classes and Modules

Class Tk::Iwidgets::Spinner::EntryfieldValidate

### Constants

TkCommandNames | = | ['::iwidgets::spinner'.freeze].freeze
WidgetClassName | = | 'Spinner'.freeze

### Public Instance methods

__validation_class_list()

[Source]

    # File tk/lib/tkextlib/iwidgets/spinner.rb, line 48
      def __validation_class_list
        super() << EntryfieldValidate
      end

clear()

[Source]

    # File tk/lib/tkextlib/iwidgets/spinner.rb, line 66
      def clear
        tk_call_without_enc(@path, 'clear')
        self
      end

cursor=(index)

[Source]

    # File tk/lib/tkextlib/iwidgets/spinner.rb, line 87
      def cursor=(index)
        tk_send_without_enc('icursor', index)
        #self
        index
      end

delete(first, last=None)

[Source]

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

down()

[Source]

    # File tk/lib/tkextlib/iwidgets/spinner.rb, line 61
      def down
        tk_call_without_enc(@path, 'down')
        self
      end

dragto(pos)

[Source]

    # File tk/lib/tkextlib/iwidgets/spinner.rb, line 107
      def dragto(pos)
        tk_send_without_enc('scan', 'dragto', pos)
        self
      end

get()

Alias for value

icursor(index)

Alias for cursor=

index(idx)

[Source]

    # File tk/lib/tkextlib/iwidgets/spinner.rb, line 94
      def index(idx)
        number(tk_send_without_enc('index', idx))
      end

insert(pos,text)

[Source]

    # File tk/lib/tkextlib/iwidgets/spinner.rb, line 98
      def insert(pos,text)
        tk_send_without_enc('insert', pos, _get_eval_enc_str(text))
        self
      end

mark(pos)

[Source]

    # File tk/lib/tkextlib/iwidgets/spinner.rb, line 103
      def mark(pos)
        tk_send_without_enc('scan', 'mark', pos)
        self
      end

selection_adjust(index)

[Source]

    # File tk/lib/tkextlib/iwidgets/spinner.rb, line 111
      def selection_adjust(index)
        tk_send_without_enc('selection', 'adjust', index)
        self
      end

selection_clear()

[Source]

    # File tk/lib/tkextlib/iwidgets/spinner.rb, line 115
      def selection_clear
        tk_send_without_enc('selection', 'clear')
        self
      end

selection_from(index)

[Source]

    # File tk/lib/tkextlib/iwidgets/spinner.rb, line 119
      def selection_from(index)
        tk_send_without_enc('selection', 'from', index)
        self
      end

selection_present()

[Source]

    # File tk/lib/tkextlib/iwidgets/spinner.rb, line 123
      def selection_present()
        bool(tk_send_without_enc('selection', 'present'))
      end

selection_range(s, e)

[Source]

    # File tk/lib/tkextlib/iwidgets/spinner.rb, line 126
      def selection_range(s, e)
        tk_send_without_enc('selection', 'range', s, e)
        self
      end

selection_to(index)

[Source]

    # File tk/lib/tkextlib/iwidgets/spinner.rb, line 130
      def selection_to(index)
        tk_send_without_enc('selection', 'to', index)
        self
      end

set(val)

Alias for value=

up()

[Source]

    # File tk/lib/tkextlib/iwidgets/spinner.rb, line 56
      def up
        tk_call_without_enc(@path, 'up')
        self
      end

value()

[Source]

    # File tk/lib/tkextlib/iwidgets/spinner.rb, line 76
      def value
        _fromUTF8(tk_send_without_enc('get'))
      end

value=(val)

[Source]

    # File tk/lib/tkextlib/iwidgets/spinner.rb, line 79
      def value= (val)
        tk_send_without_enc('delete', 0, 'end')
        tk_send_without_enc('insert', 0, _get_eval_enc_str(val))
        val
      end

xview(*index)

based on tk/scrollable.rb

[Source]

    # File tk/lib/tkextlib/iwidgets/spinner.rb, line 136
      def xview(*index)
        if index.size == 0
          list(tk_send_without_enc('xview'))
        else
          tk_send_without_enc('xview', *index)
          self
        end
      end

xview_moveto(*index)

[Source]

    # File tk/lib/tkextlib/iwidgets/spinner.rb, line 144
      def xview_moveto(*index)
        xview('moveto', *index)
      end

xview_scroll(*index)

[Source]

    # File tk/lib/tkextlib/iwidgets/spinner.rb, line 147
      def xview_scroll(*index)
        xview('scroll', *index)
      end

[Validate]