![]() |
![]() |
![]() |
V_Sim API - Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Signals |
gtk_numericalEntryWidgetgtk_numericalEntryWidget — Defines a widget to enter numerical values without any boundary or precision constrains. |
#define NUMERICAL_ENTRY_TYPE #define NUMERICAL_ENTRY (obj) #define NUMERICAL_ENTRY_CLASS (klass) #define IS_NUMERICAL_ENTRY (obj) #define IS_NUMERICAL_ENTRY_CLASS (klass) NumericalEntry; NumericalEntryClass; GType numericalEntry_get_type (void
); GtkWidget* numericalEntry_new (double value
); void numericalEntrySet_value (NumericalEntry *numericalEntry
,double value
); double numericalEntryGet_value (NumericalEntry *numericalEntry
);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkEntry +----NumericalEntry
NumericalEntry implements AtkImplementorIface, GtkBuildable, GtkEditable and GtkCellEditable.
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.
#define NUMERICAL_ENTRY_TYPE (numericalEntry_get_type ())
Return the associated GType to the NumericalEntry objects.
#define NUMERICAL_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NUMERICAL_ENTRY_TYPE, NumericalEntry))
Cast the given object to a NumericalEntry object.
|
the widget to cast. |
#define NUMERICAL_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NUMERICAL_ENTRY_TYPE, NumericalEntryClass))
Cast the given class to a NumericalEntryClass object.
|
the class to cast. |
#define IS_NUMERICAL_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NUMERICAL_ENTRY_TYPE))
Return if the given object is a valid NumericalEntry object.
|
the object to test. |
#define IS_NUMERICAL_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NUMERICAL_ENTRY_TYPE))
Return if the given class is a valid NumericalEntryClass class.
|
the class to test. |
typedef struct _NumericalEntry NumericalEntry;
Short form for a NumericalEntry_struct structure.
typedef struct _NumericalEntryClass NumericalEntryClass;
Short form for a NumericalEntryClass_struct structure.
GType numericalEntry_get_type (void
);
GType are unique numbers to identify objects.
Returns : |
the GType associated with NumericalEntry objects. |
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. |
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. |
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. |
"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