class Tk::Tile::Scrollbar

Public Class Methods

new(parent = Tk.root, options = {}) click to toggle source
Calls superclass method Tk::Widget::new
# File lib/ffi-tk/widget/tile/scrollbar.rb, line 10
def initialize(parent = Tk.root, options = {})
  super
  scrollbar_default
end
tk_command() click to toggle source
# File lib/ffi-tk/widget/tile/scrollbar.rb, line 5
def self.tk_command
  'ttk::scrollbar'
end

Public Instance Methods

command(&block) click to toggle source
# File lib/ffi-tk/widget/tile/scrollbar.rb, line 25
def command(&block)
  configure(command: block) if block
end
orient(orientation = None) click to toggle source

Specifies the orientation of the scrollbar. horizontal or vertical

# File lib/ffi-tk/widget/tile/scrollbar.rb, line 17
def orient(orientation = None)
  if None == orientation
    cget(:orient)
  else
    configure orient: orientation
  end
end