v0.2.1 c0399be

gtktexttag.go RawHistoryFolder

1// Package gtk was automatically generated by github.com/bnema/puregotk DO NOT EDIT
2package gtk
3
4import (
5	"structs"
6	"unsafe"
7
8	"github.com/ebitengine/purego"
9
10	"github.com/bnema/puregotk/pkg/core"
11	"github.com/bnema/puregotk/v4/gobject"
12	"github.com/bnema/puregotk/v4/gobject/types"
13)
14
15type TextTagClass struct {
16	_ structs.HostLayout
17
18	ParentClass gobject.ObjectClass
19
20	Padding [8]uintptr
21}
22
23func (x *TextTagClass) GoPointer() uintptr {
24	return uintptr(unsafe.Pointer(x))
25}
26
27type TextTagPrivate struct {
28	_ structs.HostLayout
29}
30
31func (x *TextTagPrivate) GoPointer() uintptr {
32	return uintptr(unsafe.Pointer(x))
33}
34
35// Can be applied to text contained in a `GtkTextBuffer`.
36//
37// You may wish to begin by reading the
38// [text widget conceptual overview](section-text-widget.html),
39// which gives an overview of all the objects and data types
40// related to the text widget and how they work together.
41//
42// Tags should be in the [class@Gtk.TextTagTable] for a given
43// `GtkTextBuffer` before using them with that buffer.
44//
45// [method@Gtk.TextBuffer.create_tag] is the best way to create tags.
46// See “gtk4-demo” for numerous examples.
47//
48// For each property of `GtkTextTag`, there is a “set” property, e.g.
49// “font-set” corresponds to “font”. These “set” properties reflect
50// whether a property has been set or not.
51//
52// They are maintained by GTK and you should not set them independently.
53type TextTag struct {
54	gobject.Object
55}
56
57var xTextTagGLibType func() types.GType
58
59func TextTagGLibType() types.GType {
60	return xTextTagGLibType()
61}
62
63func TextTagNewFromInternalPtr(ptr uintptr) *TextTag {
64	cls := &TextTag{}
65	cls.Ptr = ptr
66	return cls
67}
68
69var xNewTextTag func(uintptr) uintptr
70
71// Creates a `GtkTextTag`.
72func NewTextTag(NameVar *string) *TextTag {
73	var cls *TextTag
74
75	NameVarPtr := core.GStrdupNullable(NameVar)
76	defer core.GFreeNullable(NameVarPtr)
77
78	cret := xNewTextTag(NameVarPtr)
79
80	if cret == 0 {
81		return nil
82	}
83	cls = &TextTag{}
84	cls.Ptr = cret
85	return cls
86}
87
88var xTextTagChanged func(uintptr, bool)
89
90// Emits the [signal@Gtk.TextTagTable::tag-changed] signal on the
91// `GtkTextTagTable` where the tag is included.
92//
93// The signal is already emitted when setting a `GtkTextTag` property.
94// This function is useful for a `GtkTextTag` subclass.
95func (x *TextTag) Changed(SizeChangedVar bool) {
96
97	xTextTagChanged(x.GoPointer(), SizeChangedVar)
98
99}
100
101var xTextTagGetPriority func(uintptr) int
102
103// Get the tag priority.
104func (x *TextTag) GetPriority() int {
105
106	cret := xTextTagGetPriority(x.GoPointer())
107	return cret
108}
109
110var xTextTagSetPriority func(uintptr, int)
111
112// Sets the priority of a `GtkTextTag`.
113//
114// Valid priorities start at 0 and go to one less than
115// [method@Gtk.TextTagTable.get_size]. Each tag in a table
116// has a unique priority; setting the priority of one tag shifts
117// the priorities of all the other tags in the table to maintain
118// a unique priority for each tag.
119//
120// Higher priority tags “win” if two tags both set the same text
121// attribute. When adding a tag to a tag table, it will be assigned
122// the highest priority in the table by default; so normally the
123// precedence of a set of tags is the order in which they were added
124// to the table, or created with [method@Gtk.TextBuffer.create_tag],
125// which adds the tag to the buffer’s table automatically.
126func (x *TextTag) SetPriority(PriorityVar int) {
127
128	xTextTagSetPriority(x.GoPointer(), PriorityVar)
129
130}
131
132func (c *TextTag) GoPointer() uintptr {
133	if c == nil {
134		return 0
135	}
136	return c.Ptr
137}
138
139func (c *TextTag) SetGoPointer(ptr uintptr) {
140	c.Ptr = ptr
141}
142
143// SetPropertyAccumulativeMargin sets the "accumulative-margin" property.
144// Whether the margins accumulate or override each other.
145//
146// When set to %TRUE the margins of this tag are added to the margins
147// of any other non-accumulative margins present. When set to %FALSE
148// the margins override one another (the default).
149func (x *TextTag) SetPropertyAccumulativeMargin(value bool) {
150	var v gobject.Value
151	v.Init(gobject.TypeBooleanVal)
152	v.SetBoolean(value)
153	x.SetProperty("accumulative-margin", &v)
154}
155
156// GetPropertyAccumulativeMargin gets the "accumulative-margin" property.
157// Whether the margins accumulate or override each other.
158//
159// When set to %TRUE the margins of this tag are added to the margins
160// of any other non-accumulative margins present. When set to %FALSE
161// the margins override one another (the default).
162func (x *TextTag) GetPropertyAccumulativeMargin() bool {
163	var v gobject.Value
164	x.GetProperty("accumulative-margin", &v)
165	return v.GetBoolean()
166}
167
168// SetPropertyAllowBreaks sets the "allow-breaks" property.
169// Whether breaks are allowed.
170func (x *TextTag) SetPropertyAllowBreaks(value bool) {
171	var v gobject.Value
172	v.Init(gobject.TypeBooleanVal)
173	v.SetBoolean(value)
174	x.SetProperty("allow-breaks", &v)
175}
176
177// GetPropertyAllowBreaks gets the "allow-breaks" property.
178// Whether breaks are allowed.
179func (x *TextTag) GetPropertyAllowBreaks() bool {
180	var v gobject.Value
181	x.GetProperty("allow-breaks", &v)
182	return v.GetBoolean()
183}
184
185// SetPropertyAllowBreaksSet sets the "allow-breaks-set" property.
186// Whether the `allow-breaks` property is set.
187func (x *TextTag) SetPropertyAllowBreaksSet(value bool) {
188	var v gobject.Value
189	v.Init(gobject.TypeBooleanVal)
190	v.SetBoolean(value)
191	x.SetProperty("allow-breaks-set", &v)
192}
193
194// GetPropertyAllowBreaksSet gets the "allow-breaks-set" property.
195// Whether the `allow-breaks` property is set.
196func (x *TextTag) GetPropertyAllowBreaksSet() bool {
197	var v gobject.Value
198	x.GetProperty("allow-breaks-set", &v)
199	return v.GetBoolean()
200}
201
202// SetPropertyBackground sets the "background" property.
203// Background color as a string.
204func (x *TextTag) SetPropertyBackground(value string) {
205	var v gobject.Value
206	v.Init(gobject.TypeStringVal)
207	v.SetString(&value)
208	x.SetProperty("background", &v)
209}
210
211// SetPropertyBackgroundFullHeight sets the "background-full-height" property.
212// Whether the background color fills the entire line height
213// or only the height of the tagged characters.
214func (x *TextTag) SetPropertyBackgroundFullHeight(value bool) {
215	var v gobject.Value
216	v.Init(gobject.TypeBooleanVal)
217	v.SetBoolean(value)
218	x.SetProperty("background-full-height", &v)
219}
220
221// GetPropertyBackgroundFullHeight gets the "background-full-height" property.
222// Whether the background color fills the entire line height
223// or only the height of the tagged characters.
224func (x *TextTag) GetPropertyBackgroundFullHeight() bool {
225	var v gobject.Value
226	x.GetProperty("background-full-height", &v)
227	return v.GetBoolean()
228}
229
230// SetPropertyBackgroundFullHeightSet sets the "background-full-height-set" property.
231// Whether the `background-full-height` property is set.
232func (x *TextTag) SetPropertyBackgroundFullHeightSet(value bool) {
233	var v gobject.Value
234	v.Init(gobject.TypeBooleanVal)
235	v.SetBoolean(value)
236	x.SetProperty("background-full-height-set", &v)
237}
238
239// GetPropertyBackgroundFullHeightSet gets the "background-full-height-set" property.
240// Whether the `background-full-height` property is set.
241func (x *TextTag) GetPropertyBackgroundFullHeightSet() bool {
242	var v gobject.Value
243	x.GetProperty("background-full-height-set", &v)
244	return v.GetBoolean()
245}
246
247// SetPropertyBackgroundRgba sets the "background-rgba" property.
248// Background color as a `GdkRGBA`.
249func (x *TextTag) SetPropertyBackgroundRgba(value uintptr) {
250	var v gobject.Value
251	v.Init(gobject.TypePointerVal)
252	v.SetPointer(value)
253	x.SetProperty("background-rgba", &v)
254}
255
256// GetPropertyBackgroundRgba gets the "background-rgba" property.
257// Background color as a `GdkRGBA`.
258func (x *TextTag) GetPropertyBackgroundRgba() uintptr {
259	var v gobject.Value
260	x.GetProperty("background-rgba", &v)
261	return v.GetPointer()
262}
263
264// SetPropertyBackgroundSet sets the "background-set" property.
265// Whether the `background` property is set.
266func (x *TextTag) SetPropertyBackgroundSet(value bool) {
267	var v gobject.Value
268	v.Init(gobject.TypeBooleanVal)
269	v.SetBoolean(value)
270	x.SetProperty("background-set", &v)
271}
272
273// GetPropertyBackgroundSet gets the "background-set" property.
274// Whether the `background` property is set.
275func (x *TextTag) GetPropertyBackgroundSet() bool {
276	var v gobject.Value
277	x.GetProperty("background-set", &v)
278	return v.GetBoolean()
279}
280
281// SetPropertyEditable sets the "editable" property.
282// Whether the text can be modified by the user.
283func (x *TextTag) SetPropertyEditable(value bool) {
284	var v gobject.Value
285	v.Init(gobject.TypeBooleanVal)
286	v.SetBoolean(value)
287	x.SetProperty("editable", &v)
288}
289
290// GetPropertyEditable gets the "editable" property.
291// Whether the text can be modified by the user.
292func (x *TextTag) GetPropertyEditable() bool {
293	var v gobject.Value
294	x.GetProperty("editable", &v)
295	return v.GetBoolean()
296}
297
298// SetPropertyEditableSet sets the "editable-set" property.
299// Whether the `editable` property is set.
300func (x *TextTag) SetPropertyEditableSet(value bool) {
301	var v gobject.Value
302	v.Init(gobject.TypeBooleanVal)
303	v.SetBoolean(value)
304	x.SetProperty("editable-set", &v)
305}
306
307// GetPropertyEditableSet gets the "editable-set" property.
308// Whether the `editable` property is set.
309func (x *TextTag) GetPropertyEditableSet() bool {
310	var v gobject.Value
311	x.GetProperty("editable-set", &v)
312	return v.GetBoolean()
313}
314
315// SetPropertyFallback sets the "fallback" property.
316// Whether font fallback is enabled.
317//
318// When set to %TRUE, other fonts will be substituted
319// where the current font is missing glyphs.
320func (x *TextTag) SetPropertyFallback(value bool) {
321	var v gobject.Value
322	v.Init(gobject.TypeBooleanVal)
323	v.SetBoolean(value)
324	x.SetProperty("fallback", &v)
325}
326
327// GetPropertyFallback gets the "fallback" property.
328// Whether font fallback is enabled.
329//
330// When set to %TRUE, other fonts will be substituted
331// where the current font is missing glyphs.
332func (x *TextTag) GetPropertyFallback() bool {
333	var v gobject.Value
334	x.GetProperty("fallback", &v)
335	return v.GetBoolean()
336}
337
338// SetPropertyFallbackSet sets the "fallback-set" property.
339// Whether the `fallback` property is set.
340func (x *TextTag) SetPropertyFallbackSet(value bool) {
341	var v gobject.Value
342	v.Init(gobject.TypeBooleanVal)
343	v.SetBoolean(value)
344	x.SetProperty("fallback-set", &v)
345}
346
347// GetPropertyFallbackSet gets the "fallback-set" property.
348// Whether the `fallback` property is set.
349func (x *TextTag) GetPropertyFallbackSet() bool {
350	var v gobject.Value
351	x.GetProperty("fallback-set", &v)
352	return v.GetBoolean()
353}
354
355// SetPropertyFamily sets the "family" property.
356// Name of the font family, e.g. Sans, Helvetica, Times, Monospace.
357func (x *TextTag) SetPropertyFamily(value string) {
358	var v gobject.Value
359	v.Init(gobject.TypeStringVal)
360	v.SetString(&value)
361	x.SetProperty("family", &v)
362}
363
364// GetPropertyFamily gets the "family" property.
365// Name of the font family, e.g. Sans, Helvetica, Times, Monospace.
366func (x *TextTag) GetPropertyFamily() string {
367	var v gobject.Value
368	x.GetProperty("family", &v)
369	return v.GetString()
370}
371
372// SetPropertyFamilySet sets the "family-set" property.
373// Whether the `family` property is set.
374func (x *TextTag) SetPropertyFamilySet(value bool) {
375	var v gobject.Value
376	v.Init(gobject.TypeBooleanVal)
377	v.SetBoolean(value)
378	x.SetProperty("family-set", &v)
379}
380
381// GetPropertyFamilySet gets the "family-set" property.
382// Whether the `family` property is set.
383func (x *TextTag) GetPropertyFamilySet() bool {
384	var v gobject.Value
385	x.GetProperty("family-set", &v)
386	return v.GetBoolean()
387}
388
389// SetPropertyFont sets the "font" property.
390// Font description as string, e.g. \"Sans Italic 12\".
391//
392// Note that the initial value of this property depends on
393// the internals of `PangoFontDescription`.
394func (x *TextTag) SetPropertyFont(value string) {
395	var v gobject.Value
396	v.Init(gobject.TypeStringVal)
397	v.SetString(&value)
398	x.SetProperty("font", &v)
399}
400
401// GetPropertyFont gets the "font" property.
402// Font description as string, e.g. \"Sans Italic 12\".
403//
404// Note that the initial value of this property depends on
405// the internals of `PangoFontDescription`.
406func (x *TextTag) GetPropertyFont() string {
407	var v gobject.Value
408	x.GetProperty("font", &v)
409	return v.GetString()
410}
411
412// SetPropertyFontDesc sets the "font-desc" property.
413// Font description as a `PangoFontDescription`.
414func (x *TextTag) SetPropertyFontDesc(value uintptr) {
415	var v gobject.Value
416	v.Init(gobject.TypePointerVal)
417	v.SetPointer(value)
418	x.SetProperty("font-desc", &v)
419}
420
421// GetPropertyFontDesc gets the "font-desc" property.
422// Font description as a `PangoFontDescription`.
423func (x *TextTag) GetPropertyFontDesc() uintptr {
424	var v gobject.Value
425	x.GetProperty("font-desc", &v)
426	return v.GetPointer()
427}
428
429// SetPropertyFontFeatures sets the "font-features" property.
430// OpenType font features, as a string.
431func (x *TextTag) SetPropertyFontFeatures(value string) {
432	var v gobject.Value
433	v.Init(gobject.TypeStringVal)
434	v.SetString(&value)
435	x.SetProperty("font-features", &v)
436}
437
438// GetPropertyFontFeatures gets the "font-features" property.
439// OpenType font features, as a string.
440func (x *TextTag) GetPropertyFontFeatures() string {
441	var v gobject.Value
442	x.GetProperty("font-features", &v)
443	return v.GetString()
444}
445
446// SetPropertyFontFeaturesSet sets the "font-features-set" property.
447// Whether the `font-features` property is set.
448func (x *TextTag) SetPropertyFontFeaturesSet(value bool) {
449	var v gobject.Value
450	v.Init(gobject.TypeBooleanVal)
451	v.SetBoolean(value)
452	x.SetProperty("font-features-set", &v)
453}
454
455// GetPropertyFontFeaturesSet gets the "font-features-set" property.
456// Whether the `font-features` property is set.
457func (x *TextTag) GetPropertyFontFeaturesSet() bool {
458	var v gobject.Value
459	x.GetProperty("font-features-set", &v)
460	return v.GetBoolean()
461}
462
463// SetPropertyForeground sets the "foreground" property.
464// Foreground color as a string.
465func (x *TextTag) SetPropertyForeground(value string) {
466	var v gobject.Value
467	v.Init(gobject.TypeStringVal)
468	v.SetString(&value)
469	x.SetProperty("foreground", &v)
470}
471
472// SetPropertyForegroundRgba sets the "foreground-rgba" property.
473// Foreground color as a `GdkRGBA`.
474func (x *TextTag) SetPropertyForegroundRgba(value uintptr) {
475	var v gobject.Value
476	v.Init(gobject.TypePointerVal)
477	v.SetPointer(value)
478	x.SetProperty("foreground-rgba", &v)
479}
480
481// GetPropertyForegroundRgba gets the "foreground-rgba" property.
482// Foreground color as a `GdkRGBA`.
483func (x *TextTag) GetPropertyForegroundRgba() uintptr {
484	var v gobject.Value
485	x.GetProperty("foreground-rgba", &v)
486	return v.GetPointer()
487}
488
489// SetPropertyForegroundSet sets the "foreground-set" property.
490// Whether the `foreground` property is set.
491func (x *TextTag) SetPropertyForegroundSet(value bool) {
492	var v gobject.Value
493	v.Init(gobject.TypeBooleanVal)
494	v.SetBoolean(value)
495	x.SetProperty("foreground-set", &v)
496}
497
498// GetPropertyForegroundSet gets the "foreground-set" property.
499// Whether the `foreground` property is set.
500func (x *TextTag) GetPropertyForegroundSet() bool {
501	var v gobject.Value
502	x.GetProperty("foreground-set", &v)
503	return v.GetBoolean()
504}
505
506// SetPropertyIndent sets the "indent" property.
507// Amount to indent the paragraph, in pixels.
508//
509// A negative value of indent will produce a hanging indentation.
510// That is, the first line will have the full width, and subsequent
511// lines will be indented by the absolute value of indent.
512func (x *TextTag) SetPropertyIndent(value int) {
513	var v gobject.Value
514	v.Init(gobject.TypeIntVal)
515	v.SetInt(value)
516	x.SetProperty("indent", &v)
517}
518
519// GetPropertyIndent gets the "indent" property.
520// Amount to indent the paragraph, in pixels.
521//
522// A negative value of indent will produce a hanging indentation.
523// That is, the first line will have the full width, and subsequent
524// lines will be indented by the absolute value of indent.
525func (x *TextTag) GetPropertyIndent() int {
526	var v gobject.Value
527	x.GetProperty("indent", &v)
528	return v.GetInt()
529}
530
531// SetPropertyIndentSet sets the "indent-set" property.
532// Whether the `indent` property is set.
533func (x *TextTag) SetPropertyIndentSet(value bool) {
534	var v gobject.Value
535	v.Init(gobject.TypeBooleanVal)
536	v.SetBoolean(value)
537	x.SetProperty("indent-set", &v)
538}
539
540// GetPropertyIndentSet gets the "indent-set" property.
541// Whether the `indent` property is set.
542func (x *TextTag) GetPropertyIndentSet() bool {
543	var v gobject.Value
544	x.GetProperty("indent-set", &v)
545	return v.GetBoolean()
546}
547
548// SetPropertyInsertHyphens sets the "insert-hyphens" property.
549// Whether to insert hyphens at breaks.
550func (x *TextTag) SetPropertyInsertHyphens(value bool) {
551	var v gobject.Value
552	v.Init(gobject.TypeBooleanVal)
553	v.SetBoolean(value)
554	x.SetProperty("insert-hyphens", &v)
555}
556
557// GetPropertyInsertHyphens gets the "insert-hyphens" property.
558// Whether to insert hyphens at breaks.
559func (x *TextTag) GetPropertyInsertHyphens() bool {
560	var v gobject.Value
561	x.GetProperty("insert-hyphens", &v)
562	return v.GetBoolean()
563}
564
565// SetPropertyInsertHyphensSet sets the "insert-hyphens-set" property.
566// Whether the `insert-hyphens` property is set.
567func (x *TextTag) SetPropertyInsertHyphensSet(value bool) {
568	var v gobject.Value
569	v.Init(gobject.TypeBooleanVal)
570	v.SetBoolean(value)
571	x.SetProperty("insert-hyphens-set", &v)
572}
573
574// GetPropertyInsertHyphensSet gets the "insert-hyphens-set" property.
575// Whether the `insert-hyphens` property is set.
576func (x *TextTag) GetPropertyInsertHyphensSet() bool {
577	var v gobject.Value
578	x.GetProperty("insert-hyphens-set", &v)
579	return v.GetBoolean()
580}
581
582// SetPropertyInvisible sets the "invisible" property.
583// Whether this text is hidden.
584//
585// Note that there may still be problems with the support for invisible
586// text, in particular when navigating programmatically inside a buffer
587// containing invisible segments.
588func (x *TextTag) SetPropertyInvisible(value bool) {
589	var v gobject.Value
590	v.Init(gobject.TypeBooleanVal)
591	v.SetBoolean(value)
592	x.SetProperty("invisible", &v)
593}
594
595// GetPropertyInvisible gets the "invisible" property.
596// Whether this text is hidden.
597//
598// Note that there may still be problems with the support for invisible
599// text, in particular when navigating programmatically inside a buffer
600// containing invisible segments.
601func (x *TextTag) GetPropertyInvisible() bool {
602	var v gobject.Value
603	x.GetProperty("invisible", &v)
604	return v.GetBoolean()
605}
606
607// SetPropertyInvisibleSet sets the "invisible-set" property.
608// Whether the `invisible` property is set.
609func (x *TextTag) SetPropertyInvisibleSet(value bool) {
610	var v gobject.Value
611	v.Init(gobject.TypeBooleanVal)
612	v.SetBoolean(value)
613	x.SetProperty("invisible-set", &v)
614}
615
616// GetPropertyInvisibleSet gets the "invisible-set" property.
617// Whether the `invisible` property is set.
618func (x *TextTag) GetPropertyInvisibleSet() bool {
619	var v gobject.Value
620	x.GetProperty("invisible-set", &v)
621	return v.GetBoolean()
622}
623
624// SetPropertyJustificationSet sets the "justification-set" property.
625// Whether the `justification` property is set.
626func (x *TextTag) SetPropertyJustificationSet(value bool) {
627	var v gobject.Value
628	v.Init(gobject.TypeBooleanVal)
629	v.SetBoolean(value)
630	x.SetProperty("justification-set", &v)
631}
632
633// GetPropertyJustificationSet gets the "justification-set" property.
634// Whether the `justification` property is set.
635func (x *TextTag) GetPropertyJustificationSet() bool {
636	var v gobject.Value
637	x.GetProperty("justification-set", &v)
638	return v.GetBoolean()
639}
640
641// SetPropertyLanguage sets the "language" property.
642// The language this text is in, as an ISO code.
643//
644// Pango can use this as a hint when rendering the text.
645// If not set, an appropriate default will be used.
646//
647// Note that the initial value of this property depends
648// on the current locale, see also [func@Gtk.get_default_language].
649func (x *TextTag) SetPropertyLanguage(value string) {
650	var v gobject.Value
651	v.Init(gobject.TypeStringVal)
652	v.SetString(&value)
653	x.SetProperty("language", &v)
654}
655
656// GetPropertyLanguage gets the "language" property.
657// The language this text is in, as an ISO code.
658//
659// Pango can use this as a hint when rendering the text.
660// If not set, an appropriate default will be used.
661//
662// Note that the initial value of this property depends
663// on the current locale, see also [func@Gtk.get_default_language].
664func (x *TextTag) GetPropertyLanguage() string {
665	var v gobject.Value
666	x.GetProperty("language", &v)
667	return v.GetString()
668}
669
670// SetPropertyLanguageSet sets the "language-set" property.
671// Whether the `language` property is set.
672func (x *TextTag) SetPropertyLanguageSet(value bool) {
673	var v gobject.Value
674	v.Init(gobject.TypeBooleanVal)
675	v.SetBoolean(value)
676	x.SetProperty("language-set", &v)
677}
678
679// GetPropertyLanguageSet gets the "language-set" property.
680// Whether the `language` property is set.
681func (x *TextTag) GetPropertyLanguageSet() bool {
682	var v gobject.Value
683	x.GetProperty("language-set", &v)
684	return v.GetBoolean()
685}
686
687// SetPropertyLeftMargin sets the "left-margin" property.
688// Width of the left margin in pixels.
689func (x *TextTag) SetPropertyLeftMargin(value int) {
690	var v gobject.Value
691	v.Init(gobject.TypeIntVal)
692	v.SetInt(value)
693	x.SetProperty("left-margin", &v)
694}
695
696// GetPropertyLeftMargin gets the "left-margin" property.
697// Width of the left margin in pixels.
698func (x *TextTag) GetPropertyLeftMargin() int {
699	var v gobject.Value
700	x.GetProperty("left-margin", &v)
701	return v.GetInt()
702}
703
704// SetPropertyLeftMarginSet sets the "left-margin-set" property.
705// Whether the `left-margin` property is set.
706func (x *TextTag) SetPropertyLeftMarginSet(value bool) {
707	var v gobject.Value
708	v.Init(gobject.TypeBooleanVal)
709	v.SetBoolean(value)
710	x.SetProperty("left-margin-set", &v)
711}
712
713// GetPropertyLeftMarginSet gets the "left-margin-set" property.
714// Whether the `left-margin` property is set.
715func (x *TextTag) GetPropertyLeftMarginSet() bool {
716	var v gobject.Value
717	x.GetProperty("left-margin-set", &v)
718	return v.GetBoolean()
719}
720
721// SetPropertyLetterSpacing sets the "letter-spacing" property.
722// Extra spacing between graphemes, in Pango units.
723func (x *TextTag) SetPropertyLetterSpacing(value int) {
724	var v gobject.Value
725	v.Init(gobject.TypeIntVal)
726	v.SetInt(value)
727	x.SetProperty("letter-spacing", &v)
728}
729
730// GetPropertyLetterSpacing gets the "letter-spacing" property.
731// Extra spacing between graphemes, in Pango units.
732func (x *TextTag) GetPropertyLetterSpacing() int {
733	var v gobject.Value
734	x.GetProperty("letter-spacing", &v)
735	return v.GetInt()
736}
737
738// SetPropertyLetterSpacingSet sets the "letter-spacing-set" property.
739// Whether the `letter-spacing` property is set.
740func (x *TextTag) SetPropertyLetterSpacingSet(value bool) {
741	var v gobject.Value
742	v.Init(gobject.TypeBooleanVal)
743	v.SetBoolean(value)
744	x.SetProperty("letter-spacing-set", &v)
745}
746
747// GetPropertyLetterSpacingSet gets the "letter-spacing-set" property.
748// Whether the `letter-spacing` property is set.
749func (x *TextTag) GetPropertyLetterSpacingSet() bool {
750	var v gobject.Value
751	x.GetProperty("letter-spacing-set", &v)
752	return v.GetBoolean()
753}
754
755// SetPropertyLineHeight sets the "line-height" property.
756// Factor to scale line height by.
757func (x *TextTag) SetPropertyLineHeight(value float32) {
758	var v gobject.Value
759	v.Init(gobject.TypeFloatVal)
760	v.SetFloat(value)
761	x.SetProperty("line-height", &v)
762}
763
764// GetPropertyLineHeight gets the "line-height" property.
765// Factor to scale line height by.
766func (x *TextTag) GetPropertyLineHeight() float32 {
767	var v gobject.Value
768	x.GetProperty("line-height", &v)
769	return v.GetFloat()
770}
771
772// SetPropertyLineHeightSet sets the "line-height-set" property.
773// Whether the `line-height` property is set.
774func (x *TextTag) SetPropertyLineHeightSet(value bool) {
775	var v gobject.Value
776	v.Init(gobject.TypeBooleanVal)
777	v.SetBoolean(value)
778	x.SetProperty("line-height-set", &v)
779}
780
781// GetPropertyLineHeightSet gets the "line-height-set" property.
782// Whether the `line-height` property is set.
783func (x *TextTag) GetPropertyLineHeightSet() bool {
784	var v gobject.Value
785	x.GetProperty("line-height-set", &v)
786	return v.GetBoolean()
787}
788
789// SetPropertyName sets the "name" property.
790// The name used to refer to the tag.
791//
792// %NULL for anonymous tags.
793func (x *TextTag) SetPropertyName(value string) {
794	var v gobject.Value
795	v.Init(gobject.TypeStringVal)
796	v.SetString(&value)
797	x.SetProperty("name", &v)
798}
799
800// GetPropertyName gets the "name" property.
801// The name used to refer to the tag.
802//
803// %NULL for anonymous tags.
804func (x *TextTag) GetPropertyName() string {
805	var v gobject.Value
806	x.GetProperty("name", &v)
807	return v.GetString()
808}
809
810// SetPropertyOverlineRgba sets the "overline-rgba" property.
811// This property modifies the color of overlines.
812//
813// If not set, overlines will use the foreground color.
814func (x *TextTag) SetPropertyOverlineRgba(value uintptr) {
815	var v gobject.Value
816	v.Init(gobject.TypePointerVal)
817	v.SetPointer(value)
818	x.SetProperty("overline-rgba", &v)
819}
820
821// GetPropertyOverlineRgba gets the "overline-rgba" property.
822// This property modifies the color of overlines.
823//
824// If not set, overlines will use the foreground color.
825func (x *TextTag) GetPropertyOverlineRgba() uintptr {
826	var v gobject.Value
827	x.GetProperty("overline-rgba", &v)
828	return v.GetPointer()
829}
830
831// SetPropertyOverlineRgbaSet sets the "overline-rgba-set" property.
832// Whether the `overline-rgba` property is set.
833func (x *TextTag) SetPropertyOverlineRgbaSet(value bool) {
834	var v gobject.Value
835	v.Init(gobject.TypeBooleanVal)
836	v.SetBoolean(value)
837	x.SetProperty("overline-rgba-set", &v)
838}
839
840// GetPropertyOverlineRgbaSet gets the "overline-rgba-set" property.
841// Whether the `overline-rgba` property is set.
842func (x *TextTag) GetPropertyOverlineRgbaSet() bool {
843	var v gobject.Value
844	x.GetProperty("overline-rgba-set", &v)
845	return v.GetBoolean()
846}
847
848// SetPropertyOverlineSet sets the "overline-set" property.
849// Whether the `overline` property is set.
850func (x *TextTag) SetPropertyOverlineSet(value bool) {
851	var v gobject.Value
852	v.Init(gobject.TypeBooleanVal)
853	v.SetBoolean(value)
854	x.SetProperty("overline-set", &v)
855}
856
857// GetPropertyOverlineSet gets the "overline-set" property.
858// Whether the `overline` property is set.
859func (x *TextTag) GetPropertyOverlineSet() bool {
860	var v gobject.Value
861	x.GetProperty("overline-set", &v)
862	return v.GetBoolean()
863}
864
865// SetPropertyParagraphBackground sets the "paragraph-background" property.
866// The paragraph background color as a string.
867func (x *TextTag) SetPropertyParagraphBackground(value string) {
868	var v gobject.Value
869	v.Init(gobject.TypeStringVal)
870	v.SetString(&value)
871	x.SetProperty("paragraph-background", &v)
872}
873
874// SetPropertyParagraphBackgroundRgba sets the "paragraph-background-rgba" property.
875// The paragraph background color as a `GdkRGBA`.
876func (x *TextTag) SetPropertyParagraphBackgroundRgba(value uintptr) {
877	var v gobject.Value
878	v.Init(gobject.TypePointerVal)
879	v.SetPointer(value)
880	x.SetProperty("paragraph-background-rgba", &v)
881}
882
883// GetPropertyParagraphBackgroundRgba gets the "paragraph-background-rgba" property.
884// The paragraph background color as a `GdkRGBA`.
885func (x *TextTag) GetPropertyParagraphBackgroundRgba() uintptr {
886	var v gobject.Value
887	x.GetProperty("paragraph-background-rgba", &v)
888	return v.GetPointer()
889}
890
891// SetPropertyParagraphBackgroundSet sets the "paragraph-background-set" property.
892// Whether the `paragraph-background` property is set.
893func (x *TextTag) SetPropertyParagraphBackgroundSet(value bool) {
894	var v gobject.Value
895	v.Init(gobject.TypeBooleanVal)
896	v.SetBoolean(value)
897	x.SetProperty("paragraph-background-set", &v)
898}
899
900// GetPropertyParagraphBackgroundSet gets the "paragraph-background-set" property.
901// Whether the `paragraph-background` property is set.
902func (x *TextTag) GetPropertyParagraphBackgroundSet() bool {
903	var v gobject.Value
904	x.GetProperty("paragraph-background-set", &v)
905	return v.GetBoolean()
906}
907
908// SetPropertyPixelsAboveLines sets the "pixels-above-lines" property.
909// Pixels of blank space above paragraphs.
910func (x *TextTag) SetPropertyPixelsAboveLines(value int) {
911	var v gobject.Value
912	v.Init(gobject.TypeIntVal)
913	v.SetInt(value)
914	x.SetProperty("pixels-above-lines", &v)
915}
916
917// GetPropertyPixelsAboveLines gets the "pixels-above-lines" property.
918// Pixels of blank space above paragraphs.
919func (x *TextTag) GetPropertyPixelsAboveLines() int {
920	var v gobject.Value
921	x.GetProperty("pixels-above-lines", &v)
922	return v.GetInt()
923}
924
925// SetPropertyPixelsAboveLinesSet sets the "pixels-above-lines-set" property.
926// Whether the `pixels-above-lines` property is set.
927func (x *TextTag) SetPropertyPixelsAboveLinesSet(value bool) {
928	var v gobject.Value
929	v.Init(gobject.TypeBooleanVal)
930	v.SetBoolean(value)
931	x.SetProperty("pixels-above-lines-set", &v)
932}
933
934// GetPropertyPixelsAboveLinesSet gets the "pixels-above-lines-set" property.
935// Whether the `pixels-above-lines` property is set.
936func (x *TextTag) GetPropertyPixelsAboveLinesSet() bool {
937	var v gobject.Value
938	x.GetProperty("pixels-above-lines-set", &v)
939	return v.GetBoolean()
940}
941
942// SetPropertyPixelsBelowLines sets the "pixels-below-lines" property.
943// Pixels of blank space below paragraphs.
944func (x *TextTag) SetPropertyPixelsBelowLines(value int) {
945	var v gobject.Value
946	v.Init(gobject.TypeIntVal)
947	v.SetInt(value)
948	x.SetProperty("pixels-below-lines", &v)
949}
950
951// GetPropertyPixelsBelowLines gets the "pixels-below-lines" property.
952// Pixels of blank space below paragraphs.
953func (x *TextTag) GetPropertyPixelsBelowLines() int {
954	var v gobject.Value
955	x.GetProperty("pixels-below-lines", &v)
956	return v.GetInt()
957}
958
959// SetPropertyPixelsBelowLinesSet sets the "pixels-below-lines-set" property.
960// Whether the `pixels-below-lines` property is set.
961func (x *TextTag) SetPropertyPixelsBelowLinesSet(value bool) {
962	var v gobject.Value
963	v.Init(gobject.TypeBooleanVal)
964	v.SetBoolean(value)
965	x.SetProperty("pixels-below-lines-set", &v)
966}
967
968// GetPropertyPixelsBelowLinesSet gets the "pixels-below-lines-set" property.
969// Whether the `pixels-below-lines` property is set.
970func (x *TextTag) GetPropertyPixelsBelowLinesSet() bool {
971	var v gobject.Value
972	x.GetProperty("pixels-below-lines-set", &v)
973	return v.GetBoolean()
974}
975
976// SetPropertyPixelsInsideWrap sets the "pixels-inside-wrap" property.
977// Pixels of blank space between wrapped lines in a paragraph.
978func (x *TextTag) SetPropertyPixelsInsideWrap(value int) {
979	var v gobject.Value
980	v.Init(gobject.TypeIntVal)
981	v.SetInt(value)
982	x.SetProperty("pixels-inside-wrap", &v)
983}
984
985// GetPropertyPixelsInsideWrap gets the "pixels-inside-wrap" property.
986// Pixels of blank space between wrapped lines in a paragraph.
987func (x *TextTag) GetPropertyPixelsInsideWrap() int {
988	var v gobject.Value
989	x.GetProperty("pixels-inside-wrap", &v)
990	return v.GetInt()
991}
992
993// SetPropertyPixelsInsideWrapSet sets the "pixels-inside-wrap-set" property.
994// Whether the `pixels-inside-wrap` property is set.
995func (x *TextTag) SetPropertyPixelsInsideWrapSet(value bool) {
996	var v gobject.Value
997	v.Init(gobject.TypeBooleanVal)
998	v.SetBoolean(value)
999	x.SetProperty("pixels-inside-wrap-set", &v)
1000}
1001
1002// GetPropertyPixelsInsideWrapSet gets the "pixels-inside-wrap-set" property.
1003// Whether the `pixels-inside-wrap` property is set.
1004func (x *TextTag) GetPropertyPixelsInsideWrapSet() bool {
1005	var v gobject.Value
1006	x.GetProperty("pixels-inside-wrap-set", &v)
1007	return v.GetBoolean()
1008}
1009
1010// SetPropertyRightMargin sets the "right-margin" property.
1011// Width of the right margin, in pixels.
1012func (x *TextTag) SetPropertyRightMargin(value int) {
1013	var v gobject.Value
1014	v.Init(gobject.TypeIntVal)
1015	v.SetInt(value)
1016	x.SetProperty("right-margin", &v)
1017}
1018
1019// GetPropertyRightMargin gets the "right-margin" property.
1020// Width of the right margin, in pixels.
1021func (x *TextTag) GetPropertyRightMargin() int {
1022	var v gobject.Value
1023	x.GetProperty("right-margin", &v)
1024	return v.GetInt()
1025}
1026
1027// SetPropertyRightMarginSet sets the "right-margin-set" property.
1028// Whether the `right-margin` property is set.
1029func (x *TextTag) SetPropertyRightMarginSet(value bool) {
1030	var v gobject.Value
1031	v.Init(gobject.TypeBooleanVal)
1032	v.SetBoolean(value)
1033	x.SetProperty("right-margin-set", &v)
1034}
1035
1036// GetPropertyRightMarginSet gets the "right-margin-set" property.
1037// Whether the `right-margin` property is set.
1038func (x *TextTag) GetPropertyRightMarginSet() bool {
1039	var v gobject.Value
1040	x.GetProperty("right-margin-set", &v)
1041	return v.GetBoolean()
1042}
1043
1044// SetPropertyRise sets the "rise" property.
1045// Offset of text above the baseline, in Pango units.
1046//
1047// Negative values go below the baseline.
1048func (x *TextTag) SetPropertyRise(value int) {
1049	var v gobject.Value
1050	v.Init(gobject.TypeIntVal)
1051	v.SetInt(value)
1052	x.SetProperty("rise", &v)
1053}
1054
1055// GetPropertyRise gets the "rise" property.
1056// Offset of text above the baseline, in Pango units.
1057//
1058// Negative values go below the baseline.
1059func (x *TextTag) GetPropertyRise() int {
1060	var v gobject.Value
1061	x.GetProperty("rise", &v)
1062	return v.GetInt()
1063}
1064
1065// SetPropertyRiseSet sets the "rise-set" property.
1066// Whether the `rise` property is set.
1067func (x *TextTag) SetPropertyRiseSet(value bool) {
1068	var v gobject.Value
1069	v.Init(gobject.TypeBooleanVal)
1070	v.SetBoolean(value)
1071	x.SetProperty("rise-set", &v)
1072}
1073
1074// GetPropertyRiseSet gets the "rise-set" property.
1075// Whether the `rise` property is set.
1076func (x *TextTag) GetPropertyRiseSet() bool {
1077	var v gobject.Value
1078	x.GetProperty("rise-set", &v)
1079	return v.GetBoolean()
1080}
1081
1082// SetPropertyScale sets the "scale" property.
1083// Font size as a scale factor relative to the default font size.
1084//
1085// This properly adapts to theme changes, etc. so is recommended.
1086// Pango predefines some scales such as %PANGO_SCALE_X_LARGE.
1087func (x *TextTag) SetPropertyScale(value float64) {
1088	var v gobject.Value
1089	v.Init(gobject.TypeDoubleVal)
1090	v.SetDouble(value)
1091	x.SetProperty("scale", &v)
1092}
1093
1094// GetPropertyScale gets the "scale" property.
1095// Font size as a scale factor relative to the default font size.
1096//
1097// This properly adapts to theme changes, etc. so is recommended.
1098// Pango predefines some scales such as %PANGO_SCALE_X_LARGE.
1099func (x *TextTag) GetPropertyScale() float64 {
1100	var v gobject.Value
1101	x.GetProperty("scale", &v)
1102	return v.GetDouble()
1103}
1104
1105// SetPropertyScaleSet sets the "scale-set" property.
1106// Whether the `scale` property is set.
1107func (x *TextTag) SetPropertyScaleSet(value bool) {
1108	var v gobject.Value
1109	v.Init(gobject.TypeBooleanVal)
1110	v.SetBoolean(value)
1111	x.SetProperty("scale-set", &v)
1112}
1113
1114// GetPropertyScaleSet gets the "scale-set" property.
1115// Whether the `scale` property is set.
1116func (x *TextTag) GetPropertyScaleSet() bool {
1117	var v gobject.Value
1118	x.GetProperty("scale-set", &v)
1119	return v.GetBoolean()
1120}
1121
1122// SetPropertySentence sets the "sentence" property.
1123// Whether this tag represents a single sentence.
1124//
1125// This affects cursor movement.
1126func (x *TextTag) SetPropertySentence(value bool) {
1127	var v gobject.Value
1128	v.Init(gobject.TypeBooleanVal)
1129	v.SetBoolean(value)
1130	x.SetProperty("sentence", &v)
1131}
1132
1133// GetPropertySentence gets the "sentence" property.
1134// Whether this tag represents a single sentence.
1135//
1136// This affects cursor movement.
1137func (x *TextTag) GetPropertySentence() bool {
1138	var v gobject.Value
1139	x.GetProperty("sentence", &v)
1140	return v.GetBoolean()
1141}
1142
1143// SetPropertySentenceSet sets the "sentence-set" property.
1144// Whether the `sentence` property is set.
1145func (x *TextTag) SetPropertySentenceSet(value bool) {
1146	var v gobject.Value
1147	v.Init(gobject.TypeBooleanVal)
1148	v.SetBoolean(value)
1149	x.SetProperty("sentence-set", &v)
1150}
1151
1152// GetPropertySentenceSet gets the "sentence-set" property.
1153// Whether the `sentence` property is set.
1154func (x *TextTag) GetPropertySentenceSet() bool {
1155	var v gobject.Value
1156	x.GetProperty("sentence-set", &v)
1157	return v.GetBoolean()
1158}
1159
1160// SetPropertyShowSpacesSet sets the "show-spaces-set" property.
1161// Whether the `show-spaces` property is set.
1162func (x *TextTag) SetPropertyShowSpacesSet(value bool) {
1163	var v gobject.Value
1164	v.Init(gobject.TypeBooleanVal)
1165	v.SetBoolean(value)
1166	x.SetProperty("show-spaces-set", &v)
1167}
1168
1169// GetPropertyShowSpacesSet gets the "show-spaces-set" property.
1170// Whether the `show-spaces` property is set.
1171func (x *TextTag) GetPropertyShowSpacesSet() bool {
1172	var v gobject.Value
1173	x.GetProperty("show-spaces-set", &v)
1174	return v.GetBoolean()
1175}
1176
1177// SetPropertySize sets the "size" property.
1178// Font size in Pango units.
1179func (x *TextTag) SetPropertySize(value int) {
1180	var v gobject.Value
1181	v.Init(gobject.TypeIntVal)
1182	v.SetInt(value)
1183	x.SetProperty("size", &v)
1184}
1185
1186// GetPropertySize gets the "size" property.
1187// Font size in Pango units.
1188func (x *TextTag) GetPropertySize() int {
1189	var v gobject.Value
1190	x.GetProperty("size", &v)
1191	return v.GetInt()
1192}
1193
1194// SetPropertySizePoints sets the "size-points" property.
1195// Font size in points.
1196func (x *TextTag) SetPropertySizePoints(value float64) {
1197	var v gobject.Value
1198	v.Init(gobject.TypeDoubleVal)
1199	v.SetDouble(value)
1200	x.SetProperty("size-points", &v)
1201}
1202
1203// GetPropertySizePoints gets the "size-points" property.
1204// Font size in points.
1205func (x *TextTag) GetPropertySizePoints() float64 {
1206	var v gobject.Value
1207	x.GetProperty("size-points", &v)
1208	return v.GetDouble()
1209}
1210
1211// SetPropertySizeSet sets the "size-set" property.
1212// Whether the `size` property is set.
1213func (x *TextTag) SetPropertySizeSet(value bool) {
1214	var v gobject.Value
1215	v.Init(gobject.TypeBooleanVal)
1216	v.SetBoolean(value)
1217	x.SetProperty("size-set", &v)
1218}
1219
1220// GetPropertySizeSet gets the "size-set" property.
1221// Whether the `size` property is set.
1222func (x *TextTag) GetPropertySizeSet() bool {
1223	var v gobject.Value
1224	x.GetProperty("size-set", &v)
1225	return v.GetBoolean()
1226}
1227
1228// SetPropertyStretchSet sets the "stretch-set" property.
1229// Whether the `stretch` property is set.
1230func (x *TextTag) SetPropertyStretchSet(value bool) {
1231	var v gobject.Value
1232	v.Init(gobject.TypeBooleanVal)
1233	v.SetBoolean(value)
1234	x.SetProperty("stretch-set", &v)
1235}
1236
1237// GetPropertyStretchSet gets the "stretch-set" property.
1238// Whether the `stretch` property is set.
1239func (x *TextTag) GetPropertyStretchSet() bool {
1240	var v gobject.Value
1241	x.GetProperty("stretch-set", &v)
1242	return v.GetBoolean()
1243}
1244
1245// SetPropertyStrikethrough sets the "strikethrough" property.
1246// Whether to strike through the text.
1247func (x *TextTag) SetPropertyStrikethrough(value bool) {
1248	var v gobject.Value
1249	v.Init(gobject.TypeBooleanVal)
1250	v.SetBoolean(value)
1251	x.SetProperty("strikethrough", &v)
1252}
1253
1254// GetPropertyStrikethrough gets the "strikethrough" property.
1255// Whether to strike through the text.
1256func (x *TextTag) GetPropertyStrikethrough() bool {
1257	var v gobject.Value
1258	x.GetProperty("strikethrough", &v)
1259	return v.GetBoolean()
1260}
1261
1262// SetPropertyStrikethroughRgba sets the "strikethrough-rgba" property.
1263// This property modifies the color of strikeouts.
1264//
1265// If not set, strikeouts will use the foreground color.
1266func (x *TextTag) SetPropertyStrikethroughRgba(value uintptr) {
1267	var v gobject.Value
1268	v.Init(gobject.TypePointerVal)
1269	v.SetPointer(value)
1270	x.SetProperty("strikethrough-rgba", &v)
1271}
1272
1273// GetPropertyStrikethroughRgba gets the "strikethrough-rgba" property.
1274// This property modifies the color of strikeouts.
1275//
1276// If not set, strikeouts will use the foreground color.
1277func (x *TextTag) GetPropertyStrikethroughRgba() uintptr {
1278	var v gobject.Value
1279	x.GetProperty("strikethrough-rgba", &v)
1280	return v.GetPointer()
1281}
1282
1283// SetPropertyStrikethroughRgbaSet sets the "strikethrough-rgba-set" property.
1284// If the `strikethrough-rgba` property has been set.
1285func (x *TextTag) SetPropertyStrikethroughRgbaSet(value bool) {
1286	var v gobject.Value
1287	v.Init(gobject.TypeBooleanVal)
1288	v.SetBoolean(value)
1289	x.SetProperty("strikethrough-rgba-set", &v)
1290}
1291
1292// GetPropertyStrikethroughRgbaSet gets the "strikethrough-rgba-set" property.
1293// If the `strikethrough-rgba` property has been set.
1294func (x *TextTag) GetPropertyStrikethroughRgbaSet() bool {
1295	var v gobject.Value
1296	x.GetProperty("strikethrough-rgba-set", &v)
1297	return v.GetBoolean()
1298}
1299
1300// SetPropertyStrikethroughSet sets the "strikethrough-set" property.
1301// Whether the `strikethrough` property is set.
1302func (x *TextTag) SetPropertyStrikethroughSet(value bool) {
1303	var v gobject.Value
1304	v.Init(gobject.TypeBooleanVal)
1305	v.SetBoolean(value)
1306	x.SetProperty("strikethrough-set", &v)
1307}
1308
1309// GetPropertyStrikethroughSet gets the "strikethrough-set" property.
1310// Whether the `strikethrough` property is set.
1311func (x *TextTag) GetPropertyStrikethroughSet() bool {
1312	var v gobject.Value
1313	x.GetProperty("strikethrough-set", &v)
1314	return v.GetBoolean()
1315}
1316
1317// SetPropertyStyleSet sets the "style-set" property.
1318// Whether the `style` property is set.
1319func (x *TextTag) SetPropertyStyleSet(value bool) {
1320	var v gobject.Value
1321	v.Init(gobject.TypeBooleanVal)
1322	v.SetBoolean(value)
1323	x.SetProperty("style-set", &v)
1324}
1325
1326// GetPropertyStyleSet gets the "style-set" property.
1327// Whether the `style` property is set.
1328func (x *TextTag) GetPropertyStyleSet() bool {
1329	var v gobject.Value
1330	x.GetProperty("style-set", &v)
1331	return v.GetBoolean()
1332}
1333
1334// SetPropertyTabs sets the "tabs" property.
1335// Custom tabs for this text.
1336func (x *TextTag) SetPropertyTabs(value uintptr) {
1337	var v gobject.Value
1338	v.Init(gobject.TypePointerVal)
1339	v.SetPointer(value)
1340	x.SetProperty("tabs", &v)
1341}
1342
1343// GetPropertyTabs gets the "tabs" property.
1344// Custom tabs for this text.
1345func (x *TextTag) GetPropertyTabs() uintptr {
1346	var v gobject.Value
1347	x.GetProperty("tabs", &v)
1348	return v.GetPointer()
1349}
1350
1351// SetPropertyTabsSet sets the "tabs-set" property.
1352// Whether the `tabs` property is set.
1353func (x *TextTag) SetPropertyTabsSet(value bool) {
1354	var v gobject.Value
1355	v.Init(gobject.TypeBooleanVal)
1356	v.SetBoolean(value)
1357	x.SetProperty("tabs-set", &v)
1358}
1359
1360// GetPropertyTabsSet gets the "tabs-set" property.
1361// Whether the `tabs` property is set.
1362func (x *TextTag) GetPropertyTabsSet() bool {
1363	var v gobject.Value
1364	x.GetProperty("tabs-set", &v)
1365	return v.GetBoolean()
1366}
1367
1368// SetPropertyTextTransformSet sets the "text-transform-set" property.
1369// Whether the `text-transform` property is set.
1370func (x *TextTag) SetPropertyTextTransformSet(value bool) {
1371	var v gobject.Value
1372	v.Init(gobject.TypeBooleanVal)
1373	v.SetBoolean(value)
1374	x.SetProperty("text-transform-set", &v)
1375}
1376
1377// GetPropertyTextTransformSet gets the "text-transform-set" property.
1378// Whether the `text-transform` property is set.
1379func (x *TextTag) GetPropertyTextTransformSet() bool {
1380	var v gobject.Value
1381	x.GetProperty("text-transform-set", &v)
1382	return v.GetBoolean()
1383}
1384
1385// SetPropertyUnderlineRgba sets the "underline-rgba" property.
1386// This property modifies the color of underlines.
1387//
1388// If not set, underlines will use the foreground color.
1389//
1390// If [property@Gtk.TextTag:underline] is set to %PANGO_UNDERLINE_ERROR,
1391// an alternate color may be applied instead of the foreground. Setting
1392// this property will always override those defaults.
1393func (x *TextTag) SetPropertyUnderlineRgba(value uintptr) {
1394	var v gobject.Value
1395	v.Init(gobject.TypePointerVal)
1396	v.SetPointer(value)
1397	x.SetProperty("underline-rgba", &v)
1398}
1399
1400// GetPropertyUnderlineRgba gets the "underline-rgba" property.
1401// This property modifies the color of underlines.
1402//
1403// If not set, underlines will use the foreground color.
1404//
1405// If [property@Gtk.TextTag:underline] is set to %PANGO_UNDERLINE_ERROR,
1406// an alternate color may be applied instead of the foreground. Setting
1407// this property will always override those defaults.
1408func (x *TextTag) GetPropertyUnderlineRgba() uintptr {
1409	var v gobject.Value
1410	x.GetProperty("underline-rgba", &v)
1411	return v.GetPointer()
1412}
1413
1414// SetPropertyUnderlineRgbaSet sets the "underline-rgba-set" property.
1415// If the `underline-rgba` property has been set.
1416func (x *TextTag) SetPropertyUnderlineRgbaSet(value bool) {
1417	var v gobject.Value
1418	v.Init(gobject.TypeBooleanVal)
1419	v.SetBoolean(value)
1420	x.SetProperty("underline-rgba-set", &v)
1421}
1422
1423// GetPropertyUnderlineRgbaSet gets the "underline-rgba-set" property.
1424// If the `underline-rgba` property has been set.
1425func (x *TextTag) GetPropertyUnderlineRgbaSet() bool {
1426	var v gobject.Value
1427	x.GetProperty("underline-rgba-set", &v)
1428	return v.GetBoolean()
1429}
1430
1431// SetPropertyUnderlineSet sets the "underline-set" property.
1432// Whether the `underline` property is set.
1433func (x *TextTag) SetPropertyUnderlineSet(value bool) {
1434	var v gobject.Value
1435	v.Init(gobject.TypeBooleanVal)
1436	v.SetBoolean(value)
1437	x.SetProperty("underline-set", &v)
1438}
1439
1440// GetPropertyUnderlineSet gets the "underline-set" property.
1441// Whether the `underline` property is set.
1442func (x *TextTag) GetPropertyUnderlineSet() bool {
1443	var v gobject.Value
1444	x.GetProperty("underline-set", &v)
1445	return v.GetBoolean()
1446}
1447
1448// SetPropertyVariantSet sets the "variant-set" property.
1449// Whether the `variant` property is set.
1450func (x *TextTag) SetPropertyVariantSet(value bool) {
1451	var v gobject.Value
1452	v.Init(gobject.TypeBooleanVal)
1453	v.SetBoolean(value)
1454	x.SetProperty("variant-set", &v)
1455}
1456
1457// GetPropertyVariantSet gets the "variant-set" property.
1458// Whether the `variant` property is set.
1459func (x *TextTag) GetPropertyVariantSet() bool {
1460	var v gobject.Value
1461	x.GetProperty("variant-set", &v)
1462	return v.GetBoolean()
1463}
1464
1465// SetPropertyWeight sets the "weight" property.
1466// Font weight as an integer.
1467func (x *TextTag) SetPropertyWeight(value int) {
1468	var v gobject.Value
1469	v.Init(gobject.TypeIntVal)
1470	v.SetInt(value)
1471	x.SetProperty("weight", &v)
1472}
1473
1474// GetPropertyWeight gets the "weight" property.
1475// Font weight as an integer.
1476func (x *TextTag) GetPropertyWeight() int {
1477	var v gobject.Value
1478	x.GetProperty("weight", &v)
1479	return v.GetInt()
1480}
1481
1482// SetPropertyWeightSet sets the "weight-set" property.
1483// Whether the `weight` property is set.
1484func (x *TextTag) SetPropertyWeightSet(value bool) {
1485	var v gobject.Value
1486	v.Init(gobject.TypeBooleanVal)
1487	v.SetBoolean(value)
1488	x.SetProperty("weight-set", &v)
1489}
1490
1491// GetPropertyWeightSet gets the "weight-set" property.
1492// Whether the `weight` property is set.
1493func (x *TextTag) GetPropertyWeightSet() bool {
1494	var v gobject.Value
1495	x.GetProperty("weight-set", &v)
1496	return v.GetBoolean()
1497}
1498
1499// SetPropertyWord sets the "word" property.
1500// Whether this tag represents a single word.
1501//
1502// This affects line breaks and cursor movement.
1503func (x *TextTag) SetPropertyWord(value bool) {
1504	var v gobject.Value
1505	v.Init(gobject.TypeBooleanVal)
1506	v.SetBoolean(value)
1507	x.SetProperty("word", &v)
1508}
1509
1510// GetPropertyWord gets the "word" property.
1511// Whether this tag represents a single word.
1512//
1513// This affects line breaks and cursor movement.
1514func (x *TextTag) GetPropertyWord() bool {
1515	var v gobject.Value
1516	x.GetProperty("word", &v)
1517	return v.GetBoolean()
1518}
1519
1520// SetPropertyWordSet sets the "word-set" property.
1521// Whether the `word` property is set.
1522func (x *TextTag) SetPropertyWordSet(value bool) {
1523	var v gobject.Value
1524	v.Init(gobject.TypeBooleanVal)
1525	v.SetBoolean(value)
1526	x.SetProperty("word-set", &v)
1527}
1528
1529// GetPropertyWordSet gets the "word-set" property.
1530// Whether the `word` property is set.
1531func (x *TextTag) GetPropertyWordSet() bool {
1532	var v gobject.Value
1533	x.GetProperty("word-set", &v)
1534	return v.GetBoolean()
1535}
1536
1537// SetPropertyWrapModeSet sets the "wrap-mode-set" property.
1538// Whether the `wrap-mode` property is set.
1539func (x *TextTag) SetPropertyWrapModeSet(value bool) {
1540	var v gobject.Value
1541	v.Init(gobject.TypeBooleanVal)
1542	v.SetBoolean(value)
1543	x.SetProperty("wrap-mode-set", &v)
1544}
1545
1546// GetPropertyWrapModeSet gets the "wrap-mode-set" property.
1547// Whether the `wrap-mode` property is set.
1548func (x *TextTag) GetPropertyWrapModeSet() bool {
1549	var v gobject.Value
1550	x.GetProperty("wrap-mode-set", &v)
1551	return v.GetBoolean()
1552}
1553
1554func init() {
1555	core.SetPackageName("GTK", "gtk4")
1556	core.SetSharedLibraries("GTK", []string{"libgtk-4.so.1"})
1557	var libs []uintptr
1558	for _, libPath := range core.GetPaths("GTK") {
1559		lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL)
1560		if err != nil {
1561			panic(err)
1562		}
1563		libs = append(libs, lib)
1564	}
1565
1566	core.PuregoSafeRegister(&xTextTagGLibType, libs, "gtk_text_tag_get_type")
1567
1568	core.PuregoSafeRegister(&xNewTextTag, libs, "gtk_text_tag_new")
1569
1570	core.PuregoSafeRegister(&xTextTagChanged, libs, "gtk_text_tag_changed")
1571	core.PuregoSafeRegister(&xTextTagGetPriority, libs, "gtk_text_tag_get_priority")
1572	core.PuregoSafeRegister(&xTextTagSetPriority, libs, "gtk_text_tag_set_priority")
1573
1574}

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 102

↑↓ moveenter openesc close