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
  
/* -*- C -*- */ 
class GTK2.TextTag; 
inherit G.Object; 
 
//! Properties: 
//! string background 
//! int background-full-height 
//! int background-full-height-set 
//! GDK2.Color background-gdk 
//! int background-set 
//! GDK2.Pixmap background-stipple 
//! int background-stipple-set 
//! int direction 
//!   One of CONST(GTK_TEXT_DIR_) 
//! int editable 
//! int editable-set 
//! string family 
//! int family-set 
//! string font 
require pango; 
//! Pango.FontDescription font-desc 
endrequire; 
//! string foreground 
//! GDK2.Color foreground-gdk 
//! int foreground-set 
//! GDK2.Pixmap foreground-stipple 
//! int foreground-stipple-set 
//! int indent 
//! int indent-set 
//! int invisible 
//! int invisible_set 
//! int justification 
//!   One of CONST(GTK_JUSTIFY_) 
//! int justification-set 
//! string language; 
//! int language-set; 
//! int left-margin; 
//! int left-margin-set; 
//! string name; 
//! int pixels-above-lines; 
//! int pixels-above-lines-set; 
//! int pixels-below-lines; 
//! int pixels-below-lines-set; 
//! int pixels-inside-wrap; 
//! int pixels-inside-wrap-set; 
//! int right-margin; 
//! int right-margin-set; 
//! int rise; 
//! int rise-set; 
//! float scale; 
//! int scale-set; 
//! int size; 
//! double size-points; 
//! int size-set; 
require pango; 
//! int stretch; 
//!   One of CONST(PANGO_STRETCH) 
//! int stretch-set; 
endrequire; 
//! int strikethrough; 
//! int strikethrough-set; 
require pango; 
//! int style; 
//!   One of CONST(PANGO_STYLE_) 
//! int style-set; 
//! Pango.TabArray tabs 
//! int tabs-set; 
//! int underline; 
//!   One of CONST(PANGO_UNDERLINE_) 
//! int underline-set; 
//! int variant; 
//!   One of CONST(PANGO_VARIANT_) 
//! int variant-set; 
endrequire; 
//! int weight; 
//! int weight-set; 
//! int wrap-mode; 
//!   One of CONST(GTK_WRAP_) 
//! int wrap-mode-set; 
 
signal event; 
 
void create(string|mapping(string:mixed) name_or_props) 
//! Creates a new text tag. 
{ 
  pgtk2_verify_not_inited(); 
  pgtk2_verify_setup(); 
  { 
    if (TYPEOF(Pike_sp[-args]) == PIKE_T_STRING) { 
      char *name; 
      GtkTextTag *gt; 
      get_all_args(NULL,args,"%s",&name); 
      gt=gtk_text_tag_new(name); 
      THIS->obj=G_OBJECT(gt); 
    } else { 
      INIT_WITH_PROPS(GTK_TYPE_TEXT_TAG); 
    } 
    pgtk2_pop_n_elems(args); 
  } 
  pgtk2__init_this_object(); 
} 
 
int get_priority(); 
//! Gets the tag priority. 
 
void set_priority(int priority); 
//! Sets the priority.  Valid priorities start at 0 and go to 1 less 
//! than W(TextTagTable)->get_size(). 
 
int event(G.Object event_object, GDK2.Event event, GTK2.TextIter iter) 
//! Emits the 'event' signal. 
{ 
  pgtk2_verify_inited(); 
  { 
    struct object *o1,*o2,*o3; 
    int res; 
    get_all_args(NULL,args,"%o%o%o",&o1,&o2,&o3); 
    res=gtk_text_tag_event(GTK_TEXT_TAG(THIS->obj), 
                        G_OBJECT(get_gobject(o1)), 
                        (GdkEvent *)get_gobject(o2), 
                        (GtkTextIter *)get_pg2object(o3,pgtk2_text_iter_program)); 
   pgtk2_pop_n_elems(args); 
   push_int(res); 
  } 
}