Class: TopinambourColorSelector

Inherits:
Gtk::Box
  • Object
show all
Defined in:
lib/color_selector.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(window) ⇒ TopinambourColorSelector

Returns a new instance of TopinambourColorSelector.



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/color_selector.rb', line 25

def initialize(window)
  @window = window
  super(:horizontal, 0)

  reset_button = generate_reset_button
  pack_start(reset_button, :expand => false, :fill => false, :padding => 0)

  initialize_default_colors
  add_color_selectors

  save_button = generate_save_button
  pack_start(save_button, :expand => false, :fill => false, :padding => 0)

  show_all
  set_halign(:center)
  set_valign(:end)
  set_name("topinambour-color-selector")
end

Instance Attribute Details

#colorsObject (readonly)

Returns the value of attribute colors.



24
25
26
# File 'lib/color_selector.rb', line 24

def colors
  @colors
end