mirror of
https://github.com/fltk/fltk.git
synced 2026-05-28 11:25:22 +08:00
Added examples for Fl::option() methods
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9836 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+14
@@ -1931,6 +1931,14 @@ void Fl::clear_widget_pointer(Fl_Widget const *w)
|
|||||||
There should be an application that manages options system wide, per user, and
|
There should be an application that manages options system wide, per user, and
|
||||||
per application.
|
per application.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
\code
|
||||||
|
if ( Fl::option(Fl::OPTION_ARROW_FOCUS) )
|
||||||
|
{ ..on.. }
|
||||||
|
else
|
||||||
|
{ ..off.. }
|
||||||
|
\endcode
|
||||||
|
|
||||||
\note As of FLTK 1.3.0, options can be managed within fluid, using the menu
|
\note As of FLTK 1.3.0, options can be managed within fluid, using the menu
|
||||||
<i>Edit/Global FLTK Settings</i>.
|
<i>Edit/Global FLTK Settings</i>.
|
||||||
|
|
||||||
@@ -1992,6 +2000,12 @@ bool Fl::option(Fl_Option opt)
|
|||||||
|
|
||||||
This function does not change any system or user settings.
|
This function does not change any system or user settings.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
\code
|
||||||
|
Fl::option(Fl::OPTION_ARROW_FOCUS, true); // on
|
||||||
|
Fl::option(Fl::OPTION_ARROW_FOCUS, false); // off
|
||||||
|
\endcode
|
||||||
|
|
||||||
\param opt which option
|
\param opt which option
|
||||||
\param val set to true or false
|
\param val set to true or false
|
||||||
\see enum Fl::Fl_Option
|
\see enum Fl::Fl_Option
|
||||||
|
|||||||
Reference in New Issue
Block a user