| 1 | /* GTK - The GIMP Toolkit |
| 2 | * |
| 3 | * Copyright (C) 2003 Ricardo Fernandez Pascual |
| 4 | * Copyright (C) 2004 Paolo Borelli |
| 5 | * Copyright (C) 2012 Bastien Nocera |
| 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_MENU_BUTTON_H__ |
| 22 | #define |
| 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/gtktogglebutton.h> |
| 29 | #include <gtk/gtkmenu.h> |
| 30 | #include <gtk/gtkpopover.h> |
| 31 | |
| 32 | G_BEGIN_DECLS |
| 33 | |
| 34 | #define (gtk_menu_button_get_type ()) |
| 35 | #define (obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_MENU_BUTTON, GtkMenuButton)) |
| 36 | #define (klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_MENU_BUTTON, GtkMenuButtonClass)) |
| 37 | #define (obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_MENU_BUTTON)) |
| 38 | #define (klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MENU_BUTTON)) |
| 39 | #define (obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_MENU_BUTTON, GtkMenuButtonClass)) |
| 40 | |
| 41 | typedef struct _GtkMenuButton ; |
| 42 | typedef struct _GtkMenuButtonClass ; |
| 43 | typedef struct ; |
| 44 | |
| 45 | struct |
| 46 | { |
| 47 | GtkToggleButton ; |
| 48 | |
| 49 | /*< private >*/ |
| 50 | GtkMenuButtonPrivate *; |
| 51 | }; |
| 52 | |
| 53 | struct |
| 54 | { |
| 55 | GtkToggleButtonClass ; |
| 56 | |
| 57 | /* Padding for future expansion */ |
| 58 | void (*) (void); |
| 59 | void (*) (void); |
| 60 | void (*) (void); |
| 61 | void (*) (void); |
| 62 | }; |
| 63 | |
| 64 | GDK_AVAILABLE_IN_3_6 |
| 65 | GType (void) G_GNUC_CONST; |
| 66 | GDK_AVAILABLE_IN_3_6 |
| 67 | GtkWidget * (void); |
| 68 | |
| 69 | GDK_AVAILABLE_IN_3_6 |
| 70 | void (GtkMenuButton *, |
| 71 | GtkWidget *); |
| 72 | GDK_AVAILABLE_IN_3_6 |
| 73 | GtkMenu * (GtkMenuButton *); |
| 74 | |
| 75 | GDK_AVAILABLE_IN_3_12 |
| 76 | void (GtkMenuButton *, |
| 77 | GtkWidget *popover); |
| 78 | GDK_AVAILABLE_IN_3_12 |
| 79 | GtkPopover * (GtkMenuButton *); |
| 80 | |
| 81 | GDK_AVAILABLE_IN_3_6 |
| 82 | void (GtkMenuButton *, |
| 83 | GtkArrowType direction); |
| 84 | GDK_AVAILABLE_IN_3_6 |
| 85 | GtkArrowType (GtkMenuButton *); |
| 86 | |
| 87 | GDK_AVAILABLE_IN_3_6 |
| 88 | void (GtkMenuButton *, |
| 89 | GMenuModel *); |
| 90 | GDK_AVAILABLE_IN_3_6 |
| 91 | GMenuModel * (GtkMenuButton *); |
| 92 | |
| 93 | GDK_AVAILABLE_IN_3_6 |
| 94 | void (GtkMenuButton *, |
| 95 | GtkWidget *align_widget); |
| 96 | GDK_AVAILABLE_IN_3_6 |
| 97 | GtkWidget * (GtkMenuButton *); |
| 98 | |
| 99 | GDK_AVAILABLE_IN_3_12 |
| 100 | void (GtkMenuButton *, |
| 101 | gboolean use_popover); |
| 102 | |
| 103 | GDK_AVAILABLE_IN_3_12 |
| 104 | gboolean (GtkMenuButton *); |
| 105 | |
| 106 | |
| 107 | G_END_DECLS |
| 108 | |
| 109 | #endif /* __GTK_MENU_BUTTON_H__ */ |
| 110 | |