v0.2.2 9100209

gtkinscription.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	"github.com/bnema/puregotk/v4/pango"
14)
15
16type InscriptionClass struct {
17	_ structs.HostLayout
18
19	ParentClass WidgetClass
20}
21
22func (x *InscriptionClass) GoPointer() uintptr {
23	return uintptr(unsafe.Pointer(x))
24}
25
26// The different methods to handle text in #GtkInscription when it doesn't
27// fit the available space.
28type InscriptionOverflow int
29
30var xInscriptionOverflowGLibType func() types.GType
31
32func InscriptionOverflowGLibType() types.GType {
33	return xInscriptionOverflowGLibType()
34}
35
36const (
37
38	// Clip the remaining text
39	InscriptionOverflowClipValue InscriptionOverflow = 0
40	// Omit characters at the start of the text
41	InscriptionOverflowEllipsizeStartValue InscriptionOverflow = 1
42	// Omit characters at the middle of the text
43	InscriptionOverflowEllipsizeMiddleValue InscriptionOverflow = 2
44	// Omit characters at the end of the text
45	InscriptionOverflowEllipsizeEndValue InscriptionOverflow = 3
46)
47
48// Shows text in a predefined area.
49//
50// You likely want to use `GtkLabel` instead as this widget is intended only
51// for a small subset of use cases. The main scenario envisaged is inside lists
52// such as `GtkColumnView`.
53//
54// While a `GtkLabel` sizes itself depending on the text that is displayed,
55// `GtkInscription` is given a size and inscribes the given text into that
56// space as well as it can.
57//
58// Users of this widget should take care to plan behaviour for the common case
59// where the text doesn't fit exactly in the allocated space.
60//
61// ## CSS nodes
62//
63// `GtkInscription` has a single CSS node with the name label.
64type Inscription struct {
65	Widget
66}
67
68var xInscriptionGLibType func() types.GType
69
70func InscriptionGLibType() types.GType {
71	return xInscriptionGLibType()
72}
73
74func InscriptionNewFromInternalPtr(ptr uintptr) *Inscription {
75	cls := &Inscription{}
76	cls.Ptr = ptr
77	return cls
78}
79
80var xNewInscription func(uintptr) uintptr
81
82// Creates a new `GtkInscription` with the given text.
83func NewInscription(TextVar *string) *Inscription {
84	var cls *Inscription
85
86	TextVarPtr := core.GStrdupNullable(TextVar)
87	defer core.GFreeNullable(TextVarPtr)
88
89	cret := xNewInscription(TextVarPtr)
90
91	if cret == 0 {
92		return nil
93	}
94	gobject.IncreaseRef(cret)
95	cls = &Inscription{}
96	cls.Ptr = cret
97	return cls
98}
99
100var xInscriptionGetAttributes func(uintptr) *pango.AttrList
101
102// Gets the inscription's attribute list.
103func (x *Inscription) GetAttributes() *pango.AttrList {
104
105	cret := xInscriptionGetAttributes(x.GoPointer())
106	return cret
107}
108
109var xInscriptionGetMinChars func(uintptr) uint
110
111// Gets the `min-chars` of the inscription.
112//
113// See the [property@Gtk.Inscription:min-chars] property.
114func (x *Inscription) GetMinChars() uint {
115
116	cret := xInscriptionGetMinChars(x.GoPointer())
117	return cret
118}
119
120var xInscriptionGetMinLines func(uintptr) uint
121
122// Gets the `min-lines` of the inscription.
123//
124// See the [property@Gtk.Inscription:min-lines] property.
125func (x *Inscription) GetMinLines() uint {
126
127	cret := xInscriptionGetMinLines(x.GoPointer())
128	return cret
129}
130
131var xInscriptionGetNatChars func(uintptr) uint
132
133// Gets the `nat-chars` of the inscription.
134//
135// See the [property@Gtk.Inscription:nat-chars] property.
136func (x *Inscription) GetNatChars() uint {
137
138	cret := xInscriptionGetNatChars(x.GoPointer())
139	return cret
140}
141
142var xInscriptionGetNatLines func(uintptr) uint
143
144// Gets the `nat-lines` of the inscription.
145//
146// See the [property@Gtk.Inscription:nat-lines] property.
147func (x *Inscription) GetNatLines() uint {
148
149	cret := xInscriptionGetNatLines(x.GoPointer())
150	return cret
151}
152
153var xInscriptionGetText func(uintptr) string
154
155// Gets the text that is displayed.
156func (x *Inscription) GetText() string {
157
158	cret := xInscriptionGetText(x.GoPointer())
159	return cret
160}
161
162var xInscriptionGetTextOverflow func(uintptr) InscriptionOverflow
163
164// Gets the inscription's overflow method.
165func (x *Inscription) GetTextOverflow() InscriptionOverflow {
166
167	cret := xInscriptionGetTextOverflow(x.GoPointer())
168	return cret
169}
170
171var xInscriptionGetWrapMode func(uintptr) pango.WrapMode
172
173// Returns line wrap mode used by the inscription.
174//
175// See [method@Gtk.Inscription.set_wrap_mode].
176func (x *Inscription) GetWrapMode() pango.WrapMode {
177
178	cret := xInscriptionGetWrapMode(x.GoPointer())
179	return cret
180}
181
182var xInscriptionGetXalign func(uintptr) float32
183
184// Gets the `xalign` of the inscription.
185//
186// See the [property@Gtk.Inscription:xalign] property.
187func (x *Inscription) GetXalign() float32 {
188
189	cret := xInscriptionGetXalign(x.GoPointer())
190	return cret
191}
192
193var xInscriptionGetYalign func(uintptr) float32
194
195// Gets the `yalign` of the inscription.
196//
197// See the [property@Gtk.Inscription:yalign] property.
198func (x *Inscription) GetYalign() float32 {
199
200	cret := xInscriptionGetYalign(x.GoPointer())
201	return cret
202}
203
204var xInscriptionSetAttributes func(uintptr, *pango.AttrList)
205
206// Apply attributes to the inscription text.
207//
208// These attributes will not be evaluated for sizing the inscription.
209func (x *Inscription) SetAttributes(AttrsVar *pango.AttrList) {
210
211	xInscriptionSetAttributes(x.GoPointer(), AttrsVar)
212
213}
214
215var xInscriptionSetMarkup func(uintptr, uintptr)
216
217// Utility function to set the text and attributes to be displayed.
218//
219// See the [property@Gtk.Inscription:markup] property.
220func (x *Inscription) SetMarkup(MarkupVar *string) {
221
222	MarkupVarPtr := core.GStrdupNullable(MarkupVar)
223	defer core.GFreeNullable(MarkupVarPtr)
224
225	xInscriptionSetMarkup(x.GoPointer(), MarkupVarPtr)
226
227}
228
229var xInscriptionSetMinChars func(uintptr, uint)
230
231// Sets the `min-chars` of the inscription.
232//
233// See the [property@Gtk.Inscription:min-chars] property.
234func (x *Inscription) SetMinChars(MinCharsVar uint) {
235
236	xInscriptionSetMinChars(x.GoPointer(), MinCharsVar)
237
238}
239
240var xInscriptionSetMinLines func(uintptr, uint)
241
242// Sets the `min-lines` of the inscription.
243//
244// See the [property@Gtk.Inscription:min-lines] property.
245func (x *Inscription) SetMinLines(MinLinesVar uint) {
246
247	xInscriptionSetMinLines(x.GoPointer(), MinLinesVar)
248
249}
250
251var xInscriptionSetNatChars func(uintptr, uint)
252
253// Sets the `nat-chars` of the inscription.
254//
255// See the [property@Gtk.Inscription:nat-chars] property.
256func (x *Inscription) SetNatChars(NatCharsVar uint) {
257
258	xInscriptionSetNatChars(x.GoPointer(), NatCharsVar)
259
260}
261
262var xInscriptionSetNatLines func(uintptr, uint)
263
264// Sets the `nat-lines` of the inscription.
265//
266// See the [property@Gtk.Inscription:nat-lines] property.
267func (x *Inscription) SetNatLines(NatLinesVar uint) {
268
269	xInscriptionSetNatLines(x.GoPointer(), NatLinesVar)
270
271}
272
273var xInscriptionSetText func(uintptr, uintptr)
274
275// Sets the text to be displayed.
276func (x *Inscription) SetText(TextVar *string) {
277
278	TextVarPtr := core.GStrdupNullable(TextVar)
279	defer core.GFreeNullable(TextVarPtr)
280
281	xInscriptionSetText(x.GoPointer(), TextVarPtr)
282
283}
284
285var xInscriptionSetTextOverflow func(uintptr, InscriptionOverflow)
286
287// Sets what to do when the text doesn't fit.
288func (x *Inscription) SetTextOverflow(OverflowVar InscriptionOverflow) {
289
290	xInscriptionSetTextOverflow(x.GoPointer(), OverflowVar)
291
292}
293
294var xInscriptionSetWrapMode func(uintptr, pango.WrapMode)
295
296// Controls how line wrapping is done.
297func (x *Inscription) SetWrapMode(WrapModeVar pango.WrapMode) {
298
299	xInscriptionSetWrapMode(x.GoPointer(), WrapModeVar)
300
301}
302
303var xInscriptionSetXalign func(uintptr, float32)
304
305// Sets the `xalign` of the inscription.
306//
307// See the [property@Gtk.Inscription:xalign] property.
308func (x *Inscription) SetXalign(XalignVar float32) {
309
310	xInscriptionSetXalign(x.GoPointer(), XalignVar)
311
312}
313
314var xInscriptionSetYalign func(uintptr, float32)
315
316// Sets the `yalign` of the inscription.
317//
318// See the [property@Gtk.Inscription:yalign] property.
319func (x *Inscription) SetYalign(YalignVar float32) {
320
321	xInscriptionSetYalign(x.GoPointer(), YalignVar)
322
323}
324
325func (c *Inscription) GoPointer() uintptr {
326	if c == nil {
327		return 0
328	}
329	return c.Ptr
330}
331
332func (c *Inscription) SetGoPointer(ptr uintptr) {
333	c.Ptr = ptr
334}
335
336// SetPropertyAttributes sets the "attributes" property.
337// A list of style attributes to apply to the text of the inscription.
338func (x *Inscription) SetPropertyAttributes(value uintptr) {
339	var v gobject.Value
340	v.Init(gobject.TypePointerVal)
341	v.SetPointer(value)
342	x.SetProperty("attributes", &v)
343}
344
345// GetPropertyAttributes gets the "attributes" property.
346// A list of style attributes to apply to the text of the inscription.
347func (x *Inscription) GetPropertyAttributes() uintptr {
348	var v gobject.Value
349	x.GetProperty("attributes", &v)
350	return v.GetPointer()
351}
352
353// SetPropertyMarkup sets the "markup" property.
354// Utility property that sets both the [property@Gtk.Inscription:text] and
355// [property@Gtk.Inscription:attributes] properties, mainly intended for use in
356// GtkBuilder ui files to ease translation support and bindings.
357//
358// This function uses [func@Pango.parse_markup] to parse the markup into text and
359// attributes. The markup must be valid. If you cannot ensure that, consider using
360// [func@Pango.parse_markup] and setting the two properties yourself.
361func (x *Inscription) SetPropertyMarkup(value string) {
362	var v gobject.Value
363	v.Init(gobject.TypeStringVal)
364	v.SetString(&value)
365	x.SetProperty("markup", &v)
366}
367
368// SetPropertyMinChars sets the "min-chars" property.
369// The number of characters that should fit into the inscription at minimum.
370//
371// This influences the requested width, not the width actually given to the widget,
372// which might turn out to be larger.
373//
374// Note that this is an approximate character width, so some characters might be
375// wider and some might be thinner, so do not expect the number of characters to
376// exactly match.
377//
378// If you set this property to 0, the inscription will not request any width at all
379// and its width will be determined entirely by its surroundings.
380func (x *Inscription) SetPropertyMinChars(value uint) {
381	var v gobject.Value
382	v.Init(gobject.TypeUintVal)
383	v.SetUint(value)
384	x.SetProperty("min-chars", &v)
385}
386
387// GetPropertyMinChars gets the "min-chars" property.
388// The number of characters that should fit into the inscription at minimum.
389//
390// This influences the requested width, not the width actually given to the widget,
391// which might turn out to be larger.
392//
393// Note that this is an approximate character width, so some characters might be
394// wider and some might be thinner, so do not expect the number of characters to
395// exactly match.
396//
397// If you set this property to 0, the inscription will not request any width at all
398// and its width will be determined entirely by its surroundings.
399func (x *Inscription) GetPropertyMinChars() uint {
400	var v gobject.Value
401	x.GetProperty("min-chars", &v)
402	return v.GetUint()
403}
404
405// SetPropertyMinLines sets the "min-lines" property.
406// The number of lines that should fit into the inscription at minimum.
407//
408// This influences the requested height, not the height actually given to the widget,
409// which might turn out to be larger.
410//
411// Note that this is an approximate line height, so if the text uses things like fancy
412// Unicode or attribute that influence the height, the text might not fit.
413//
414// If you set this property to 0, the inscription will not request any height at all
415// and its height will be determined entirely by its surroundings.
416func (x *Inscription) SetPropertyMinLines(value uint) {
417	var v gobject.Value
418	v.Init(gobject.TypeUintVal)
419	v.SetUint(value)
420	x.SetProperty("min-lines", &v)
421}
422
423// GetPropertyMinLines gets the "min-lines" property.
424// The number of lines that should fit into the inscription at minimum.
425//
426// This influences the requested height, not the height actually given to the widget,
427// which might turn out to be larger.
428//
429// Note that this is an approximate line height, so if the text uses things like fancy
430// Unicode or attribute that influence the height, the text might not fit.
431//
432// If you set this property to 0, the inscription will not request any height at all
433// and its height will be determined entirely by its surroundings.
434func (x *Inscription) GetPropertyMinLines() uint {
435	var v gobject.Value
436	x.GetProperty("min-lines", &v)
437	return v.GetUint()
438}
439
440// SetPropertyNatChars sets the "nat-chars" property.
441// The number of characters that should ideally fit into the inscription.
442//
443// This influences the requested width, not the width actually given to the widget.
444// The widget might turn out larger as well as smaller.
445//
446// If this property is set to a value smaller than [property@Gtk.Inscription:min-chars],
447// that value will be used. In particular, for the default value of 0, this will always
448// be the case.
449func (x *Inscription) SetPropertyNatChars(value uint) {
450	var v gobject.Value
451	v.Init(gobject.TypeUintVal)
452	v.SetUint(value)
453	x.SetProperty("nat-chars", &v)
454}
455
456// GetPropertyNatChars gets the "nat-chars" property.
457// The number of characters that should ideally fit into the inscription.
458//
459// This influences the requested width, not the width actually given to the widget.
460// The widget might turn out larger as well as smaller.
461//
462// If this property is set to a value smaller than [property@Gtk.Inscription:min-chars],
463// that value will be used. In particular, for the default value of 0, this will always
464// be the case.
465func (x *Inscription) GetPropertyNatChars() uint {
466	var v gobject.Value
467	x.GetProperty("nat-chars", &v)
468	return v.GetUint()
469}
470
471// SetPropertyNatLines sets the "nat-lines" property.
472// The number of lines that should ideally fit into the inscription.
473//
474// This influences the requested height, not the height actually given to the widget.
475// The widget might turn out larger as well as smaller.
476//
477// If this property is set to a value smaller than [property@Gtk.Inscription:min-lines],
478// that value will be used. In particular, for the default value of 0, this will always
479// be the case.
480func (x *Inscription) SetPropertyNatLines(value uint) {
481	var v gobject.Value
482	v.Init(gobject.TypeUintVal)
483	v.SetUint(value)
484	x.SetProperty("nat-lines", &v)
485}
486
487// GetPropertyNatLines gets the "nat-lines" property.
488// The number of lines that should ideally fit into the inscription.
489//
490// This influences the requested height, not the height actually given to the widget.
491// The widget might turn out larger as well as smaller.
492//
493// If this property is set to a value smaller than [property@Gtk.Inscription:min-lines],
494// that value will be used. In particular, for the default value of 0, this will always
495// be the case.
496func (x *Inscription) GetPropertyNatLines() uint {
497	var v gobject.Value
498	x.GetProperty("nat-lines", &v)
499	return v.GetUint()
500}
501
502// SetPropertyText sets the "text" property.
503// The displayed text.
504func (x *Inscription) SetPropertyText(value string) {
505	var v gobject.Value
506	v.Init(gobject.TypeStringVal)
507	v.SetString(&value)
508	x.SetProperty("text", &v)
509}
510
511// GetPropertyText gets the "text" property.
512// The displayed text.
513func (x *Inscription) GetPropertyText() string {
514	var v gobject.Value
515	x.GetProperty("text", &v)
516	return v.GetString()
517}
518
519// SetPropertyXalign sets the "xalign" property.
520// The horizontal alignment of the text inside the allocated size.
521//
522// Compare this to [property@Gtk.Widget:halign], which determines how the
523// inscription's size allocation is positioned in the available space.
524func (x *Inscription) SetPropertyXalign(value float32) {
525	var v gobject.Value
526	v.Init(gobject.TypeFloatVal)
527	v.SetFloat(value)
528	x.SetProperty("xalign", &v)
529}
530
531// GetPropertyXalign gets the "xalign" property.
532// The horizontal alignment of the text inside the allocated size.
533//
534// Compare this to [property@Gtk.Widget:halign], which determines how the
535// inscription's size allocation is positioned in the available space.
536func (x *Inscription) GetPropertyXalign() float32 {
537	var v gobject.Value
538	x.GetProperty("xalign", &v)
539	return v.GetFloat()
540}
541
542// SetPropertyYalign sets the "yalign" property.
543// The vertical alignment of the text inside the allocated size.
544//
545// Compare this to [property@Gtk.Widget:valign], which determines how the
546// inscription's size allocation is positioned in the available space.
547func (x *Inscription) SetPropertyYalign(value float32) {
548	var v gobject.Value
549	v.Init(gobject.TypeFloatVal)
550	v.SetFloat(value)
551	x.SetProperty("yalign", &v)
552}
553
554// GetPropertyYalign gets the "yalign" property.
555// The vertical alignment of the text inside the allocated size.
556//
557// Compare this to [property@Gtk.Widget:valign], which determines how the
558// inscription's size allocation is positioned in the available space.
559func (x *Inscription) GetPropertyYalign() float32 {
560	var v gobject.Value
561	x.GetProperty("yalign", &v)
562	return v.GetFloat()
563}
564
565// Requests the user's screen reader to announce the given message.
566//
567// This kind of notification is useful for messages that
568// either have only a visual representation or that are not
569// exposed visually at all, e.g. a notification about a
570// successful operation.
571//
572// Also, by using this API, you can ensure that the message
573// does not interrupts the user's current screen reader output.
574func (x *Inscription) Announce(MessageVar string, PriorityVar AccessibleAnnouncementPriority) {
575
576	XGtkAccessibleAnnounce(x.GoPointer(), MessageVar, PriorityVar)
577
578}
579
580// Retrieves the accessible parent for an accessible object.
581//
582// This function returns `NULL` for top level widgets.
583func (x *Inscription) GetAccessibleParent() *AccessibleBase {
584	var cls *AccessibleBase
585
586	cret := XGtkAccessibleGetAccessibleParent(x.GoPointer())
587
588	if cret == 0 {
589		return nil
590	}
591	cls = &AccessibleBase{}
592	cls.Ptr = cret
593	return cls
594}
595
596// Retrieves the accessible role of an accessible object.
597func (x *Inscription) GetAccessibleRole() AccessibleRole {
598
599	cret := XGtkAccessibleGetAccessibleRole(x.GoPointer())
600	return cret
601}
602
603// Retrieves the implementation for the given accessible object.
604func (x *Inscription) GetAtContext() *ATContext {
605	var cls *ATContext
606
607	cret := XGtkAccessibleGetAtContext(x.GoPointer())
608
609	if cret == 0 {
610		return nil
611	}
612	cls = &ATContext{}
613	cls.Ptr = cret
614	return cls
615}
616
617// Queries the coordinates and dimensions of this accessible
618//
619// This functionality can be overridden by `GtkAccessible`
620// implementations, e.g. to get the bounds from an ignored
621// child widget.
622func (x *Inscription) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool {
623
624	cret := XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar)
625	return cret
626}
627
628// Retrieves the first accessible child of an accessible object.
629func (x *Inscription) GetFirstAccessibleChild() *AccessibleBase {
630	var cls *AccessibleBase
631
632	cret := XGtkAccessibleGetFirstAccessibleChild(x.GoPointer())
633
634	if cret == 0 {
635		return nil
636	}
637	cls = &AccessibleBase{}
638	cls.Ptr = cret
639	return cls
640}
641
642// Retrieves the next accessible sibling of an accessible object
643func (x *Inscription) GetNextAccessibleSibling() *AccessibleBase {
644	var cls *AccessibleBase
645
646	cret := XGtkAccessibleGetNextAccessibleSibling(x.GoPointer())
647
648	if cret == 0 {
649		return nil
650	}
651	cls = &AccessibleBase{}
652	cls.Ptr = cret
653	return cls
654}
655
656// Queries a platform state, such as focus.
657//
658// This functionality can be overridden by `GtkAccessible`
659// implementations, e.g. to get platform state from an ignored
660// child widget, as is the case for `GtkText` wrappers.
661func (x *Inscription) GetPlatformState(StateVar AccessiblePlatformState) bool {
662
663	cret := XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar)
664	return cret
665}
666
667// Resets the accessible property to its default value.
668func (x *Inscription) ResetProperty(PropertyVar AccessibleProperty) {
669
670	XGtkAccessibleResetProperty(x.GoPointer(), PropertyVar)
671
672}
673
674// Resets the accessible relation to its default value.
675func (x *Inscription) ResetRelation(RelationVar AccessibleRelation) {
676
677	XGtkAccessibleResetRelation(x.GoPointer(), RelationVar)
678
679}
680
681// Resets the accessible state to its default value.
682func (x *Inscription) ResetState(StateVar AccessibleState) {
683
684	XGtkAccessibleResetState(x.GoPointer(), StateVar)
685
686}
687
688// Sets the parent and sibling of an accessible object.
689//
690// This function is meant to be used by accessible implementations that are
691// not part of the widget hierarchy, and but act as a logical bridge between
692// widgets. For instance, if a widget creates an object that holds metadata
693// for each child, and you want that object to implement the `GtkAccessible`
694// interface, you will use this function to ensure that the parent of each
695// child widget is the metadata object, and the parent of each metadata
696// object is the container widget.
697func (x *Inscription) SetAccessibleParent(ParentVar Accessible, NextSiblingVar Accessible) {
698
699	XGtkAccessibleSetAccessibleParent(x.GoPointer(), ParentVar.GoPointer(), NextSiblingVar.GoPointer())
700
701}
702
703// Updates the next accessible sibling.
704//
705// That might be useful when a new child of a custom accessible
706// is created, and it needs to be linked to a previous child.
707func (x *Inscription) UpdateNextAccessibleSibling(NewSiblingVar Accessible) {
708
709	XGtkAccessibleUpdateNextAccessibleSibling(x.GoPointer(), NewSiblingVar.GoPointer())
710
711}
712
713// Informs ATs that the platform state has changed.
714//
715// This function should be used by `GtkAccessible` implementations that
716// have a platform state but are not widgets. Widgets handle platform
717// states automatically.
718func (x *Inscription) UpdatePlatformState(StateVar AccessiblePlatformState) {
719
720	XGtkAccessibleUpdatePlatformState(x.GoPointer(), StateVar)
721
722}
723
724// Updates a list of accessible properties.
725//
726// See the [enum@Gtk.AccessibleProperty] documentation for the
727// value types of accessible properties.
728//
729// This function should be called by `GtkWidget` types whenever
730// an accessible property change must be communicated to assistive
731// technologies.
732//
733// Example:
734// ```c
735// value = gtk_adjustment_get_value (adjustment);
736// gtk_accessible_update_property (GTK_ACCESSIBLE (spin_button),
737//
738//	GTK_ACCESSIBLE_PROPERTY_VALUE_NOW, value,
739//	-1);
740//
741// ```
742func (x *Inscription) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs ...interface{}) {
743
744	XGtkAccessibleUpdateProperty(x.GoPointer(), FirstPropertyVar, varArgs...)
745
746}
747
748// Updates an array of accessible properties.
749//
750// This function should be called by `GtkWidget` types whenever an accessible
751// property change must be communicated to assistive technologies.
752//
753// This function is meant to be used by language bindings.
754func (x *Inscription) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) {
755
756	XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar)
757
758}
759
760// Updates a list of accessible relations.
761//
762// This function should be called by `GtkWidget` types whenever an accessible
763// relation change must be communicated to assistive technologies.
764//
765// If the [enum@Gtk.AccessibleRelation] requires a list of references,
766// you should pass each reference individually, followed by `NULL`, e.g.
767//
768// ```c
769// gtk_accessible_update_relation (accessible,
770//
771//	GTK_ACCESSIBLE_RELATION_CONTROLS,
772//	  ref1, NULL,
773//	GTK_ACCESSIBLE_RELATION_LABELLED_BY,
774//	  ref1, ref2, ref3, NULL,
775//	-1);
776//
777// ```
778func (x *Inscription) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs ...interface{}) {
779
780	XGtkAccessibleUpdateRelation(x.GoPointer(), FirstRelationVar, varArgs...)
781
782}
783
784// Updates an array of accessible relations.
785//
786// This function should be called by `GtkWidget` types whenever an accessible
787// relation change must be communicated to assistive technologies.
788//
789// This function is meant to be used by language bindings.
790func (x *Inscription) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) {
791
792	XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar)
793
794}
795
796// Updates a list of accessible states.
797//
798// See the [enum@Gtk.AccessibleState] documentation for the
799// value types of accessible states.
800//
801// This function should be called by `GtkWidget` types whenever
802// an accessible state change must be communicated to assistive
803// technologies.
804//
805// Example:
806//
807// ```c
808// value = GTK_ACCESSIBLE_TRISTATE_MIXED;
809// gtk_accessible_update_state (GTK_ACCESSIBLE (check_button),
810//
811//	GTK_ACCESSIBLE_STATE_CHECKED, value,
812//	-1);
813//
814// ```
815func (x *Inscription) UpdateState(FirstStateVar AccessibleState, varArgs ...interface{}) {
816
817	XGtkAccessibleUpdateState(x.GoPointer(), FirstStateVar, varArgs...)
818
819}
820
821// Updates an array of accessible states.
822//
823// This function should be called by `GtkWidget` types whenever an accessible
824// state change must be communicated to assistive technologies.
825//
826// This function is meant to be used by language bindings.
827func (x *Inscription) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) {
828
829	XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar)
830
831}
832
833// Updates the position of the caret.
834//
835// Implementations of the `GtkAccessibleText` interface should call this
836// function every time the caret has moved, in order to notify assistive
837// technologies.
838func (x *Inscription) UpdateCaretPosition() {
839
840	XGtkAccessibleTextUpdateCaretPosition(x.GoPointer())
841
842}
843
844// Notifies assistive technologies of a change in contents.
845//
846// Implementations of the `GtkAccessibleText` interface should call this
847// function every time their contents change as the result of an operation,
848// like an insertion or a removal.
849//
850// Note: If the change is a deletion, this function must be called *before*
851// removing the contents, if it is an insertion, it must be called *after*
852// inserting the new contents.
853func (x *Inscription) UpdateContents(ChangeVar AccessibleTextContentChange, StartVar uint, EndVar uint) {
854
855	XGtkAccessibleTextUpdateContents(x.GoPointer(), ChangeVar, StartVar, EndVar)
856
857}
858
859// Updates the boundary of the selection.
860//
861// Implementations of the `GtkAccessibleText` interface should call this
862// function every time the selection has moved, in order to notify assistive
863// technologies.
864func (x *Inscription) UpdateSelectionBound() {
865
866	XGtkAccessibleTextUpdateSelectionBound(x.GoPointer())
867
868}
869
870// Gets the ID of the @buildable object.
871//
872// `GtkBuilder` sets the name based on the ID attribute
873// of the `<object>` tag used to construct the @buildable.
874func (x *Inscription) GetBuildableId() string {
875
876	cret := XGtkBuildableGetBuildableId(x.GoPointer())
877	return cret
878}
879
880func init() {
881	core.SetPackageName("GTK", "gtk4")
882	core.SetSharedLibraries("GTK", []string{"libgtk-4.so.1"})
883	var libs []uintptr
884	for _, libPath := range core.GetPaths("GTK") {
885		lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL)
886		if err != nil {
887			panic(err)
888		}
889		libs = append(libs, lib)
890	}
891
892	core.PuregoSafeRegister(&xInscriptionOverflowGLibType, libs, "gtk_inscription_overflow_get_type")
893
894	core.PuregoSafeRegister(&xInscriptionGLibType, libs, "gtk_inscription_get_type")
895
896	core.PuregoSafeRegister(&xNewInscription, libs, "gtk_inscription_new")
897
898	core.PuregoSafeRegister(&xInscriptionGetAttributes, libs, "gtk_inscription_get_attributes")
899	core.PuregoSafeRegister(&xInscriptionGetMinChars, libs, "gtk_inscription_get_min_chars")
900	core.PuregoSafeRegister(&xInscriptionGetMinLines, libs, "gtk_inscription_get_min_lines")
901	core.PuregoSafeRegister(&xInscriptionGetNatChars, libs, "gtk_inscription_get_nat_chars")
902	core.PuregoSafeRegister(&xInscriptionGetNatLines, libs, "gtk_inscription_get_nat_lines")
903	core.PuregoSafeRegister(&xInscriptionGetText, libs, "gtk_inscription_get_text")
904	core.PuregoSafeRegister(&xInscriptionGetTextOverflow, libs, "gtk_inscription_get_text_overflow")
905	core.PuregoSafeRegister(&xInscriptionGetWrapMode, libs, "gtk_inscription_get_wrap_mode")
906	core.PuregoSafeRegister(&xInscriptionGetXalign, libs, "gtk_inscription_get_xalign")
907	core.PuregoSafeRegister(&xInscriptionGetYalign, libs, "gtk_inscription_get_yalign")
908	core.PuregoSafeRegister(&xInscriptionSetAttributes, libs, "gtk_inscription_set_attributes")
909	core.PuregoSafeRegister(&xInscriptionSetMarkup, libs, "gtk_inscription_set_markup")
910	core.PuregoSafeRegister(&xInscriptionSetMinChars, libs, "gtk_inscription_set_min_chars")
911	core.PuregoSafeRegister(&xInscriptionSetMinLines, libs, "gtk_inscription_set_min_lines")
912	core.PuregoSafeRegister(&xInscriptionSetNatChars, libs, "gtk_inscription_set_nat_chars")
913	core.PuregoSafeRegister(&xInscriptionSetNatLines, libs, "gtk_inscription_set_nat_lines")
914	core.PuregoSafeRegister(&xInscriptionSetText, libs, "gtk_inscription_set_text")
915	core.PuregoSafeRegister(&xInscriptionSetTextOverflow, libs, "gtk_inscription_set_text_overflow")
916	core.PuregoSafeRegister(&xInscriptionSetWrapMode, libs, "gtk_inscription_set_wrap_mode")
917	core.PuregoSafeRegister(&xInscriptionSetXalign, libs, "gtk_inscription_set_xalign")
918	core.PuregoSafeRegister(&xInscriptionSetYalign, libs, "gtk_inscription_set_yalign")
919
920}

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