Branch data Line data Source code
1 : : /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- 2 : : * 3 : : * Copyright © 2016 Red Hat, Inc. 4 : : * Copyright © 2019 Endless Mobile, Inc. 5 : : * 6 : : * This program is free software; you can redistribute it and/or modify 7 : : * it under the terms of the GNU General Public License as published by 8 : : * the Free Software Foundation; either version 2 of the License, or 9 : : * (at your option) any later version. 10 : : * 11 : : * This program is distributed in the hope that it will be useful, 12 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 : : * GNU General Public License for more details. 15 : : * 16 : : * You should have received a copy of the GNU General Public License 17 : : * along with this program; if not, see <http://www.gnu.org/licenses/>. 18 : : * 19 : : * Authors: 20 : : * - Felipe Borges <felipeborges@gnome.org> 21 : : * - Philip Withnall <withnall@endlessm.com> 22 : : */ 23 : : 24 : : #pragma once 25 : : 26 : : #include <gtk/gtk.h> 27 : : 28 : : 29 : : G_BEGIN_DECLS 30 : : 31 : : #define MCT_TYPE_CAROUSEL_ITEM (mct_carousel_item_get_type ()) 32 [ # # # # : 0 : G_DECLARE_FINAL_TYPE (MctCarouselItem, mct_carousel_item, MCT, CAROUSEL_ITEM, GtkRadioButton) # # ] 33 : : 34 : : #define MCT_TYPE_CAROUSEL (mct_carousel_get_type ()) 35 : 0 : G_DECLARE_FINAL_TYPE (MctCarousel, mct_carousel, MCT, CAROUSEL, GtkRevealer) 36 : : 37 : : GtkWidget *mct_carousel_item_new (void); 38 : : 39 : : MctCarousel *mct_carousel_new (void); 40 : : 41 : : void mct_carousel_purge_items (MctCarousel *self); 42 : : 43 : : MctCarouselItem *mct_carousel_find_item (MctCarousel *self, 44 : : gconstpointer data, 45 : : GCompareFunc func); 46 : : 47 : : void mct_carousel_select_item (MctCarousel *self, 48 : : MctCarouselItem *item); 49 : : 50 : : guint mct_carousel_get_item_count (MctCarousel *self); 51 : : 52 : : G_END_DECLS