Class: KDE::IconLoader
Class Method Summary (collapse)
- + (Object) load_icon(name, hash = {})
- + (Object) load_mime_type_pixmap(name, hash = {})
- + (Object) load_pixmap(name, hash = {})
- + (Object) pixmap_path(name, group = Small, allow_null = true)
Class Method Details
+ (Object) load_icon(name, hash = {})
139 140 141 142 |
# File 'lib/ruber/kde_sugar.rb', line 139 def self.load_icon name, hash = {} pix = load_pixmap name, hash Qt::Icon.new pix end |
+ (Object) load_mime_type_pixmap(name, hash = {})
132 133 134 135 136 137 |
# File 'lib/ruber/kde_sugar.rb', line 132 def self.load_mime_type_pixmap name, hash = {} args = {:group => Small, :size => 0, :state => DefaultState, :overlays => []} args.merge! hash pix = global.load_mime_type_icon name, args[:group], args[:size], args[:state], args[:overlays], nil end |
+ (Object) load_pixmap(name, hash = {})
125 126 127 128 129 130 |
# File 'lib/ruber/kde_sugar.rb', line 125 def self.load_pixmap name, hash = {} args = {:null_icon => true, :group => Small, :size => 0, :state => DefaultState, :overlays => []} args.merge! hash pix = global.load_icon name, args[:group], args[:size], args[:state], args[:overlays], nil, args[:null_icon] end |
+ (Object) pixmap_path(name, group = Small, allow_null = true)
144 145 146 |
# File 'lib/ruber/kde_sugar.rb', line 144 def self.pixmap_path name, group = Small, allow_null = true global.icon_path name, group, allow_null end |