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 | |
30 | G_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 | |
36 | typedef struct _GtkPasswordEntry GtkPasswordEntry; |
37 | typedef struct _GtkPasswordEntryClass GtkPasswordEntryClass; |
38 | |
39 | GDK_AVAILABLE_IN_ALL |
40 | GType gtk_password_entry_get_type (void) G_GNUC_CONST; |
41 | |
42 | GDK_AVAILABLE_IN_ALL |
43 | GtkWidget * gtk_password_entry_new (void); |
44 | |
45 | GDK_AVAILABLE_IN_ALL |
46 | void gtk_password_entry_set_show_peek_icon (GtkPasswordEntry *entry, |
47 | gboolean show_peek_icon); |
48 | GDK_AVAILABLE_IN_ALL |
49 | gboolean gtk_password_entry_get_show_peek_icon (GtkPasswordEntry *entry); |
50 | |
51 | GDK_AVAILABLE_IN_ALL |
52 | void (GtkPasswordEntry *entry, |
53 | GMenuModel *model); |
54 | GDK_AVAILABLE_IN_ALL |
55 | GMenuModel * (GtkPasswordEntry *entry); |
56 | |
57 | G_END_DECLS |
58 | |
59 | #endif /* __GTK_PASSWORD_ENTRY_H__ */ |
60 | |