#include <Fl_Data_Fields.h>
Public Methods | |
Fl_Data_Field (const char *name) | |
const Fl_String & | name () const |
Fl_Variant_Type | type () const |
unsigned | buffer_size () const |
unsigned | data_size () const |
void | data_size (unsigned sz) |
bool | is_null () const |
operator int () const | |
operator double () const | |
operator Fl_String () const | |
operator Fl_Date_Time () const | |
operator const Fl_Image * () const | |
int | as_int () const |
double | as_float () const |
Fl_String | as_string () const |
bool | as_bool () const |
Fl_Date_Time | as_date () const |
Fl_Date_Time | as_datetime () const |
const Fl_Image * | as_image () const |
Fl_Data_Field & | operator= (int v) |
Fl_Data_Field & | operator= (double v) |
Fl_Data_Field & | operator= (Fl_String v) |
Fl_Data_Field & | operator= (Fl_Date_Time v) |
Fl_Data_Field & | operator= (const char *v) |
Fl_Data_Field & | operator= (const Fl_Image *v) |
Public Attributes | |
Fl_Variant | value |
int | width |
Field attributes are used when we need to convert a field data into something like Fl_ListView. More... | |
int | precision |
Fl_Flags | flags |
bool | visible |
Protected Attributes | |
Fl_String | m_name |
unsigned | m_dataSize |
Friends | |
class | Fl_Data_Fields |
Definition at line 32 of file Fl_Data_Fields.h.
|
Field attributes are used when we need to convert a field data into something like Fl_ListView. Width defines a width of the column, flags may contain an alignment of data, precision is used when we deal with floating point numbers. Precision defines # of digits after decimal point. Positive precision means fixed format, negative means a scientific format. If the visible flag is switched off, the field is not shown in Fl_ListView and similar classes. Definition at line 49 of file Fl_Data_Fields.h. |