Class: TopinambourColorSelector
- Inherits:
-
Gtk::Box
- Object
- Gtk::Box
- TopinambourColorSelector
- Defined in:
- lib/color_selector.rb
Instance Attribute Summary collapse
-
#colors ⇒ Object
readonly
Returns the value of attribute colors.
Instance Method Summary collapse
-
#initialize(window) ⇒ TopinambourColorSelector
constructor
A new instance of TopinambourColorSelector.
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) = pack_start(, :expand => false, :fill => false, :padding => 0) initialize_default_colors add_color_selectors = pack_start(, :expand => false, :fill => false, :padding => 0) show_all set_halign(:center) set_valign(:end) set_name("topinambour-color-selector") end |
Instance Attribute Details
#colors ⇒ Object (readonly)
Returns the value of attribute colors.
24 25 26 |
# File 'lib/color_selector.rb', line 24 def colors @colors end |