Sha256: 210f8a371271345e1d8c58cabc6d84fea09674be89b5165aa581833cd060b0d6

Contents?: true

Size: 1.64 KB

Versions: 13

Compression:

Stored size: 1.64 KB

Contents

module Fox
  #
  # The Icon Dictionary manages a collection of icons.  The icons are referenced
  # by their file name.  When first encountering a new file name, the icon is
  # located by searching the icon search path for the icon file.  If found, the
  # services of the icon source object are used to load the icon from the file.
  # A custom icon source may be installed to furnish support for additonal 
  # image file formats.
  # Once the icon is loaded, an association between the icon name and the icon
  # is entered into the icon dictionary.  Subsequent searches for an icon with
  # this name will be satisfied from the cached value.
  # The lifetype of the icons is managed by the icon dictionary, and thus all
  # icons will be deleted when the dictionary is deleted.
  #
  class FXIconDict < FXDict

    # Return the default icon search path (as a string)
    def FXIconDict.defaultIconPath; end

    #
    # Construct icon dictionary, and set initial search path; also
    # creates a default icon source object.
    #
    def initialize(app, path=defaultIconPath);

    # Change icon source to _src_ (an FXIconSource instance).
    def iconSource=(src); end

    # Return icon source
    def iconSource; end

    # Set icon search path
    def iconPath=(path); end

    # Return current icon search path
    def iconPath; end

    # Insert unique icon loaded from _filename_ into dictionary, and return a reference to the icon (an FXIcon instance).
    def insert(filename); end

    # Remove icon from dictionary; returns a reference to the icon.
    def remove(name); end

    # Find icon by name and return a reference to it.
    def find(name); end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
fxruby-1.4.6 rdoc-sources/FXIconDict.rb
fxruby-1.4.7 rdoc-sources/FXIconDict.rb
fxruby-1.6.0 rdoc-sources/FXIconDict.rb
fxruby-1.6.1 rdoc-sources/FXIconDict.rb
fxruby-1.6.10 rdoc-sources/FXIconDict.rb
fxruby-1.6.2 rdoc-sources/FXIconDict.rb
fxruby-1.6.3 rdoc-sources/FXIconDict.rb
fxruby-1.6.4 rdoc-sources/FXIconDict.rb
fxruby-1.6.5 rdoc-sources/FXIconDict.rb
fxruby-1.6.6 rdoc-sources/FXIconDict.rb
fxruby-1.6.8 rdoc-sources/FXIconDict.rb
fxruby-1.6.7 rdoc-sources/FXIconDict.rb
fxruby-1.6.9 rdoc-sources/FXIconDict.rb