diff options
| author | engelsman <engelsman> | 2008-10-04 12:21:46 +0000 |
|---|---|---|
| committer | engelsman <engelsman> | 2008-10-04 12:21:46 +0000 |
| commit | 0eb1ac797f7bb6aa66b19eb7a0383609ae2bc925 (patch) | |
| tree | 2dc32491ec104bc7e9218b5defe60c2e94a57546 /src/Fl_File_Icon.cxx | |
| parent | b40c69272fc4f788a7595b8834ab61dd6e2ba4f0 (diff) | |
added doxygen comments for undocumented features of Fl_File_Icon
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6371 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_File_Icon.cxx')
| -rw-r--r-- | src/Fl_File_Icon.cxx | 41 |
1 files changed, 30 insertions, 11 deletions
diff --git a/src/Fl_File_Icon.cxx b/src/Fl_File_Icon.cxx index 92c642eca..156881c3a 100644 --- a/src/Fl_File_Icon.cxx +++ b/src/Fl_File_Icon.cxx @@ -5,7 +5,7 @@ // // KDE icon code donated by Maarten De Boer. // -// Copyright 1999-2005 by Michael Sweet. +// Copyright 1999-2008 by Michael Sweet. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Library General Public @@ -82,10 +82,13 @@ Fl_File_Icon *Fl_File_Icon::first_ = (Fl_File_Icon *)0; /** - The constructor creates a new Fl_File_Icon with the specified - information. + Creates a new Fl_File_Icon with the specified information. + \param[in] p filename pattern + \param[in] t file type + \param[in] nd number of data values + \param[in] d data values */ -Fl_File_Icon::Fl_File_Icon(const char *p, /**< I - Filename pattern */ +Fl_File_Icon::Fl_File_Icon(const char *p, /* I - Filename pattern */ int t, /* I - File type */ int nd, /* I - Number of data values */ short *d) /* I - Data values */ @@ -143,7 +146,10 @@ Fl_File_Icon::~Fl_File_Icon() { } -/** Adds a keyword value to the icon array, returning a pointer to it.*/ +/** + Adds a keyword value to the icon array, returning a pointer to it. + \param[in] d data value +*/ short * // O - Pointer to new data value Fl_File_Icon::add(short d) // I - Data to add { @@ -174,7 +180,12 @@ Fl_File_Icon::add(short d) // I - Data to add } -/** Finds an icon that matches the given filename and file type.*/ +/** + Finds an icon that matches the given filename and file type. + \param[in] filename name of file + \param[in] filetype enumerated file type + \return matching file icon or NULL +*/ Fl_File_Icon * // O - Matching file icon or NULL Fl_File_Icon::find(const char *filename,// I - Name of file */ int filetype) // I - Enumerated file type @@ -236,7 +247,12 @@ Fl_File_Icon::find(const char *filename,// I - Name of file */ return (current); } -/** Drawsan icon. */ +/** + Draws an icon in the indicated area. + \param[in] x, y, w, h position and size + \param[in] ic icon color + \param[in] active status, default is active [non-zero] +*/ void Fl_File_Icon::draw(int x, // I - Upper-lefthand X int y, // I - Upper-lefthand Y @@ -438,6 +454,7 @@ Fl_File_Icon::draw(int x, // I - Upper-lefthand X /** Applies the icon to the widget, registering the Fl_File_Icon label type as needed. + \param[in] w widget for which this icon will become the label */ void Fl_File_Icon::label(Fl_Widget *w) // I - Widget to label { @@ -446,10 +463,12 @@ void Fl_File_Icon::label(Fl_Widget *w) // I - Widget to label } -// -// 'Fl_File_Icon::labeltype()' - Draw the icon label. -// - +/** + Draw the icon label. + \param[in] o label data + \param[in] x, y, w, h position and size of label + \param[in] a label alignment [not used] +*/ void Fl_File_Icon::labeltype(const Fl_Label *o, // I - Label data int x, // I - X position of label |
