2008-03-08 08:52:38 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: iconloc.h
|
2008-03-10 11:24:38 -04:00
|
|
|
// Purpose: interface of wxIconLocation
|
2008-03-08 08:52:38 -05:00
|
|
|
// Author: wxWidgets team
|
2010-07-13 09:29:13 -04:00
|
|
|
// Licence: wxWindows licence
|
2008-03-08 08:52:38 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/**
|
|
|
|
@class wxIconLocation
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
wxIconLocation 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.
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
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 wxIcon from it.
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
@library{wxbase}
|
2008-10-15 11:36:15 -04:00
|
|
|
@category{gdi}
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-03-10 11:24:38 -04:00
|
|
|
@see wxIcon, wxFileType::GetIcon
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2008-03-08 09:43:31 -05:00
|
|
|
class wxIconLocation
|
2008-03-08 08:52:38 -05:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
/**
|
2012-11-30 19:14:07 -05:00
|
|
|
Returns @true if the object is valid, i.e.\ was properly initialized, and
|
2008-03-08 08:52:38 -05:00
|
|
|
@false otherwise.
|
|
|
|
*/
|
2008-03-09 12:24:26 -04:00
|
|
|
bool IsOk() const;
|
2011-11-16 22:20:25 -05:00
|
|
|
|
|
|
|
void SetFileName(const wxString& filename);
|
|
|
|
const wxString& GetFileName() const;
|
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
};
|
2008-03-10 11:24:38 -04:00
|
|
|
|