blob: 98ab70e72e2ec3a10071529f7cb25cc1e9a9b7cc (
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
49
50
51
52
53
|
/*
* Copyright (C) 2017-2020 Alberts Muktupāvels
*
* 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 2 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/>.
*/
#ifndef META_COMPOSITOR_XRENDER_H
#define META_COMPOSITOR_XRENDER_H
#include "meta-compositor-private.h"
#include "meta-shadow-xrender.h"
#include "meta-surface-private.h"
G_BEGIN_DECLS
#define META_TYPE_COMPOSITOR_XRENDER meta_compositor_xrender_get_type ()
G_DECLARE_DERIVABLE_TYPE (MetaCompositorXRender, meta_compositor_xrender,
META, COMPOSITOR_XRENDER, MetaCompositor)
struct _MetaCompositorXRenderClass
{
MetaCompositorClass parent_class;
void (* ensure_root_buffers) (MetaCompositorXRender *self);
void (* free_root_buffers) (MetaCompositorXRender *self);
};
MetaCompositor *meta_compositor_xrender_new (MetaDisplay *display,
GError **error);
gboolean meta_compositor_xrender_have_shadows (MetaCompositorXRender *self);
MetaShadowXRender *meta_compositor_xrender_create_shadow (MetaCompositorXRender *self,
MetaSurface *surface);
void meta_compositor_xrender_create_root_buffer (MetaCompositorXRender *self,
Pixmap *pixmap,
Picture *buffer);
G_END_DECLS
#endif
|