Module: Gtk::CellLayout
- Defined in:
- lib/gtk3/cell-layout.rb
Instance Method Summary collapse
- #add_attribute(cell, name, value) ⇒ Object
- #add_attribute_raw ⇒ Object
- #set_attributes(cell, attributes) ⇒ Object
Instance Method Details
#add_attribute(cell, name, value) ⇒ Object
26 27 28 29 |
# File 'lib/gtk3/cell-layout.rb', line 26 def add_attribute(cell, name, value) name = name.to_s if name.is_a?(Symbol) add_attribute_raw(cell, name, value) end |
#add_attribute_raw ⇒ Object
25 |
# File 'lib/gtk3/cell-layout.rb', line 25 alias_method :add_attribute_raw, :add_attribute |
#set_attributes(cell, attributes) ⇒ Object
19 20 21 22 23 |
# File 'lib/gtk3/cell-layout.rb', line 19 def set_attributes(cell, attributes) attributes.each do |key, value| add_attribute(cell, key, value) end end |