1/* GTK - The GIMP Toolkit
2 * Copyright (C) 2019 Red Hat, Inc.
3 *
4 * Authors:
5 * - MAtthias Clasen <mclasen@redhat.com>
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#ifndef __GTK_PASSWORD_ENTRY_H__
22#define __GTK_PASSWORD_ENTRY_H__
23
24#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
25#error "Only <gtk/gtk.h> can be included directly."
26#endif
27
28#include <gtk/gtkentry.h>
29
30G_BEGIN_DECLS
31
32#define GTK_TYPE_PASSWORD_ENTRY (gtk_password_entry_get_type ())
33#define GTK_PASSWORD_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PASSWORD_ENTRY, GtkPasswordEntry))
34#define GTK_IS_PASSWORD_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PASSWORD_ENTRY))
35
36typedef struct _GtkPasswordEntry GtkPasswordEntry;
37typedef struct _GtkPasswordEntryClass GtkPasswordEntryClass;
38
39GDK_AVAILABLE_IN_ALL
40GType gtk_password_entry_get_type (void) G_GNUC_CONST;
41
42GDK_AVAILABLE_IN_ALL
43GtkWidget * gtk_password_entry_new (void);
44
45GDK_AVAILABLE_IN_ALL
46void gtk_password_entry_set_show_peek_icon (GtkPasswordEntry *entry,
47 gboolean show_peek_icon);
48GDK_AVAILABLE_IN_ALL
49gboolean gtk_password_entry_get_show_peek_icon (GtkPasswordEntry *entry);
50
51GDK_AVAILABLE_IN_ALL
52void gtk_password_entry_set_extra_menu (GtkPasswordEntry *entry,
53 GMenuModel *model);
54GDK_AVAILABLE_IN_ALL
55GMenuModel * gtk_password_entry_get_extra_menu (GtkPasswordEntry *entry);
56
57G_END_DECLS
58
59#endif /* __GTK_PASSWORD_ENTRY_H__ */
60

source code of gtk/gtk/gtkpasswordentry.h