1 /* 2 * This file is part of GNOME Twitch - 'Enjoy Twitch on your GNU/Linux desktop' 3 * Copyright © 2017 Vincent Szolnoky <vinszent@vinszent.com> 4 * 5 * GNOME Twitch is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * GNOME Twitch is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with GNOME Twitch. If not, see <http://www.gnu.org/licenses/>. 17 */ 18 19 #ifndef GT_CONTAINER_VIEW_H 20 #define GT_CONTAINER_VIEW_H 21 22 #include <gtk/gtk.h> 23 #include "gt-item-container.h" 24 25 G_BEGIN_DECLS 26 27 #define GT_TYPE_CONTAINER_VIEW gt_container_view_get_type() 28 29 G_DECLARE_DERIVABLE_TYPE(GtContainerView, gt_container_view, GT, CONTAINER_VIEW, GtkBox); 30 31 struct _GtContainerViewClass 32 { 33 GtkBoxClass parent_class; 34 35 void (*refresh)(GtContainerView* self); 36 void (*go_back)(GtContainerView* self); 37 }; 38 39 void gt_container_view_add_container(GtContainerView* self, GtItemContainer* container); 40 void gt_container_view_set_search_active(GtContainerView* self, gboolean search_active); 41 gboolean gt_container_view_get_search_active(GtContainerView* self); 42 gboolean gt_container_view_get_show_back_button(GtContainerView* self); 43 GtkWidget* gt_container_view_get_container_stack(GtContainerView* self); 44 GtkWidget* gt_container_view_get_search_entry(GtContainerView* self); 45 GtkWidget* gt_container_view_get_search_bar(GtContainerView* self); 46 void gt_container_view_set_search_popover_widget(GtContainerView* self, GtkWidget* popover); 47 void gt_container_view_go_back(GtContainerView* self); 48 void gt_container_view_refresh(GtContainerView* self); 49 50 G_END_DECLS 51 52 #endif 53