This file is indexed.

/usr/include/clutter-imcontext-0.1/clutter-imcontext/clutter-imcontext.h is in libclutter-imcontext-0.1-dev 0.1.4-2build1.

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
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
/*
 * clutter-imcontext 
 * clutter-imcontext is an imcontext framework modified base on GTK's imcontext.
 *
 * Author: raymond liu <raymond.liu@intel.com>
 *
 * Copyright (C) 2000 Red Hat, Inc.
 * Copyright (C) 2009, Intel Corporation.
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public License
 * version 2.1 as published by the Free Software Foundation.
 * 
 * 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, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA
 *
 */

#ifndef __CLUTTER_IM_CONTEXT_H__
#define __CLUTTER_IM_CONTEXT_H__

#include <clutter/clutter.h>
#include <pango/pango.h>

G_BEGIN_DECLS

typedef struct _ClutterIMRectangle      ClutterIMRectangle;
struct _ClutterIMRectangle
{
  gint x;
  gint y;
  gint width;
  gint height;
};

#define CLUTTER_TYPE_IM_CONTEXT              (clutter_im_context_get_type ())
#define CLUTTER_IM_CONTEXT(obj)              (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_IM_CONTEXT, ClutterIMContext))
#define CLUTTER_IM_CONTEXT_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_IM_CONTEXT, ClutterIMContextClass))
#define CLUTTER_IS_IM_CONTEXT(obj)           (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_IM_CONTEXT))
#define CLUTTER_IS_IM_CONTEXT_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_IM_CONTEXT))
#define CLUTTER_IM_CONTEXT_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_IM_CONTEXT, ClutterIMContextClass))

typedef struct _ClutterIMContext       ClutterIMContext;
typedef struct _ClutterIMContextClass  ClutterIMContextClass;

struct _ClutterIMContext
{
  GObject parent_instance;
  ClutterActor *actor;
};

struct _ClutterIMContextClass
{
  GObjectClass parent_class;

  /* Signals */
  void     (*preedit_start)        (ClutterIMContext *context);
  void     (*preedit_end)          (ClutterIMContext *context);
  void     (*preedit_changed)      (ClutterIMContext *context);
  void     (*commit)               (ClutterIMContext *context, const gchar *str);
  gboolean (*retrieve_surrounding) (ClutterIMContext *context);
  gboolean (*delete_surrounding)   (ClutterIMContext *context,
				    gint          offset,
				    gint          n_chars);

  /* Virtual functions */
  void     (*get_preedit_string)  (ClutterIMContext   *context,
				   gchar         **str,
				   PangoAttrList **attrs,
				   gint           *cursor_pos);
  gboolean (*filter_keypress)     (ClutterIMContext   *context,
			           ClutterKeyEvent    *event);
  void     (*focus_in)            (ClutterIMContext   *context);
  void     (*focus_out)           (ClutterIMContext   *context);
  void     (*show)                (ClutterIMContext   *context);
  void     (*hide)                (ClutterIMContext   *context);
  void     (*reset)               (ClutterIMContext   *context);
  void     (*set_cursor_location) (ClutterIMContext   *context,
				   ClutterIMRectangle   *area);
  void     (*set_use_preedit)     (ClutterIMContext   *context,
				   gboolean        use_preedit);
  void     (*set_surrounding)     (ClutterIMContext   *context,
				   const gchar    *text,
				   gint            len,
				   gint            cursor_index);
  gboolean (*get_surrounding)     (ClutterIMContext   *context,
				   gchar         **text,
				   gint           *cursor_index);

  /* Padding for future expansion */
  void (*_clutter_reserved1) (void);
  void (*_clutter_reserved2) (void);
  void (*_clutter_reserved3) (void);
  void (*_clutter_reserved4) (void);
  void (*_clutter_reserved5) (void);
  void (*_clutter_reserved6) (void);
};

GType    clutter_im_context_get_type            (void) G_GNUC_CONST;

void     clutter_im_context_get_preedit_string  (ClutterIMContext       *context,
					     gchar             **str,
					     PangoAttrList     **attrs,
					     gint               *cursor_pos);
gboolean clutter_im_context_filter_keypress     (ClutterIMContext       *context,
					     ClutterKeyEvent        *event);
void     clutter_im_context_focus_in            (ClutterIMContext       *context);
void     clutter_im_context_focus_out           (ClutterIMContext       *context);
void     clutter_im_context_show          (ClutterIMContext       *context);
void     clutter_im_context_hide          (ClutterIMContext       *context);
void     clutter_im_context_reset               (ClutterIMContext       *context);
void     clutter_im_context_set_cursor_location (ClutterIMContext       *context,
					     const ClutterIMRectangle *area);
void     clutter_im_context_set_use_preedit     (ClutterIMContext       *context,
					     gboolean            use_preedit);
void     clutter_im_context_set_surrounding     (ClutterIMContext       *context,
					     const gchar        *text,
					     gint                len,
					     gint                cursor_index);
gboolean clutter_im_context_get_surrounding     (ClutterIMContext       *context,
					     gchar             **text,
					     gint               *cursor_index);
gboolean clutter_im_context_delete_surrounding  (ClutterIMContext       *context,
					     gint                offset,
					     gint                n_chars);

G_END_DECLS

#endif /* __CLUTTER_IM_CONTEXT_H__ */