Top |
GtkWidget * | hdy_keypad_new () |
void | hdy_keypad_show_symbols () |
void | hdy_keypad_set_entry () |
GtkWidget * | hdy_keypad_get_entry () |
void | hdy_keypad_set_left_action () |
void | hdy_keypad_set_right_action () |
GtkWidget * | entry | Read / Write |
GtkWidget * | left-action | Write |
gboolean | only-digits | Read / Write |
GtkWidget * | right-action | Write |
gboolean | show-symbols | Read / Write |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkGrid ╰── HdyKeypad
The HdyKeypad widget is a keypad for entering numbers such as phone numbers or PIN codes.
This widget should not be altered using the GtkGrid and GtkContainer APIs, they are considered internal to this widget, using them externally will lead to unexpected results.
GtkWidget * hdy_keypad_new (gboolean only_digits
,gboolean show_symbols
);
Create a new HdyKeypad widget.
void hdy_keypad_show_symbols (HdyKeypad *self
,gboolean visible
);
Sets the visibility of symbols (excluding the main digit) on each button in the HdyKeypad
void hdy_keypad_set_entry (HdyKeypad *self
,GtkEntry *entry
);
Binds a GtkEntry to the keypad and it blocks every input which wouldn't be possible to type with with the keypad
GtkWidget *
hdy_keypad_get_entry (HdyKeypad *self
);
Get the connected entry. See hdy_keypad_set_entry()
for details
void hdy_keypad_set_left_action (HdyKeypad *self
,GtkWidget *widget
);
Sets the widget for the left lower corner of HdyKeypad replacing the existing widget, if NULL it just removes whatever widget is there
“entry”
property“entry” GtkWidget *
The entry widget connected to the keypad.
Owner: HdyKeypad
Flags: Read / Write
“left-action”
property“left-action” GtkWidget *
The left action widget.
Owner: HdyKeypad
Flags: Write
“only-digits”
property“only-digits” gboolean
Whether the keypad should show only digits or also extra buttons for #, *.
Owner: HdyKeypad
Flags: Read / Write
Default value: FALSE
“right-action”
property“right-action” GtkWidget *
The right action widget.
Owner: HdyKeypad
Flags: Write
“show-symbols”
property“show-symbols” gboolean
Whether the second line of symbols should be shown or not.
Owner: HdyKeypad
Flags: Read / Write
Default value: TRUE