Class: Gtk::ScaleButton

Inherits:
Object
  • Object
show all
Defined in:
lib/gtk4/scale-button.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ ScaleButton

Returns a new instance of ScaleButton.



20
21
22
23
24
25
26
# File 'lib/gtk4/scale-button.rb', line 20

def initialize(options={})
  min       = options[:min]   || 0
  max       = options[:max]   || 100
  step      = options[:step]  || 2
  icons     = options[:icons] || nil
  initialize_raw(min, max, step, icons)
end

Instance Method Details

#initialize_rawObject



19
# File 'lib/gtk4/scale-button.rb', line 19

alias_method :initialize_raw, :initialize