1 /* 2 * Copyright © 2014 Red Hat, Inc. 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Lesser General Public 6 * License as published by the Free Software Foundation; either 7 * version 2 of the licence, or (at your option) any later version. 8 * 9 * This library is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * Lesser General Public License for more details. 13 * 14 * You should have received a copy of the GNU Lesser General Public 15 * License along with this library. If not, see <http://www.gnu.org/licenses/>. 16 * 17 * Author: Matthias Clasen 18 */ 19 20 #ifndef __GTK_MODEL_BUTTON_H__ 21 #define __GTK_MODEL_BUTTON_H__ 22 23 #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) 24 #error "Only <gtk/gtk.h> can be included directly." 25 #endif 26 27 #include <gtk/gtkwidget.h> 28 29 G_BEGIN_DECLS 30 31 #define GTK_TYPE_MODEL_BUTTON (gtk_model_button_get_type ()) 32 #define GTK_MODEL_BUTTON(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \ 33 GTK_TYPE_MODEL_BUTTON, GtkModelButton)) 34 #define GTK_IS_MODEL_BUTTON(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \ 35 GTK_TYPE_MODEL_BUTTON)) 36 37 typedef struct _GtkModelButton GtkModelButton; 38 39 /** 40 * GtkButtonRole: 41 * @GTK_BUTTON_ROLE_NORMAL: A plain button 42 * @GTK_BUTTON_ROLE_CHECK: A check button 43 * @GTK_BUTTON_ROLE_RADIO: A radio button 44 * 45 * The role specifies the desired appearance of a #GtkModelButton. 46 */ 47 typedef enum { 48 GTK_BUTTON_ROLE_NORMAL, 49 GTK_BUTTON_ROLE_CHECK, 50 GTK_BUTTON_ROLE_RADIO 51 } GtkButtonRole; 52 53 GDK_AVAILABLE_IN_3_16 54 GType gtk_model_button_get_type (void) G_GNUC_CONST; 55 56 GDK_AVAILABLE_IN_3_16 57 GtkWidget * gtk_model_button_new (void); 58 59 G_END_DECLS 60 61 #endif /* __GTK_MODEL_BUTTON_H__ */ 62