.. include:: headings.inc .. _IconLocation: ========================================================================================================================================== |phoenix_title| **IconLocation** ========================================================================================================================================== :ref:`IconLocation` is a tiny class describing the location of an (external, i.e. not embedded into the application resources) icon. For most platforms it simply contains the file name but under some others (notably Windows) the same file may contain multiple icons and so this class also stores the index of the icon inside the file. In any case, its details should be of no interest to the application code and most of them are not even documented here (on purpose) as it is only meant to be used as an opaque class: the application may get the object of this class from somewhere and the only reasonable thing to do with it later is to create a :ref:`Icon` from it. .. seealso:: :ref:`Icon`, :meth:`FileType.GetIcon` | |class_hierarchy| Inheritance Diagram ===================================== Inheritance diagram for class **IconLocation** .. raw:: html

Inheritance diagram of IconLocation

| |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~IconLocation.__init__` :meth:`~IconLocation.GetFileName` :meth:`~IconLocation.GetIndex` :meth:`~IconLocation.IsOk` Returns ``True`` if the object is valid, i.e. :meth:`~IconLocation.SetFileName` :meth:`~IconLocation.SetIndex` :meth:`~IconLocation.__nonzero__` ================================================================================ ================================================================================ | |property_summary| Properties Summary ===================================== ================================================================================ ================================================================================ :attr:`~IconLocation.FileName` See :meth:`~IconLocation.GetFileName` and :meth:`~IconLocation.SetFileName` :attr:`~IconLocation.Index` See :meth:`~IconLocation.GetIndex` and :meth:`~IconLocation.SetIndex` ================================================================================ ================================================================================ | |api| Class API =============== .. class:: IconLocation(object) IconLocation is a tiny class describing the location of an (external, i.e. **Possible constructors**:: IconLocation() IconLocation(filename, num= 0) .. method:: __init__(self, *args, **kw) |overload| **Overloaded Implementations**: **~~~** **__init__** `(self)` **~~~** **__init__** `(self, filename, num= 0)` **~~~** .. method:: GetFileName(self) :rtype: `string` .. method:: GetIndex(self) :rtype: `int` .. method:: IsOk(self) Returns ``True`` if the object is valid, i.e. was properly initialized, and ``False`` otherwise. :rtype: `bool` .. method:: SetFileName(self, filename) :param `filename`: :type `filename`: string .. method:: SetIndex(self, num) .. method:: __nonzero__(self) :rtype: `int` .. attribute:: FileName See :meth:`~IconLocation.GetFileName` and :meth:`~IconLocation.SetFileName` .. attribute:: Index See :meth:`~IconLocation.GetIndex` and :meth:`~IconLocation.SetIndex`