This file is indexed.

/usr/include/hippo-canvas-1/hippo/hippo-event.h is in libhippocanvas-dev 0.3.1-1.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/* -*- mode: C; c-basic-offset: 4; indent-tabs-mode: nil; -*- */

#ifndef __HIPPO_EVENT_H__
#define __HIPPO_EVENT_H__

#include <glib-object.h>
#include <hippo/hippo-graphics.h>

G_BEGIN_DECLS

#define HIPPO_TYPE_EVENT (hippo_event_get_type())

typedef enum {
    HIPPO_EVENT_BUTTON_PRESS,
    HIPPO_EVENT_BUTTON_RELEASE,
    HIPPO_EVENT_MOTION_NOTIFY,
    HIPPO_EVENT_KEY_PRESS,
    HIPPO_EVENT_SCROLL
} HippoEventType;

typedef enum {
    HIPPO_MOTION_DETAIL_ENTER,
    HIPPO_MOTION_DETAIL_LEAVE,
    HIPPO_MOTION_DETAIL_WITHIN
} HippoMotionDetail;

typedef enum {
    HIPPO_SCROLL_UP,
    HIPPO_SCROLL_DOWN,
    HIPPO_SCROLL_LEFT,
    HIPPO_SCROLL_RIGHT
} HippoScrollDirection;

typedef struct _HippoEvent HippoEvent;

typedef enum {
    HIPPO_KEY_UNKNOWN, 
    HIPPO_KEY_RETURN,
    HIPPO_KEY_ESCAPE,
    HIPPO_KEY_TAB,
    HIPPO_KEY_LEFTTAB
} HippoKey;

typedef enum {
    HIPPO_MODIFIER_SHIFT = 1 << 0,
    HIPPO_MODIFIER_CTRL = 1 << 1,
    HIPPO_MODIFIER_ALT = 1 << 2
} HippoModifier;

struct _HippoEvent {
    HippoEventType type;
    int x;
    int y;
    union {
        struct {
            HippoMotionDetail detail;
        } motion;
        struct {
            int button;
            int count;

            /* we pass these through for gtk_window_begin_resize_drag() */
            int x11_x_root;
            int x11_y_root;
            guint32 x11_time;
            guint modifiers;
        } button;
        struct {
            HippoKey key;
            gunichar character; /* 0 if no translation */
            guint modifiers;
        } key;
        struct {
            HippoScrollDirection direction;
        } scroll;
    } u;
};

GType       hippo_event_get_type (void) G_GNUC_CONST;
HippoEvent *hippo_event_copy     (HippoEvent *event);
void        hippo_event_free     (HippoRectangle *event);


G_END_DECLS

#endif /* __HIPPO_EVENT_H */