summaryrefslogtreecommitdiff
path: root/clutter/clutter/clutter-pick-context.h
blob: 5792be6b5815e768785e171fa38b7a4bc6c0e1a1 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*
 * Copyright (C) 2019 Red Hat Inc.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef CLUTTER_PICK_CONTEXT_H
#define CLUTTER_PICK_CONTEXT_H

#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
#error "Only <clutter/clutter.h> can be included directly."
#endif

#include <glib-object.h>

#include "clutter-macros.h"
#include "clutter-stage-view.h"

typedef struct _ClutterPickContext ClutterPickContext;

#define CLUTTER_TYPE_PICK_CONTEXT (clutter_pick_context_get_type ())

CLUTTER_EXPORT
GType clutter_pick_context_get_type (void);

CLUTTER_EXPORT
ClutterPickContext * clutter_pick_context_ref (ClutterPickContext *pick_context);

CLUTTER_EXPORT
void clutter_pick_context_unref (ClutterPickContext *pick_context);

CLUTTER_EXPORT
void clutter_pick_context_destroy (ClutterPickContext *pick_context);

CLUTTER_EXPORT
ClutterPickMode clutter_pick_context_get_mode (ClutterPickContext *pick_context);

CLUTTER_EXPORT
void clutter_pick_context_log_pick (ClutterPickContext    *pick_context,
                                    const ClutterActorBox *box,
                                    ClutterActor          *actor);

CLUTTER_EXPORT
void clutter_pick_context_push_clip (ClutterPickContext    *pick_context,
                                     const ClutterActorBox *box);

CLUTTER_EXPORT
void clutter_pick_context_pop_clip (ClutterPickContext *pick_context);

CLUTTER_EXPORT
void clutter_pick_context_push_transform (ClutterPickContext      *pick_context,
                                          const graphene_matrix_t *transform);

CLUTTER_EXPORT
void clutter_pick_context_get_transform (ClutterPickContext *pick_context,
                                         graphene_matrix_t  *out_matrix);

CLUTTER_EXPORT
void clutter_pick_context_pop_transform (ClutterPickContext *pick_context);

#endif /* CLUTTER_PICK_CONTEXT_H */