X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5c5428f9132822d5d39b02c46dd89464adff9f1f..dc92adaf0c8d1d8b71b4a4cabe6f42c3a17f62a1:/docs/latex/wx/filetype.tex diff --git a/docs/latex/wx/filetype.tex b/docs/latex/wx/filetype.tex index 30d87dd941..9cbeb4f35a 100644 --- a/docs/latex/wx/filetype.tex +++ b/docs/latex/wx/filetype.tex @@ -152,13 +152,16 @@ function in the first place. \membersection{wxFileType::GetIcon}\label{wxfiletypegeticon} -\func{bool}{GetIcon}{\param{wxIcon*}{ icon}, \param{wxString*}{ iconFile = NULL}, \param{int*}{ iconIndex = NULL}, \param{int}{ iconSize = wxICON\_LARGE}} +\func{bool}{GetIcon}{\param{wxIconLocation *}{ iconLoc}} -If the function returns {\tt TRUE}, the icon associated with this file type will be -created and assigned to the {\it icon} parameter. {\it iconFile} is assigned the file name -that contains the icon and {\it iconIndex} is assigned the index of the icon -(windows and unix only). A 32x32 icon is assigned if {\it iconSize} is wxICON\_LARGE -and a 16x16 icon is assigned if {\it iconSize} is wxICON\_SMALL (windows only). +If the function returns {\tt true}, the {\tt iconLoc} is filled with the +location of the icon for this MIME type. A \helpref{wxIcon}{wxicon} may be +created from {\it iconLoc} later. + +{\bf Windows:} The function returns the icon shown by Explorer for the files of +the specified type. + +{\bf Mac:} This function is not implemented and always returns {\tt false}. {\bf Unix:} MIME manager gathers information about icons from GNOME and KDE settings and thus GetIcon's success depends on availability