Attempt to add doygen comments to the description of fl_text_extents to clarify its usage, as suggested by Greg
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6662 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
24f313298f
commit
d106068911
15
FL/fl_draw.H
15
FL/fl_draw.H
@ -215,9 +215,18 @@ FL_EXPORT double fl_width(const char* txt, int n);
|
||||
\note if a valid fl_gc is NOT found then it uses the first window gc,
|
||||
or the screen gc if no fltk window is available when called. */
|
||||
FL_EXPORT double fl_width(Fl_Unichar);
|
||||
/** Determine the minimum pixel dimensions of a nul-terminated string */
|
||||
FL_EXPORT void fl_text_extents(const char*, int& dx, int& dy, int& w, int& h); // NO fltk symbol expansion
|
||||
/** Determine the minimum pixel dimensions of a sequence of \a n characters */
|
||||
/** Determine the minimum pixel dimensions of a nul-terminated string.
|
||||
|
||||
Usage: given a string "txt" drawn using fl_draw(txt, x, y) you would determine
|
||||
its pixel extents on the display using fl_text_extents(txt, dx, dy, wo, ho)
|
||||
such that a bounding box that exactly fits around the text could be drawn with
|
||||
fl_rect(x+dx, y+dy, wo, ho). Note the dx, dy values hold the offset of the first
|
||||
"colored in" pixel of the string, from the draw origin.
|
||||
*/
|
||||
FL_EXPORT void fl_text_extents(const char*, int& dx, int& dy, int& w, int& h); // NO fltk symbol expansion will be performed
|
||||
/** Determine the minimum pixel dimensions of a sequence of \a n characters.
|
||||
\see fl_text_extents(const char*, int& dx, int& dy, int& w, int& h)
|
||||
*/
|
||||
FL_EXPORT void fl_text_extents(const char*, int n, int& dx, int& dy, int& w, int& h);
|
||||
|
||||
// font encoding:
|
||||
|
Loading…
x
Reference in New Issue
Block a user