Debian Codegraph @

libgnome-desktop/gnome-qr-gtk/gnome-qr-widget.h

raw symbols SCIP
1 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
2 /*
3 * Copyright 2026 Canonical Ltd
4 *
5 * SPDX-License-Identifier: LGPL-3.0-or-later
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 * Author: Marco Trevisan <[email protected]>
21 */
22
23 #pragma once
24
25 #include <gtk/gtk.h>
26 #include <gnome-qr/gnome-qr.h>
27
28 G_BEGIN_DECLS
29
30 #define GNOME_TYPE_QR_WIDGET (gnome_qr_widget_get_type())
31 G_DECLARE_FINAL_TYPE (GnomeQrWidget, gnome_qr_widget, GNOME, QR_WIDGET, GtkWidget)
32
33 GtkWidget * gnome_qr_widget_new (const char *text);
34
35 void gnome_qr_widget_set_text (GnomeQrWidget *self,
36 const char *text);
37
38 const char * gnome_qr_widget_get_text (GnomeQrWidget *self);
39
40 void gnome_qr_widget_set_alternative_text (GnomeQrWidget *self,
41 const char *alternative_text);
42
43 const char * gnome_qr_widget_get_alternative_text (GnomeQrWidget *self);
44
45 void gnome_qr_widget_set_size (GnomeQrWidget *self,
46 size_t size);
47
48 size_t gnome_qr_widget_get_size (GnomeQrWidget *self);
49
50 void gnome_qr_widget_set_ecc_level (GnomeQrWidget *self,
51 GnomeQrEccLevel ecc);
52
53 GnomeQrEccLevel gnome_qr_widget_get_ecc_level (GnomeQrWidget *self);
54
55 G_END_DECLS