1 /* 2 * Copyright (c) 2014 Intel Corporation 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU Lesser General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or (at your 7 * option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, but 10 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 11 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 12 * License for more details. 13 * 14 * You should have received a copy of the GNU Lesser General Public License 15 * along with this program; if not, write to the Free Software Foundation, 16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 * 18 * Author: 19 * Ikey Doherty <michael.i.doherty@intel.com> 20 */ 21 22 #ifndef __GTK_STACK_SIDEBAR_H__ 23 #define __GTK_STACK_SIDEBAR_H__ 24 25 #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) 26 #error "Only <gtk/gtk.h> can be included directly." 27 #endif 28 29 #include <gtk/gtkbin.h> 30 #include <gtk/gtkstack.h> 31 32 G_BEGIN_DECLS 33 34 #define GTK_TYPE_STACK_SIDEBAR (gtk_stack_sidebar_get_type ()) 35 #define GTK_STACK_SIDEBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_STACK_SIDEBAR, GtkStackSidebar)) 36 #define GTK_IS_STACK_SIDEBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_STACK_SIDEBAR)) 37 #define GTK_STACK_SIDEBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_STACK_SIDEBAR, GtkStackSidebarClass)) 38 #define GTK_IS_STACK_SIDEBAR_CLASS(klass)(G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_STACK_SIDEBAR)) 39 #define GTK_STACK_SIDEBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_STACK_SIDEBAR, GtkStackSidebarClass)) 40 41 typedef struct _GtkStackSidebar GtkStackSidebar; 42 typedef struct _GtkStackSidebarPrivate GtkStackSidebarPrivate; 43 typedef struct _GtkStackSidebarClass GtkStackSidebarClass; 44 45 struct _GtkStackSidebar 46 { 47 GtkBin parent; 48 }; 49 50 struct _GtkStackSidebarClass 51 { 52 GtkBinClass parent_class; 53 54 /* Padding for future expansion */ 55 void (*_gtk_reserved1) (void); 56 void (*_gtk_reserved2) (void); 57 void (*_gtk_reserved3) (void); 58 void (*_gtk_reserved4) (void); 59 }; 60 61 GDK_AVAILABLE_IN_3_16 62 GType gtk_stack_sidebar_get_type (void) G_GNUC_CONST; 63 GDK_AVAILABLE_IN_3_16 64 GtkWidget * gtk_stack_sidebar_new (void); 65 GDK_AVAILABLE_IN_3_16 66 void gtk_stack_sidebar_set_stack (GtkStackSidebar *sidebar, 67 GtkStack *stack); 68 GDK_AVAILABLE_IN_3_16 69 GtkStack * gtk_stack_sidebar_get_stack (GtkStackSidebar *sidebar); 70 71 G_END_DECLS 72 73 #endif /* __GTK_STACK_SIDEBAR_H__ */ 74