Class: KDE::IconLoader

Inherits:
Object show all
Defined in:
lib/ruber/kde_sugar.rb

Class Method Summary (collapse)

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