Line |
Branch |
Exec |
Source |
1 |
|
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- |
2 |
|
|
* |
3 |
|
|
* Copyright (C) 2021 Alexander Mikhaylenko <alexm@gnome.org> |
4 |
|
|
* |
5 |
|
|
* This program 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 2 of the License, or |
8 |
|
|
* (at your option) any later version. |
9 |
|
|
* |
10 |
|
|
* This program 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 this program; if not, see <http://www.gnu.org/licenses/>. |
17 |
|
|
* |
18 |
|
|
*/ |
19 |
|
|
|
20 |
|
|
#pragma once |
21 |
|
|
|
22 |
|
|
#include <gtk/gtk.h> |
23 |
|
|
|
24 |
|
|
#include "bg-source.h" |
25 |
|
|
#include "cc-background-item.h" |
26 |
|
|
#include <libgnome-desktop/gnome-desktop-thumbnail.h> |
27 |
|
|
|
28 |
|
|
G_BEGIN_DECLS |
29 |
|
|
|
30 |
|
|
#define CC_TYPE_BACKGROUND_PAINTABLE (cc_background_paintable_get_type ()) |
31 |
|
✗ |
G_DECLARE_FINAL_TYPE (CcBackgroundPaintable, cc_background_paintable, CC, BACKGROUND_PAINTABLE, GObject) |
32 |
|
|
|
33 |
|
|
typedef enum { |
34 |
|
|
CC_BACKGROUND_PAINT_LIGHT = 1 << 0, |
35 |
|
|
CC_BACKGROUND_PAINT_DARK = 1 << 1 |
36 |
|
|
} CcBackgroundPaintFlags; |
37 |
|
|
|
38 |
|
|
#define CC_BACKGROUND_PAINT_LIGHT_DARK (CC_BACKGROUND_PAINT_LIGHT | \ |
39 |
|
|
CC_BACKGROUND_PAINT_DARK) |
40 |
|
|
|
41 |
|
|
CcBackgroundPaintable * cc_background_paintable_new (GnomeDesktopThumbnailFactory *thumbnail_factory, |
42 |
|
|
CcBackgroundItem *item, |
43 |
|
|
CcBackgroundPaintFlags paint_flags, |
44 |
|
|
int width, |
45 |
|
|
int height); |
46 |
|
|
|
47 |
|
|
G_END_DECLS |
48 |
|
|
|