| V_Sim API - Reference Manual | ||||
|---|---|---|---|---|
NumericalEntryNumericalEntry — Defines a widget to enter numerical values without any boundary or precision constrains. |
NumericalEntry;
GtkWidget* numericalEntry_new (double value);
double numericalEntryGet_value (NumericalEntry *numericalEntry);
void numericalEntrySet_value (NumericalEntry *numericalEntry,
double value);
GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkEntry
+----NumericalEntry
NumericalEntry implements AtkImplementorIface, GtkBuildable, GtkCellEditable and GtkEditable.
This widget is based on the GtkEntry widget but behaves more like a GtkSpinButton is fact. It is designed to enter numerical values, but without any boundary or precision constrains. One can use either plain or scientific notations.
typedef struct _NumericalEntry NumericalEntry;
Short form for a NumericalEntry_struct structure.
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.
|
the initial value. |
Returns : |
a newly created NumericalEntry widget. |
double numericalEntryGet_value (NumericalEntry *numericalEntry);
You can get the value contained in the given numericalEntry using this method.
|
a NumericalEntry widget. |
Returns : |
the double precision value printed in the NumericalEntry. |
void numericalEntrySet_value (NumericalEntry *numericalEntry, double value);
Use this method to set the value for the given numericalEntry widget.
|
a NumericalEntry widget ; |
|
a double precision value. |
"value-changed" signalvoid user_function (NumericalEntry *entry, gdouble oldValue, gpointer user_data) : Run First / Action
This signal is emitted when a new valid numerical value is entered.
|
the NumericalEntry that emits the signal ; |
|
the previous value. |
|
user data set when the signal handler was connected. |
Since 3.1