gtk_numericalEntryWidget

gtk_numericalEntryWidget

Synopsis

typedef             NumericalEntry;
struct              NumericalEntry_struct;
GtkWidget*          numericalEntry_new                  (double value);
double              numericalEntryGet_value             (NumericalEntry *numericalEntry);
void                numericalEntrySet_value             (NumericalEntry *numericalEntry,
                                                         double value);

Description

Details

NumericalEntry

typedef struct NumericalEntry_struct        NumericalEntry;

Short form for a NumericalEntry_struct structure.


struct NumericalEntry_struct

struct NumericalEntry_struct;

Private structure to store informations of a NumericalEntry object.


numericalEntry_new ()

GtkWidget*          numericalEntry_new                  (double value);

A NumericalEntry widget is like a GtkEntry widget, but it only accepts double precision values (written in plain format, e.g. 1.23456, or scientific notation, e.g. 1.2345e6). The widget can(t be blank and there is always a value printed in it. If the user erase the current value or enter something that is not a recognised double precision value, the widget returns to its previous valid value.

value :

the initial value.

Returns :

a newly created NumericalEntry widget.

numericalEntryGet_value ()

double              numericalEntryGet_value             (NumericalEntry *numericalEntry);

You can get the value contained in the given numericalEntry using this method.

numericalEntry :

a NumericalEntry widget.

Returns :

the double precision value printed in the NumericalEntry.

numericalEntrySet_value ()

void                numericalEntrySet_value             (NumericalEntry *numericalEntry,
                                                         double value);

Use this method to set the value for the given numericalEntry widget.

numericalEntry :

a NumericalEntry widget ;

value :

a double precision value.