Class: Tk::Iwidgets::Spinner (Ruby 2.3.4)

In Files

  • tk/lib/tkextlib/iwidgets/spinner.rb

Class/Module Index [+]

Quicksearch

Tk::Iwidgets::Spinner

Public Instance Methods

__validation_class_list()
 
               # File tk/lib/tkextlib/iwidgets/spinner.rb, line 68
def __validation_class_list
  super() << EntryfieldValidate
end
            
clear()
 
               # File tk/lib/tkextlib/iwidgets/spinner.rb, line 86
def clear
  tk_call_without_enc(@path, 'clear')
  self
end
            
cursor=(index)
 
               # File tk/lib/tkextlib/iwidgets/spinner.rb, line 107
def cursor=(index)
  tk_send_without_enc('icursor', index)
  #self
  index
end
            
Also aliased as: icursor
delete(first, last=None)
 
               # File tk/lib/tkextlib/iwidgets/spinner.rb, line 91
def delete(first, last=None)
  tk_send_without_enc('delete', first, last)
  self
end
            
down()
 
               # File tk/lib/tkextlib/iwidgets/spinner.rb, line 81
def down
  tk_call_without_enc(@path, 'down')
  self
end
            
dragto(pos)
 
               # File tk/lib/tkextlib/iwidgets/spinner.rb, line 127
def dragto(pos)
  tk_send_without_enc('scan', 'dragto', pos)
  self
end
            
get()
Alias for: value
icursor(index)
Alias for: cursor=
index(idx)
 
               # File tk/lib/tkextlib/iwidgets/spinner.rb, line 114
def index(idx)
  number(tk_send_without_enc('index', idx))
end
            
insert(pos,text)
 
               # File tk/lib/tkextlib/iwidgets/spinner.rb, line 118
def insert(pos,text)
  tk_send_without_enc('insert', pos, _get_eval_enc_str(text))
  self
end
            
mark(pos)
 
               # File tk/lib/tkextlib/iwidgets/spinner.rb, line 123
def mark(pos)
  tk_send_without_enc('scan', 'mark', pos)
  self
end
            
selection_adjust(index)
 
               # File tk/lib/tkextlib/iwidgets/spinner.rb, line 131
def selection_adjust(index)
  tk_send_without_enc('selection', 'adjust', index)
  self
end
            
selection_clear()
 
               # File tk/lib/tkextlib/iwidgets/spinner.rb, line 135
def selection_clear
  tk_send_without_enc('selection', 'clear')
  self
end
            
selection_from(index)
 
               # File tk/lib/tkextlib/iwidgets/spinner.rb, line 139
def selection_from(index)
  tk_send_without_enc('selection', 'from', index)
  self
end
            
selection_present()
 
               # File tk/lib/tkextlib/iwidgets/spinner.rb, line 143
def selection_present()
  bool(tk_send_without_enc('selection', 'present'))
end
            
selection_range(s, e)
 
               # File tk/lib/tkextlib/iwidgets/spinner.rb, line 146
def selection_range(s, e)
  tk_send_without_enc('selection', 'range', s, e)
  self
end
            
selection_to(index)
 
               # File tk/lib/tkextlib/iwidgets/spinner.rb, line 150
def selection_to(index)
  tk_send_without_enc('selection', 'to', index)
  self
end
            
set(val)
Alias for: value=
up()
 
               # File tk/lib/tkextlib/iwidgets/spinner.rb, line 76
def up
  tk_call_without_enc(@path, 'up')
  self
end
            
value()
 
               # File tk/lib/tkextlib/iwidgets/spinner.rb, line 96
def value
  _fromUTF8(tk_send_without_enc('get'))
end
            
Also aliased as: get
value=(val)
 
               # File tk/lib/tkextlib/iwidgets/spinner.rb, line 99
def value= (val)
  tk_send_without_enc('delete', 0, 'end')
  tk_send_without_enc('insert', 0, _get_eval_enc_str(val))
  val
end
            
Also aliased as: set
xview(*index)

based on tk/scrollable.rb

 
               # File tk/lib/tkextlib/iwidgets/spinner.rb, line 156
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)
 
               # File tk/lib/tkextlib/iwidgets/spinner.rb, line 164
def xview_moveto(*index)
  xview('moveto', *index)
end
            
xview_scroll(*index)
 
               # File tk/lib/tkextlib/iwidgets/spinner.rb, line 167
def xview_scroll(*index)
  xview('scroll', *index)
end