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 : : * - Georges Basile Stavracas Neto <georges@endlessos.org>
22 : : * - Philip Withnall <withnall@endlessm.com>
23 : : */
24 : :
25 : : #pragma once
26 : :
27 : : #include <adwaita.h>
28 : :
29 : :
30 : : G_BEGIN_DECLS
31 : :
32 : : #define MCT_TYPE_CAROUSEL_ITEM (mct_carousel_item_get_type ())
33 [ # # # # : 0 : G_DECLARE_FINAL_TYPE (MctCarouselItem, mct_carousel_item, MCT, CAROUSEL_ITEM, GtkButton)
# # ]
34 : :
35 : : #define MCT_TYPE_CAROUSEL (mct_carousel_get_type ())
36 [ # # # # : 0 : G_DECLARE_FINAL_TYPE (MctCarousel, mct_carousel, MCT, CAROUSEL, AdwBin)
# # ]
37 : :
38 : : GtkWidget *mct_carousel_item_new (void);
39 : :
40 : : void mct_carousel_item_set_child (MctCarouselItem *self,
41 : : GtkWidget *child);
42 : :
43 : : MctCarousel *mct_carousel_new (void);
44 : :
45 : : void mct_carousel_purge_items (MctCarousel *self);
46 : :
47 : : MctCarouselItem *mct_carousel_find_item (MctCarousel *self,
48 : : gconstpointer data,
49 : : GCompareFunc func);
50 : :
51 : : void mct_carousel_select_item (MctCarousel *self,
52 : : MctCarouselItem *item);
53 : :
54 : : guint mct_carousel_get_item_count (MctCarousel *self);
55 : :
56 : : void mct_carousel_add (MctCarousel *self,
57 : : MctCarouselItem *item);
58 : :
59 : : void mct_carousel_set_revealed (MctCarousel *self,
60 : : gboolean revealed);
61 : :
62 : : G_END_DECLS
|