module GtkAttributes
Public Instance Methods
default_attribute(gtk_attr)
click to toggle source
# File lib/GtkAttributes.rb, line 48 def default_attribute(gtk_attr) GtkAttributeStorage.instance.gtk_attribute(gtk_attr, "0", gtkobjecttype) end
gtk_attribute(gtk_attr)
click to toggle source
# File lib/GtkAttributes.rb, line 36 def gtk_attribute(gtk_attr) GtkAttributeStorage.instance.gtk_attribute(gtk_attr, gtkobjectid, gtkobjecttype) || GtkAttributeStorage.instance.gtk_attribute(gtk_attr, "0", gtkobjecttype) end
gtk_attribute_of_object(gtk_attr,gtkobject_id,gtkobject_type)
click to toggle source
# File lib/GtkAttributes.rb, line 40 def gtk_attribute_of_object(gtk_attr,gtkobject_id,gtkobject_type) GtkAttributeStorage.instance.gtk_attribute(gtk_attr, gtkobject_id, gtkobject_type) end
gtkobjectid()
click to toggle source
# File lib/GtkAttributes.rb, line 52 def gtkobjectid case self.class.name when "MyEditableList" then list_id.to_s when "MyColumn" then header["id"].to_s when "Myform::MyForm" then get_id.to_s when "MyButton" then properties["id"].to_s when "MyInputHolder","MyRendererList::List","MyRendererCombo","MyRendererConstCombo","FieldCombo" then item["id"].to_s else edebug("unsupported class in gtk_attributes: #{self.class.name} for #{self}","main","error") end end
gtkobjecttype()
click to toggle source
# File lib/GtkAttributes.rb, line 64 def gtkobjecttype case self.class.name when "MyEditableList" then "list" when "MyColumn" then "list_column" when "Myform::MyForm" then "form" when "MyButton" then "list-button" when "MyInputHolder","MyRendererList::List","MyRendererCombo","MyRendererConstCombo","FieldCombo" then "form-item" else edebug("unsupported class in gtk_attributes: #{self.class.name} for #{self}","main","error") end end
set_gtk_attribute(gtk_attr,gtk_attr_value)
click to toggle source
# File lib/GtkAttributes.rb, line 44 def set_gtk_attribute(gtk_attr,gtk_attr_value) GtkAttributeStorage.instance.set_gtk_attribute(gtk_attr,gtk_attr_value, gtkobjectid, gtkobjecttype) end