/usr/include/scim-1.0/gtk/scimstringview.h is in libscim-dev 1.4.18-2.
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 137 138 139 140 | #ifndef __SCIM_STRING_VIEW_H__
#define __SCIM_STRING_VIEW_H__
#include <gdk/gdk.h>
#include <pango/pango.h>
G_BEGIN_DECLS
#define SCIM_TYPE_STRING_VIEW (scim_string_view_get_type ())
#define SCIM_STRING_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SCIM_TYPE_STRING_VIEW, ScimStringView))
#define SCIM_STRING_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SCIM_TYPE_STRING_VIEW, ScimStringViewClass))
#define SCIM_IS_STRING_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SCIM_TYPE_STRING_VIEW))
#define SCIM_IS_STRING_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SCIM_TYPE_STRING_VIEW))
#define SCIM_STRING_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SCIM_TYPE_STRING_VIEW, ScimStringViewClass))
typedef struct _ScimStringView ScimStringView;
typedef struct _ScimStringViewClass ScimStringViewClass;
struct _ScimStringView
{
GtkWidget widget;
gchar *text;
guint16 text_length; /* length in use, in chars */
guint16 text_max_length;
/*< private >*/
GdkWindow *text_area;
gint current_pos;
PangoLayout *cached_layout;
PangoAttrList *attrs;
PangoAttrList *effective_attrs;
guint has_frame : 1;
guint draw_cursor : 1;
guint cursor_visible : 1;
guint auto_move_cursor : 1;
guint forward_event : 1;
guint auto_resize : 1;
guint blink_timeout;
guint recompute_idle;
gint scroll_offset;
gint ascent; /* font ascent, in pango units */
gint descent; /* font descent, in pango units */
gint max_width;
gint highlight_start;
gint highlight_end;
guint16 text_size; /* allocated size, in bytes */
guint16 n_bytes; /* length in use, in bytes */
gint width_chars;
};
struct _ScimStringViewClass
{
GtkWidgetClass parent_class;
void (* move_cursor) (ScimStringView *string_view, guint position);
};
void scim_string_view_register_type (GTypeModule *type_module);
GType scim_string_view_get_type (void) G_GNUC_CONST;
GtkWidget* scim_string_view_new (void);
void scim_string_view_set_has_frame (ScimStringView *entry,
gboolean setting);
gboolean scim_string_view_get_has_frame (ScimStringView *entry);
/* text is truncated if needed */
void scim_string_view_set_max_length (ScimStringView *entry,
gint max);
gint scim_string_view_get_max_length (ScimStringView *entry);
void scim_string_view_set_width_chars (ScimStringView *entry,
gint n_chars);
gint scim_string_view_get_width_chars (ScimStringView *entry);
/* Somewhat more convenient than the GtkEditable generic functions
*/
void scim_string_view_set_text (ScimStringView *entry,
const gchar *text);
/* returns a reference to the text */
const gchar* scim_string_view_get_text (ScimStringView *entry);
void scim_string_view_set_position (ScimStringView *entry,
gint position);
gint scim_string_view_get_position (ScimStringView *entry);
void scim_string_view_set_max_width (ScimStringView *entry,
gint width);
gint scim_string_view_get_max_width (ScimStringView *entry);
void scim_string_view_set_draw_cursor (ScimStringView *entry,
gboolean width);
gboolean scim_string_view_get_draw_cursor (ScimStringView *entry);
void scim_string_view_set_auto_move_cursor (ScimStringView *entry,
gboolean setting);
gboolean scim_string_view_get_auto_move_cursor (ScimStringView *entry);
void scim_string_view_set_forward_event (ScimStringView *entry,
gboolean setting);
gboolean scim_string_view_get_forward_event (ScimStringView *entry);
void scim_string_view_set_auto_resize (ScimStringView *entry,
gboolean setting);
gboolean scim_string_view_get_auto_resize (ScimStringView *entry);
PangoLayout* scim_string_view_get_layout (ScimStringView *entry);
void scim_string_view_get_layout_offsets (ScimStringView *entry,
gint *x,
gint *y);
void scim_string_view_set_highlight (ScimStringView *entry,
gint start,
gint end);
void scim_string_view_get_highlight (ScimStringView *entry,
gint *start,
gint *end);
void scim_string_view_set_attributes (ScimStringView *entry,
PangoAttrList *attrs);
PangoAttrList *scim_string_view_get_attributes (ScimStringView *entry);
G_END_DECLS
#endif /* __scim_string_view_H__ */
/*
vi:ts=4:nowrap:ai:expandtab
*/
|