Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | phosh_keypad_new () |
void | phosh_keypad_set_entry () |
GtkEntry * | phosh_keypad_get_entry () |
void | phosh_keypad_set_start_action () |
GtkWidget * | phosh_keypad_get_start_action () |
void | phosh_keypad_set_end_action () |
GtkWidget * | phosh_keypad_get_end_action () |
void | phosh_keypad_set_shuffle () |
gboolean | phosh_keypad_get_shuffle () |
void | phosh_keypad_distribute () |
GtkWidget * | end-action | Read / Write |
GtkEntry * | entry | Read / Write |
gboolean | shuffle | Read / Write |
GtkWidget * | start-action | Read / Write |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkGrid ╰── PhoshKeypad
The PhoshKeypad widget is a keypad for entering or PIN codes on e.g. a PhoshLockscreen. It can randomly distribute (shuffle) the digits.
void phosh_keypad_set_entry (PhoshKeypad *self
,GtkEntry *entry
);
Binds entry
to self
and blocks any input which wouldn't be possible to type
with with the keypad.
GtkEntry *
phosh_keypad_get_entry (PhoshKeypad *self
);
Get the connected entry. See phosh_keypad_set_entry()
for details.
void phosh_keypad_set_start_action (PhoshKeypad *self
,GtkWidget *start_action
);
Sets the widget for the lower left corner (or right, in RTL locales) of
self
.
GtkWidget *
phosh_keypad_get_start_action (PhoshKeypad *self
);
Returns the widget for the lower left corner (or right, in RTL locales) of
self
.
void phosh_keypad_set_end_action (PhoshKeypad *self
,GtkWidget *end_action
);
Sets the widget for the lower right corner (or left, in RTL locales) of
self
.
GtkWidget *
phosh_keypad_get_end_action (PhoshKeypad *self
);
Returns the widget for the lower right corner (or left, in RTL locales) of
self
.
void
phosh_keypad_distribute (PhoshKeypad *self
);
Redistribute buttons on keypad. If PhoshKeypad
:shuffle is TRUE
buttons
will be reshuffled otherwise they will be ordered.
“end-action”
property“end-action” GtkWidget *
The widget for the lower end corner of self
.
Owner: PhoshKeypad
Flags: Read / Write
“entry”
property“entry” GtkEntry *
The entry widget connected to the keypad. See phosh_keypad_set_entry()
for
details.
Owner: PhoshKeypad
Flags: Read / Write
“shuffle”
property“shuffle” gboolean
Whether to shuffle digits. Setting this to TRUE
will make
the digits appear at random locations on the keypad.
Owner: PhoshKeypad
Flags: Read / Write
Default value: FALSE
“start-action”
property“start-action” GtkWidget *
The widget for the lower start corner of self
.
Owner: PhoshKeypad
Flags: Read / Write