fltk 1.3.0rc3
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. Release candidate.
  SfR Fresh Dox: fltk-1.3.0rc3-source.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation)  

Flcc_Value_Input Class Reference

#include <Fl_Color_Chooser.H>

Inheritance diagram for Flcc_Value_Input:
Collaboration diagram for Flcc_Value_Input:

List of all members.

Public Member Functions

int format (char *)
 Flcc_Value_Input (int X, int Y, int W, int H)

Detailed Description

For internal use only

Definition at line 71 of file Fl_Color_Chooser.H.


Constructor & Destructor Documentation

Flcc_Value_Input::Flcc_Value_Input ( int  X,
int  Y,
int  W,
int  H 
) [inline]

Definition at line 74 of file Fl_Color_Chooser.H.


Member Function Documentation

int Flcc_Value_Input::format ( char *  buffer) [virtual]

Uses internal rules to format the fields numerical value into the character array pointed to by the passed parameter.

The actual format used depends on the current step value. If the step value has been set to zero then a g format is used. If the step value is non-zero, then a %.*f format is used, where the precision is calculated to show sufficient digits for the current step value. An integer step value, such as 1 or 1.0, gives a precision of 0, so the formatted value will appear as an integer.

This method is used by the Fl_Value_... group of widgets to format the current value into a text string. The return value is the length of the formatted text. The formatted value is written into in buffer. buffer should have space for at least 128 bytes.

You may override this function to create your own text formatting.

Reimplemented from Fl_Valuator.

Definition at line 112 of file Fl_Color_Chooser.cxx.

References M_HEX, Fl_Color_Chooser::mode(), Fl_Widget::parent(), and Fl_Valuator::value().


The documentation for this class was generated from the following files: