summaryrefslogtreecommitdiff
path: root/lib/ephy-suggestion.h
blob: bfd270c7ce05592933c80e728415e05c1bce9e9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
 * Copyright © 2017 Igalia S.L.
 * Copyright © 2018 Jan-Michael Brummer
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#pragma once

#include <dazzle.h>

G_BEGIN_DECLS

#define EPHY_TYPE_SUGGESTION (ephy_suggestion_get_type())

G_DECLARE_FINAL_TYPE (EphySuggestion, ephy_suggestion, EPHY, SUGGESTION, DzlSuggestion)

EphySuggestion *ephy_suggestion_new                      (const char *title_markup,
                                                          const char *unescaped_title,
                                                          const char *uri);
EphySuggestion *ephy_suggestion_new_with_custom_subtitle (const char *title_markup,
                                                          const char *unescaped_title,
                                                          const char *subtitle,
                                                          const char *uri);
EphySuggestion *ephy_suggestion_new_without_subtitle     (const char *title_markup,
                                                          const char *unescaped_title,
                                                          const char *uri);
const char     *ephy_suggestion_get_unescaped_title      (EphySuggestion *self);
const char     *ephy_suggestion_get_uri                  (EphySuggestion *self);

void            ephy_suggestion_set_favicon              (EphySuggestion  *self,
                                                          cairo_surface_t *favicon);
void            ephy_suggestion_set_secondary_icon       (EphySuggestion  *self,
                                                          const char      *icon_name);

G_END_DECLS