Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | hdy_keypad_new () |
void | hdy_keypad_set_row_spacing () |
guint | hdy_keypad_get_row_spacing () |
void | hdy_keypad_set_column_spacing () |
guint | hdy_keypad_get_column_spacing () |
void | hdy_keypad_set_letters_visible () |
gboolean | hdy_keypad_get_letters_visible () |
void | hdy_keypad_set_symbols_visible () |
gboolean | hdy_keypad_get_symbols_visible () |
void | hdy_keypad_set_entry () |
GtkEntry * | hdy_keypad_get_entry () |
void | hdy_keypad_set_start_action () |
GtkWidget * | hdy_keypad_get_start_action () |
void | hdy_keypad_set_end_action () |
GtkWidget * | hdy_keypad_get_end_action () |
guint | column-spacing | Read / Write |
GtkWidget * | end-action | Read / Write |
GtkEntry * | entry | Read / Write |
gboolean | letters-visible | Read / Write |
guint | row-spacing | Read / Write |
GtkWidget * | start-action | Read / Write |
gboolean | symbols-visible | Read / Write |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── HdyKeypad
The HdyKeypad widget is a keypad for entering numbers such as phone numbers or PIN codes.
GtkWidget * hdy_keypad_new (gboolean symbols_visible
,gboolean letters_visible
);
Create a new HdyKeypad widget.
symbols_visible |
whether the hash, plus, and asterisk symbols should be visible |
|
letters_visible |
whether the letters below the digits should be visible |
Since: 0.0.12
void hdy_keypad_set_row_spacing (HdyKeypad *self
,guint spacing
);
Sets the amount of space between rows of self
.
Since: 1.0
guint
hdy_keypad_get_row_spacing (HdyKeypad *self
);
Returns the amount of space between the rows of self
.
Since: 1.0
void hdy_keypad_set_column_spacing (HdyKeypad *self
,guint spacing
);
Sets the amount of space between columns of self
.
Since: 1.0
guint
hdy_keypad_get_column_spacing (HdyKeypad *self
);
Returns the amount of space between the columns of self
.
Since: 1.0
void hdy_keypad_set_letters_visible (HdyKeypad *self
,gboolean letters_visible
);
Sets whether self
should display the standard letters below the digits on
its buttons.
Since: 1.0
gboolean
hdy_keypad_get_letters_visible (HdyKeypad *self
);
Returns whether self
should display the standard letters below the digits on
its buttons.
Since: 1.0
void hdy_keypad_set_symbols_visible (HdyKeypad *self
,gboolean symbols_visible
);
Sets whether self
should display the hash and asterisk buttons, and should
display the plus symbol at the bottom of its 0 button.
Since: 1.0
gboolean
hdy_keypad_get_symbols_visible (HdyKeypad *self
);
Returns whether self
should display the standard letters below the digits on
its buttons.
Returns Whether self
should display the hash and asterisk buttons, and
should display the plus symbol at the bottom of its 0 button.
Since: 1.0
void hdy_keypad_set_entry (HdyKeypad *self
,GtkEntry *entry
);
Binds entry
to self
and blocks any input which wouldn't be possible to type
with with the keypad.
Since: 0.0.12
GtkEntry *
hdy_keypad_get_entry (HdyKeypad *self
);
Get the connected entry. See hdy_keypad_set_entry()
for details.
Since: 1.0
void hdy_keypad_set_start_action (HdyKeypad *self
,GtkWidget *start_action
);
Sets the widget for the lower left corner (or right, in RTL locales) of
self
.
Since: 1.0
GtkWidget *
hdy_keypad_get_start_action (HdyKeypad *self
);
Returns the widget for the lower left corner (or right, in RTL locales) of
self
.
Since: 1.0
void hdy_keypad_set_end_action (HdyKeypad *self
,GtkWidget *end_action
);
Sets the widget for the lower right corner (or left, in RTL locales) of
self
.
Since: 1.0
“column-spacing”
property “column-spacing” guint
The amount of space between two consecutive columns.
Owner: HdyKeypad
Flags: Read / Write
Allowed values: <= 32767
Default value: 6
Since: 1.0
“end-action”
property “end-action” GtkWidget *
The widget for the lower end corner of self
.
Owner: HdyKeypad
Flags: Read / Write
Since: 1.0
“entry”
property “entry” GtkEntry *
The entry widget connected to the keypad. See hdy_keypad_set_entry()
for
details.
Owner: HdyKeypad
Flags: Read / Write
Since: 1.0
“letters-visible”
property “letters-visible” gboolean
Whether the keypad should display the standard letters below the digits on its buttons.
Owner: HdyKeypad
Flags: Read / Write
Default value: TRUE
Since: 1.0
“row-spacing”
property “row-spacing” guint
The amount of space between two consecutive rows.
Owner: HdyKeypad
Flags: Read / Write
Allowed values: <= 32767
Default value: 6
Since: 1.0
“start-action”
property “start-action” GtkWidget *
The widget for the lower start corner of self
.
Owner: HdyKeypad
Flags: Read / Write
Since: 1.0
“symbols-visible”
property “symbols-visible” gboolean
Whether the keypad should display the hash and asterisk buttons, and should display the plus symbol at the bottom of its 0 button.
Owner: HdyKeypad
Flags: Read / Write
Default value: TRUE
Since: 1.0