Top |
GtkWidget * | hdy_dialer_new () |
const gchar * | hdy_dialer_get_number () |
void | hdy_dialer_set_number () |
void | hdy_dialer_clear_number () |
gboolean | hdy_dialer_get_show_action_buttons () |
void | hdy_dialer_set_show_action_buttons () |
GtkReliefStyle | hdy_dialer_get_relief () |
void | hdy_dialer_set_relief () |
guint | column-spacing | Read / Write |
gchar * | number | Read / Write |
GtkReliefStyle | relief | Read / Write |
guint | row-spacing | Read / Write |
gboolean | show-action-buttons | Read / Write |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── HdyDialer
The HdyDialer widget is a keypad for entering numbers such as phone numbers or PIN codes.
GtkWidget *
hdy_dialer_new (void
);
hdy_dialer_new
has been deprecated since version 0.0.12 and should not be used in newly-written code.
use HdyKeypad instead
Create a new HdyDialer widget.
const gchar *
hdy_dialer_get_number (HdyDialer *self
);
hdy_dialer_get_number
has been deprecated since version 0.0.12 and should not be used in newly-written code.
use HdyKeypad instead
Get the currently displayed number.
void hdy_dialer_set_number (HdyDialer *self
,const char *number
);
hdy_dialer_set_number
has been deprecated since version 0.0.12 and should not be used in newly-written code.
use HdyKeypad instead
Set the currently displayed number.
void
hdy_dialer_clear_number (HdyDialer *self
);
hdy_dialer_clear_number
has been deprecated since version 0.0.12 and should not be used in newly-written code.
use HdyKeypad instead
Set the current number to the empty string. When the number is already cleared no action is performed.
gboolean
hdy_dialer_get_show_action_buttons (HdyDialer *self
);
hdy_dialer_get_show_action_buttons
has been deprecated since version 0.0.12 and should not be used in newly-written code.
use HdyKeypad instead
Get whether the submit and delete buttons are to be shown.
void hdy_dialer_set_show_action_buttons (HdyDialer *self
,gboolean show
);
hdy_dialer_set_show_action_buttons
has been deprecated since version 0.0.12 and should not be used in newly-written code.
use HdyKeypad instead
Set whether to show the submit and delete buttons.
GtkReliefStyle
hdy_dialer_get_relief (HdyDialer *self
);
hdy_dialer_get_relief
has been deprecated since version 0.0.12 and should not be used in newly-written code.
use HdyKeypad instead
Returns the current relief style of the main buttons for the given HdyDialer.
void hdy_dialer_set_relief (HdyDialer *self
,GtkReliefStyle relief
);
hdy_dialer_set_relief
has been deprecated since version 0.0.12 and should not be used in newly-written code.
use HdyKeypad instead
Sets the relief style of the edges of the main buttons for the given
HdyDialer widget.
Two styles exist, GTK_RELIEF_NORMAL
and GTK_RELIEF_NONE
.
The default style is, as one can guess, GTK_RELIEF_NORMAL
.
self |
The HdyDialer whose main buttons you want to set relief styles of |
|
relief |
The GtkReliefStyle as described above |
struct HdyDialerClass { GtkBinClass parent_class; /* Signals */ void (*submitted) (HdyDialer *self, const gchar *number); };
HdyDialerClass
is deprecated and should not be used in newly-written code.
“column-spacing”
property“column-spacing” guint
The amount of space between two consecutive columns.
Flags: Read / Write
Default value: 0
“number”
property“number” gchar *
The phone number to dial.
Flags: Read / Write
Default value: ""
“relief”
property“relief” GtkReliefStyle
The relief style of the edges of the main buttons.
Flags: Read / Write
Default value: GTK_RELIEF_NORMAL
“row-spacing”
property“row-spacing” guint
The amount of space between two consecutive rows.
Flags: Read / Write
Default value: 0
“show-action-buttons”
property“show-action-buttons” gboolean
Whether to show the submit and delete buttons.
Flags: Read / Write
Default value: TRUE
“deleted”
signalvoid user_function (HdyDialer *self, gpointer user_data)
This signal is emitted when the dialer's 'deleted' button is clicked to delete the last symbol.
self |
The HdyDialer instance. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“submitted”
signalvoid user_function (HdyDialer *self, gchar *number, gpointer user_data)
This signal is emitted when the dialer's 'dial' button is activated. Connect to this signal to perform to get notified when the user wants to submit the dialed number.
self |
The HdyDialer instance. |
|
number |
The number at the time of activation. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“symbol-clicked”
signalvoid user_function (HdyDialer *self, gchar button, gpointer user_data)
This signal is emitted when one of the symbol buttons (0-9, # or *) is clicked. Connect to this signal to find out which button was pressed. This doesn't take any cycling modes into account. So the button with "*" and "+" on it will always send "*". Delete and Submit buttons will not trigger this signal.
self |
The HdyDialer instance. |
|
button |
The main symbol on the button that was clicked |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last