v0.2.1 c0399be

gtkenums.go RawHistoryFolder

1// Package gtk was automatically generated by github.com/bnema/puregotk DO NOT EDIT
2package gtk
3
4import (
5	"github.com/ebitengine/purego"
6
7	"github.com/bnema/puregotk/pkg/core"
8	"github.com/bnema/puregotk/v4/gobject/types"
9)
10
11const (
12	// An undefined value. The accessible attribute is either unset, or its
13	// value is undefined.
14	ACCESSIBLE_VALUE_UNDEFINED int = -1
15)
16
17// Describes hints that might be taken into account by input methods
18// or applications.
19//
20// Note that input methods may already tailor their behaviour according
21// to the [enum@InputPurpose] of the entry.
22//
23// Some common sense is expected when using these flags - mixing
24// %GTK_INPUT_HINT_LOWERCASE with any of the uppercase hints makes no sense.
25//
26// This enumeration may be extended in the future; input methods should
27// ignore unknown values.
28type InputHints int
29
30var xInputHintsGLibType func() types.GType
31
32func InputHintsGLibType() types.GType {
33	return xInputHintsGLibType()
34}
35
36const (
37
38	// No special behaviour suggested
39	InputHintNoneValue InputHints = 0
40	// Suggest checking for typos
41	InputHintSpellcheckValue InputHints = 1
42	// Suggest not checking for typos
43	InputHintNoSpellcheckValue InputHints = 2
44	// Suggest word completion
45	InputHintWordCompletionValue InputHints = 4
46	// Suggest to convert all text to lowercase
47	InputHintLowercaseValue InputHints = 8
48	// Suggest to capitalize all text
49	InputHintUppercaseCharsValue InputHints = 16
50	// Suggest to capitalize the first
51	//   character of each word
52	InputHintUppercaseWordsValue InputHints = 32
53	// Suggest to capitalize the
54	//   first word of each sentence
55	InputHintUppercaseSentencesValue InputHints = 64
56	// Suggest to not show an onscreen keyboard
57	//   (e.g for a calculator that already has all the keys).
58	InputHintInhibitOskValue InputHints = 128
59	// The text is vertical
60	InputHintVerticalWritingValue InputHints = 256
61	// Suggest offering Emoji support
62	InputHintEmojiValue InputHints = 512
63	// Suggest not offering Emoji support
64	InputHintNoEmojiValue InputHints = 1024
65	// Request that the input method should not
66	//    update personalized data (like typing history)
67	InputHintPrivateValue InputHints = 2048
68)
69
70// List of actions to perform when scrolling to items in
71// a list widget.
72type ListScrollFlags int
73
74var xListScrollFlagsGLibType func() types.GType
75
76func ListScrollFlagsGLibType() types.GType {
77	return xListScrollFlagsGLibType()
78}
79
80const (
81
82	// Don't do anything extra
83	ListScrollNoneValue ListScrollFlags = 0
84	// Focus the target item
85	ListScrollFocusValue ListScrollFlags = 1
86	// Select the target item and
87	//   unselect all other items.
88	ListScrollSelectValue ListScrollFlags = 2
89)
90
91// Flags that influence the behavior of [method@Widget.pick].
92type PickFlags int
93
94var xPickFlagsGLibType func() types.GType
95
96func PickFlagsGLibType() types.GType {
97	return xPickFlagsGLibType()
98}
99
100const (
101
102	// The default behavior, include widgets that are receiving events
103	PickDefaultValue PickFlags = 0
104	// Include widgets that are insensitive
105	PickInsensitiveValue PickFlags = 1
106	// Include widgets that are marked as non-targetable. See [property@Widget:can-target]
107	PickNonTargetableValue PickFlags = 2
108)
109
110// Flags that affect how [class@Gtk.PopoverMenu] widgets built from
111// a [class@Gio.MenuModel] are created and displayed.
112type PopoverMenuFlags int
113
114var xPopoverMenuFlagsGLibType func() types.GType
115
116func PopoverMenuFlagsGLibType() types.GType {
117	return xPopoverMenuFlagsGLibType()
118}
119
120const (
121
122	// Submenus are presented as sliding submenus that replace the main menu.
123	PopoverMenuSlidingValue PopoverMenuFlags = 0
124	// Submenus are presented as traditional, nested
125	//   popovers.
126	PopoverMenuNestedValue PopoverMenuFlags = 1
127)
128
129// Describes a widget state.
130//
131// Widget states are used to match the widget against CSS pseudo-classes.
132// Note that GTK extends the regular CSS classes and sometimes uses
133// different names.
134type StateFlags int
135
136var xStateFlagsGLibType func() types.GType
137
138func StateFlagsGLibType() types.GType {
139	return xStateFlagsGLibType()
140}
141
142const (
143
144	// State during normal operation
145	StateFlagNormalValue StateFlags = 0
146	// Widget is active
147	StateFlagActiveValue StateFlags = 1
148	// Widget has a mouse pointer over it
149	StateFlagPrelightValue StateFlags = 2
150	// Widget is selected
151	StateFlagSelectedValue StateFlags = 4
152	// Widget is insensitive
153	StateFlagInsensitiveValue StateFlags = 8
154	// Widget is inconsistent
155	StateFlagInconsistentValue StateFlags = 16
156	// Widget has the keyboard focus
157	StateFlagFocusedValue StateFlags = 32
158	// Widget is in a background toplevel window
159	StateFlagBackdropValue StateFlags = 64
160	// Widget is in left-to-right text direction
161	StateFlagDirLtrValue StateFlags = 128
162	// Widget is in right-to-left text direction
163	StateFlagDirRtlValue StateFlags = 256
164	// Widget is a link
165	StateFlagLinkValue StateFlags = 512
166	// The location the widget points to has already been visited
167	StateFlagVisitedValue StateFlags = 1024
168	// Widget is checked
169	StateFlagCheckedValue StateFlags = 2048
170	// Widget is highlighted as a drop target for DND
171	StateFlagDropActiveValue StateFlags = 4096
172	// Widget has the visible focus
173	StateFlagFocusVisibleValue StateFlags = 8192
174	// Widget contains the keyboard focus
175	StateFlagFocusWithinValue StateFlags = 16384
176)
177
178// Values for [callback@Gtk.TextBufferCommitNotify] to denote the
179// point of the notification.
180type TextBufferNotifyFlags int
181
182var xTextBufferNotifyFlagsGLibType func() types.GType
183
184func TextBufferNotifyFlagsGLibType() types.GType {
185	return xTextBufferNotifyFlagsGLibType()
186}
187
188const (
189
190	// Be notified before text
191	//   is inserted into the underlying buffer.
192	TextBufferNotifyBeforeInsertValue TextBufferNotifyFlags = 1
193	// Be notified after text
194	//   has been inserted into the underlying buffer.
195	TextBufferNotifyAfterInsertValue TextBufferNotifyFlags = 2
196	// Be notified before text
197	//   is deleted from the underlying buffer.
198	TextBufferNotifyBeforeDeleteValue TextBufferNotifyFlags = 4
199	// Be notified after text
200	//   has been deleted from the underlying buffer.
201	TextBufferNotifyAfterDeleteValue TextBufferNotifyFlags = 8
202)
203
204// The priority of an accessibility announcement.
205type AccessibleAnnouncementPriority int
206
207var xAccessibleAnnouncementPriorityGLibType func() types.GType
208
209func AccessibleAnnouncementPriorityGLibType() types.GType {
210	return xAccessibleAnnouncementPriorityGLibType()
211}
212
213const (
214
215	// The announcement is low priority,
216	//   and might be read only on the user's request.
217	AccessibleAnnouncementPriorityLowValue AccessibleAnnouncementPriority = 0
218	// The announcement is of medium
219	//   priority, and is usually spoken at the next opportunity, such as at the
220	//   end of speaking the current sentence or when the user pauses typing.
221	AccessibleAnnouncementPriorityMediumValue AccessibleAnnouncementPriority = 1
222	// The announcement is of high
223	//   priority, and is usually spoken immediately. Because an interruption
224	//   might disorient users or cause them to not complete their current task,
225	//   authors SHOULD NOT use high priority announcements unless the
226	//   interruption is imperative. An example would be a notification about a
227	//   critical battery power level.
228	AccessibleAnnouncementPriorityHighValue AccessibleAnnouncementPriority = 2
229)
230
231// The possible values for the %GTK_ACCESSIBLE_PROPERTY_AUTOCOMPLETE
232// accessible property.
233type AccessibleAutocomplete int
234
235var xAccessibleAutocompleteGLibType func() types.GType
236
237func AccessibleAutocompleteGLibType() types.GType {
238	return xAccessibleAutocompleteGLibType()
239}
240
241const (
242
243	// Automatic suggestions are not displayed.
244	AccessibleAutocompleteNoneValue AccessibleAutocomplete = 0
245	// When a user is providing input, text
246	//    suggesting one way to complete the provided input may be dynamically
247	//    inserted after the caret.
248	AccessibleAutocompleteInlineValue AccessibleAutocomplete = 1
249	// When a user is providing input, an element
250	//    containing a collection of values that could complete the provided input
251	//    may be displayed.
252	AccessibleAutocompleteListValue AccessibleAutocomplete = 2
253	// When a user is providing input, an element
254	//    containing a collection of values that could complete the provided input
255	//    may be displayed. If displayed, one value in the collection is automatically
256	//    selected, and the text needed to complete the automatically selected value
257	//    appears after the caret in the input.
258	AccessibleAutocompleteBothValue AccessibleAutocomplete = 3
259)
260
261// The possible values for the %GTK_ACCESSIBLE_STATE_INVALID
262// accessible state.
263//
264// Note that the %GTK_ACCESSIBLE_INVALID_FALSE and
265// %GTK_ACCESSIBLE_INVALID_TRUE have the same values
266// as %FALSE and %TRUE.
267type AccessibleInvalidState int
268
269var xAccessibleInvalidStateGLibType func() types.GType
270
271func AccessibleInvalidStateGLibType() types.GType {
272	return xAccessibleInvalidStateGLibType()
273}
274
275const (
276
277	// There are no detected errors in the value
278	AccessibleInvalidFalseValue AccessibleInvalidState = 0
279	// The value entered by the user has failed validation
280	AccessibleInvalidTrueValue AccessibleInvalidState = 1
281	// A grammatical error was detected
282	AccessibleInvalidGrammarValue AccessibleInvalidState = 2
283	// A spelling error was detected
284	AccessibleInvalidSpellingValue AccessibleInvalidState = 3
285)
286
287// The possible accessible properties of a [iface@Accessible].
288type AccessibleProperty int
289
290var xAccessiblePropertyGLibType func() types.GType
291
292func AccessiblePropertyGLibType() types.GType {
293	return xAccessiblePropertyGLibType()
294}
295
296const (
297
298	// Indicates whether inputting text
299	//    could trigger display of one or more predictions of the user's intended
300	//    value for a combobox, searchbox, or textbox and specifies how predictions
301	//    would be presented if they were made. Value type: [enum@AccessibleAutocomplete]
302	AccessiblePropertyAutocompleteValue AccessibleProperty = 0
303	// Defines a string value that describes
304	//    or annotates the current element. Value type: string
305	AccessiblePropertyDescriptionValue AccessibleProperty = 1
306	// Indicates the availability and type of
307	//    interactive popup element, such as menu or dialog, that can be triggered
308	//    by an element.
309	AccessiblePropertyHasPopupValue AccessibleProperty = 2
310	// Indicates keyboard shortcuts that an
311	//    author has implemented to activate or give focus to an element. Value type:
312	//    string. The format of the value is a space-separated list of shortcuts, with
313	//    each shortcut consisting of one or more modifiers (`Control`, `Alt` or `Shift`),
314	//    followed by a non-modifier key, all separated by `+`.
315	//    Examples: `F2`, `Alt-F`, `Control+Shift+N`
316	AccessiblePropertyKeyShortcutsValue AccessibleProperty = 3
317	// Defines a string value that labels the current
318	//    element. Value type: string
319	AccessiblePropertyLabelValue AccessibleProperty = 4
320	// Defines the hierarchical level of an element
321	//    within a structure. Value type: integer
322	AccessiblePropertyLevelValue AccessibleProperty = 5
323	// Indicates whether an element is modal when
324	//    displayed. Value type: boolean
325	AccessiblePropertyModalValue AccessibleProperty = 6
326	// Indicates whether a text box accepts
327	//    multiple lines of input or only a single line. Value type: boolean
328	AccessiblePropertyMultiLineValue AccessibleProperty = 7
329	// Indicates that the user may select
330	//    more than one item from the current selectable descendants. Value type:
331	//    boolean
332	AccessiblePropertyMultiSelectableValue AccessibleProperty = 8
333	// Indicates whether the element's
334	//    orientation is horizontal, vertical, or unknown/ambiguous. Value type:
335	//    [enum@Orientation]
336	AccessiblePropertyOrientationValue AccessibleProperty = 9
337	// Defines a short hint (a word or short
338	//    phrase) intended to aid the user with data entry when the control has no
339	//    value. A hint could be a sample value or a brief description of the expected
340	//    format. Value type: string
341	AccessiblePropertyPlaceholderValue AccessibleProperty = 10
342	// Indicates that the element is not editable,
343	//    but is otherwise operable. Value type: boolean
344	AccessiblePropertyReadOnlyValue AccessibleProperty = 11
345	// Indicates that user input is required on
346	//    the element before a form may be submitted. Value type: boolean
347	AccessiblePropertyRequiredValue AccessibleProperty = 12
348	// Defines a human-readable,
349	//    author-localized description for the role of an element. Value type: string
350	AccessiblePropertyRoleDescriptionValue AccessibleProperty = 13
351	// Indicates if items in a table or grid are
352	//    sorted in ascending or descending order. Value type: [enum@AccessibleSort]
353	AccessiblePropertySortValue AccessibleProperty = 14
354	// Defines the maximum allowed value for a
355	//    range widget. Value type: double
356	AccessiblePropertyValueMaxValue AccessibleProperty = 15
357	// Defines the minimum allowed value for a
358	//    range widget. Value type: double
359	AccessiblePropertyValueMinValue AccessibleProperty = 16
360	// Defines the current value for a range widget.
361	//    Value type: double
362	AccessiblePropertyValueNowValue AccessibleProperty = 17
363	// Defines the human readable text alternative
364	//    of [enum@Gtk.AccessibleProperty.VALUE_NOW] for a range widget. Value type: string
365	AccessiblePropertyValueTextValue AccessibleProperty = 18
366	// Defines a string value that provides a description of non-standard keyboard
367	// interactions of the current element. Value type: string
368	AccessiblePropertyHelpTextValue AccessibleProperty = 19
369)
370
371// The possible accessible relations of a [iface@Accessible].
372//
373// Accessible relations can be references to other widgets,
374// integers or strings.
375type AccessibleRelation int
376
377var xAccessibleRelationGLibType func() types.GType
378
379func AccessibleRelationGLibType() types.GType {
380	return xAccessibleRelationGLibType()
381}
382
383const (
384
385	// Identifies the currently active
386	//    element when focus is on a composite widget, combobox, textbox, group,
387	//    or application. Value type: reference
388	AccessibleRelationActiveDescendantValue AccessibleRelation = 0
389	// Defines the total number of columns
390	//    in a table, grid, or treegrid. Value type: integer
391	AccessibleRelationColCountValue AccessibleRelation = 1
392	// Defines an element's column index or
393	//    position with respect to the total number of columns within a table,
394	//    grid, or treegrid. Value type: integer
395	AccessibleRelationColIndexValue AccessibleRelation = 2
396	// Defines a human readable text
397	//   alternative of %GTK_ACCESSIBLE_RELATION_COL_INDEX. Value type: string
398	AccessibleRelationColIndexTextValue AccessibleRelation = 3
399	// Defines the number of columns spanned
400	//   by a cell or gridcell within a table, grid, or treegrid. Value type: integer
401	AccessibleRelationColSpanValue AccessibleRelation = 4
402	// Identifies the element (or elements) whose
403	//    contents or presence are controlled by the current element. Value type: reference
404	AccessibleRelationControlsValue AccessibleRelation = 5
405	// Identifies the element (or elements)
406	//    that describes the object. Value type: reference
407	AccessibleRelationDescribedByValue AccessibleRelation = 6
408	// Identifies the element (or elements) that
409	//    provide additional information related to the object. Value type: reference
410	AccessibleRelationDetailsValue AccessibleRelation = 7
411	// Identifies the element (or elements) that
412	//    provide an error message for an object. Value type: reference
413	AccessibleRelationErrorMessageValue AccessibleRelation = 8
414	// Identifies the next element (or elements)
415	//    in an alternate reading order of content which, at the user's discretion,
416	//    allows assistive technology to override the general default of reading in
417	//    document source order. Value type: reference
418	AccessibleRelationFlowToValue AccessibleRelation = 9
419	// Identifies the element (or elements)
420	//    that labels the current element. Value type: reference
421	AccessibleRelationLabelledByValue AccessibleRelation = 10
422	// Identifies an element (or elements) in order
423	//    to define a visual, functional, or contextual parent/child relationship
424	//    between elements where the widget hierarchy cannot be used to represent
425	//    the relationship. Value type: reference
426	AccessibleRelationOwnsValue AccessibleRelation = 11
427	// Defines an element's number or position
428	//    in the current set of listitems or treeitems. Value type: integer
429	AccessibleRelationPosInSetValue AccessibleRelation = 12
430	// Defines the total number of rows in a table,
431	//    grid, or treegrid. Value type: integer
432	AccessibleRelationRowCountValue AccessibleRelation = 13
433	// Defines an element's row index or position
434	//    with respect to the total number of rows within a table, grid, or treegrid.
435	//    Value type: integer
436	AccessibleRelationRowIndexValue AccessibleRelation = 14
437	// Defines a human readable text
438	//    alternative of [enum@Gtk.AccessibleRelation.ROW_INDEX]. Value type: string
439	AccessibleRelationRowIndexTextValue AccessibleRelation = 15
440	// Defines the number of rows spanned by a
441	//    cell or gridcell within a table, grid, or treegrid. Value type: integer
442	AccessibleRelationRowSpanValue AccessibleRelation = 16
443	// Defines the number of items in the current
444	//    set of listitems or treeitems. Value type: integer
445	AccessibleRelationSetSizeValue AccessibleRelation = 17
446	// Identifies the element (or elements) that are labeled by the
447	// current element. Value type: reference
448	//
449	// This relation is managed by GTK and should not be set from application code.
450	AccessibleRelationLabelForValue AccessibleRelation = 18
451	// Identifies the element (or elements) that are described by
452	// the current element. Value type: reference
453	//
454	// This relation is managed by GTK and should not be set from application code.
455	AccessibleRelationDescriptionForValue AccessibleRelation = 19
456	// Identifies the element (or elements) that the current
457	// element is controlled by. Value type: reference
458	//
459	// This relation is managed by GTK and should not be set from application code.
460	AccessibleRelationControlledByValue AccessibleRelation = 20
461	// Identifies the element (or elements) for which the current
462	// element provides additional information. Value type: reference
463	//
464	// This relation is managed by GTK and should not be set from application code.
465	AccessibleRelationDetailsForValue AccessibleRelation = 21
466	// Identifies the element (or elements) for which the current
467	// element provides an error message. Value type: reference
468	//
469	// This relation is managed by GTK and should not be set from application code.
470	AccessibleRelationErrorMessageForValue AccessibleRelation = 22
471	// Identifies the previous element (or elements) in an alternate
472	// reading order of content which, at the user's discretion, allows
473	// assistive technology to override the general default of reading in
474	// document source order. Value type: reference
475	//
476	// This relation is managed by GTK and should not be set from application code.
477	AccessibleRelationFlowFromValue AccessibleRelation = 23
478)
479
480// The accessible role for a [iface@Accessible] implementation.
481//
482// Abstract roles are only used as part of the ontology; application
483// developers must not use abstract roles in their code.
484type AccessibleRole int
485
486var xAccessibleRoleGLibType func() types.GType
487
488func AccessibleRoleGLibType() types.GType {
489	return xAccessibleRoleGLibType()
490}
491
492const (
493
494	// An element with important, and usually
495	//   time-sensitive, information
496	AccessibleRoleAlertValue AccessibleRole = 0
497	// A type of dialog that contains an
498	//   alert message
499	AccessibleRoleAlertDialogValue AccessibleRole = 1
500	// Unused
501	AccessibleRoleBannerValue AccessibleRole = 2
502	// An input element that allows for
503	//   user-triggered actions when clicked or pressed
504	AccessibleRoleButtonValue AccessibleRole = 3
505	// Unused
506	AccessibleRoleCaptionValue AccessibleRole = 4
507	// Unused
508	AccessibleRoleCellValue AccessibleRole = 5
509	// A checkable input element that has
510	//   three possible values: `true`, `false`, or `mixed`
511	AccessibleRoleCheckboxValue AccessibleRole = 6
512	// A header in a columned list.
513	AccessibleRoleColumnHeaderValue AccessibleRole = 7
514	// An input that controls another element,
515	//   such as a list or a grid, that can dynamically pop up to help the user
516	//   set the value of the input
517	AccessibleRoleComboBoxValue AccessibleRole = 8
518	// Abstract role.
519	AccessibleRoleCommandValue AccessibleRole = 9
520	// Abstract role.
521	AccessibleRoleCompositeValue AccessibleRole = 10
522	// A dialog is a window that is designed to interrupt
523	//   the current processing of an application in order to prompt the user to enter
524	//   information or require a response.
525	AccessibleRoleDialogValue AccessibleRole = 11
526	// Content that assistive technology users may want to
527	//   browse in a reading mode.
528	AccessibleRoleDocumentValue AccessibleRole = 12
529	// Unused
530	AccessibleRoleFeedValue AccessibleRole = 13
531	// Unused
532	AccessibleRoleFormValue AccessibleRole = 14
533	// A nameless container that has no semantic meaning
534	//   of its own. This is the role that GTK uses by default for widgets.
535	AccessibleRoleGenericValue AccessibleRole = 15
536	// A grid of items.
537	AccessibleRoleGridValue AccessibleRole = 16
538	// An item in a grid or tree grid.
539	AccessibleRoleGridCellValue AccessibleRole = 17
540	// An element that groups multiple related widgets. GTK uses
541	//   this role for various containers, like [class@Gtk.HeaderBar] or [class@Gtk.Notebook].
542	AccessibleRoleGroupValue AccessibleRole = 18
543	// Unused
544	AccessibleRoleHeadingValue AccessibleRole = 19
545	// An image.
546	AccessibleRoleImgValue AccessibleRole = 20
547	// Abstract role.
548	AccessibleRoleInputValue AccessibleRole = 21
549	// A visible name or caption for a user interface component.
550	AccessibleRoleLabelValue AccessibleRole = 22
551	// Abstract role.
552	AccessibleRoleLandmarkValue AccessibleRole = 23
553	// Unused
554	AccessibleRoleLegendValue AccessibleRole = 24
555	// A clickable link.
556	AccessibleRoleLinkValue AccessibleRole = 25
557	// A list of items.
558	AccessibleRoleListValue AccessibleRole = 26
559	// Unused.
560	AccessibleRoleListBoxValue AccessibleRole = 27
561	// An item in a list.
562	AccessibleRoleListItemValue AccessibleRole = 28
563	// Unused
564	AccessibleRoleLogValue AccessibleRole = 29
565	// Unused
566	AccessibleRoleMainValue AccessibleRole = 30
567	// Unused
568	AccessibleRoleMarqueeValue AccessibleRole = 31
569	// Unused
570	AccessibleRoleMathValue AccessibleRole = 32
571	// An element that represents a value within a known range.
572	AccessibleRoleMeterValue AccessibleRole = 33
573	// A menu.
574	AccessibleRoleMenuValue AccessibleRole = 34
575	// A menubar.
576	AccessibleRoleMenuBarValue AccessibleRole = 35
577	// An item in a menu.
578	AccessibleRoleMenuItemValue AccessibleRole = 36
579	// A check item in a menu.
580	AccessibleRoleMenuItemCheckboxValue AccessibleRole = 37
581	// A radio item in a menu.
582	AccessibleRoleMenuItemRadioValue AccessibleRole = 38
583	// Unused
584	AccessibleRoleNavigationValue AccessibleRole = 39
585	// An element that is not represented to accessibility technologies.
586	//   This role is synonymous to @GTK_ACCESSIBLE_ROLE_PRESENTATION.
587	AccessibleRoleNoneValue AccessibleRole = 40
588	// Unused
589	AccessibleRoleNoteValue AccessibleRole = 41
590	// Unused
591	AccessibleRoleOptionValue AccessibleRole = 42
592	// An element that is not represented to accessibility technologies.
593	//   This role is synonymous to @GTK_ACCESSIBLE_ROLE_NONE.
594	AccessibleRolePresentationValue AccessibleRole = 43
595	// An element that displays the progress
596	//   status for tasks that take a long time.
597	AccessibleRoleProgressBarValue AccessibleRole = 44
598	// A checkable input in a group of radio roles,
599	//   only one of which can be checked at a time.
600	AccessibleRoleRadioValue AccessibleRole = 45
601	// Unused
602	AccessibleRoleRadioGroupValue AccessibleRole = 46
603	// Abstract role.
604	AccessibleRoleRangeValue AccessibleRole = 47
605	// Unused
606	AccessibleRoleRegionValue AccessibleRole = 48
607	// A row in a columned list.
608	AccessibleRoleRowValue AccessibleRole = 49
609	// Unused
610	AccessibleRoleRowGroupValue AccessibleRole = 50
611	// Unused
612	AccessibleRoleRowHeaderValue AccessibleRole = 51
613	// A graphical object that controls the scrolling
614	//   of content within a viewing area, regardless of whether the content is fully
615	//   displayed within the viewing area.
616	AccessibleRoleScrollbarValue AccessibleRole = 52
617	// Unused
618	AccessibleRoleSearchValue AccessibleRole = 53
619	// A type of textbox intended for specifying
620	//   search criteria.
621	AccessibleRoleSearchBoxValue AccessibleRole = 54
622	// Abstract role.
623	AccessibleRoleSectionValue AccessibleRole = 55
624	// Abstract role.
625	AccessibleRoleSectionHeadValue AccessibleRole = 56
626	// Abstract role.
627	AccessibleRoleSelectValue AccessibleRole = 57
628	// A divider that separates and distinguishes
629	//   sections of content or groups of menuitems.
630	AccessibleRoleSeparatorValue AccessibleRole = 58
631	// A user input where the user selects a value
632	//   from within a given range.
633	AccessibleRoleSliderValue AccessibleRole = 59
634	// A form of range that expects the user to
635	//   select from among discrete choices.
636	AccessibleRoleSpinButtonValue AccessibleRole = 60
637	// Unused
638	AccessibleRoleStatusValue AccessibleRole = 61
639	// Abstract role.
640	AccessibleRoleStructureValue AccessibleRole = 62
641	// A type of checkbox that represents on/off values,
642	//   as opposed to checked/unchecked values.
643	AccessibleRoleSwitchValue AccessibleRole = 63
644	// An item in a list of tab used for switching pages.
645	AccessibleRoleTabValue AccessibleRole = 64
646	// Unused
647	AccessibleRoleTableValue AccessibleRole = 65
648	// A list of tabs for switching pages.
649	AccessibleRoleTabListValue AccessibleRole = 66
650	// A page in a notebook or stack.
651	AccessibleRoleTabPanelValue AccessibleRole = 67
652	// A type of input that allows free-form text
653	//   as its value.
654	AccessibleRoleTextBoxValue AccessibleRole = 68
655	// Unused
656	AccessibleRoleTimeValue AccessibleRole = 69
657	// Unused
658	AccessibleRoleTimerValue AccessibleRole = 70
659	// Unused
660	AccessibleRoleToolbarValue AccessibleRole = 71
661	// Unused
662	AccessibleRoleTooltipValue AccessibleRole = 72
663	// Unused
664	AccessibleRoleTreeValue AccessibleRole = 73
665	// A treeview-like, columned list.
666	AccessibleRoleTreeGridValue AccessibleRole = 74
667	// Unused
668	AccessibleRoleTreeItemValue AccessibleRole = 75
669	// Abstract role for interactive components of a
670	//   graphical user interface
671	AccessibleRoleWidgetValue AccessibleRole = 76
672	// Abstract role for windows.
673	AccessibleRoleWindowValue AccessibleRole = 77
674	// A type of push button which stays pressed until depressed by a second
675	// activation.
676	AccessibleRoleToggleButtonValue AccessibleRole = 78
677	// A toplevel element of a graphical user interface.
678	//
679	// This is the role that GTK uses by default for windows.
680	AccessibleRoleApplicationValue AccessibleRole = 79
681	// A paragraph of content.
682	AccessibleRoleParagraphValue AccessibleRole = 80
683	// A section of content that is quoted from another source.
684	AccessibleRoleBlockQuoteValue AccessibleRole = 81
685	// A section of a page that consists of a composition that forms an independent
686	// part of a document, page, or site.
687	AccessibleRoleArticleValue AccessibleRole = 82
688	// A comment contains content expressing reaction to other content.
689	AccessibleRoleCommentValue AccessibleRole = 83
690	// A virtual terminal.
691	AccessibleRoleTerminalValue AccessibleRole = 84
692)
693
694// The possible values for the %GTK_ACCESSIBLE_PROPERTY_SORT
695// accessible property.
696type AccessibleSort int
697
698var xAccessibleSortGLibType func() types.GType
699
700func AccessibleSortGLibType() types.GType {
701	return xAccessibleSortGLibType()
702}
703
704const (
705
706	// There is no defined sort applied to the column.
707	AccessibleSortNoneValue AccessibleSort = 0
708	// Items are sorted in ascending order by this column.
709	AccessibleSortAscendingValue AccessibleSort = 1
710	// Items are sorted in descending order by this column.
711	AccessibleSortDescendingValue AccessibleSort = 2
712	// A sort algorithm other than ascending or
713	//    descending has been applied.
714	AccessibleSortOtherValue AccessibleSort = 3
715)
716
717// The possible accessible states of a [iface@Accessible].
718type AccessibleState int
719
720var xAccessibleStateGLibType func() types.GType
721
722func AccessibleStateGLibType() types.GType {
723	return xAccessibleStateGLibType()
724}
725
726const (
727
728	// A “busy” state. This state has boolean values
729	AccessibleStateBusyValue AccessibleState = 0
730	// A “checked” state; indicates the current
731	//   state of a [class@CheckButton]. Value type: [enum@AccessibleTristate]
732	AccessibleStateCheckedValue AccessibleState = 1
733	// A “disabled” state; corresponds to the
734	//   [property@Widget:sensitive] property. It indicates a UI element
735	//   that is perceivable, but not editable or operable. Value type: boolean
736	AccessibleStateDisabledValue AccessibleState = 2
737	// An “expanded” state; corresponds to the
738	//   [property@Expander:expanded] property. Value type: boolean
739	//   or undefined
740	AccessibleStateExpandedValue AccessibleState = 3
741	// A “hidden” state; corresponds to the
742	//   [property@Widget:visible] property. You can use this state
743	//   explicitly on UI elements that should not be exposed to an assistive
744	//   technology. Value type: boolean
745	//   See also: %GTK_ACCESSIBLE_STATE_DISABLED
746	AccessibleStateHiddenValue AccessibleState = 4
747	// An “invalid” state; set when a widget
748	//   is showing an error. Value type: [enum@AccessibleInvalidState]
749	AccessibleStateInvalidValue AccessibleState = 5
750	// A “pressed” state; indicates the current
751	//   state of a [class@ToggleButton]. Value type: [enum@AccessibleTristate]
752	//   enumeration
753	AccessibleStatePressedValue AccessibleState = 6
754	// A “selected” state; set when a widget
755	//   is selected. Value type: boolean or undefined
756	AccessibleStateSelectedValue AccessibleState = 7
757	// Indicates that a widget with the GTK_ACCESSIBLE_ROLE_LINK has been visited.
758	// Value type: boolean.
759	AccessibleStateVisitedValue AccessibleState = 8
760)
761
762// The possible values for the %GTK_ACCESSIBLE_STATE_PRESSED
763// accessible state.
764//
765// Note that the %GTK_ACCESSIBLE_TRISTATE_FALSE and
766// %GTK_ACCESSIBLE_TRISTATE_TRUE have the same values
767// as %FALSE and %TRUE.
768type AccessibleTristate int
769
770var xAccessibleTristateGLibType func() types.GType
771
772func AccessibleTristateGLibType() types.GType {
773	return xAccessibleTristateGLibType()
774}
775
776const (
777
778	// The state is `false`
779	AccessibleTristateFalseValue AccessibleTristate = 0
780	// The state is `true`
781	AccessibleTristateTrueValue AccessibleTristate = 1
782	// The state is `mixed`
783	AccessibleTristateMixedValue AccessibleTristate = 2
784)
785
786// Controls how a widget deals with extra space in a single dimension.
787//
788// Alignment only matters if the widget receives a “too large” allocation,
789// for example if you packed the widget with the [property@Gtk.Widget:hexpand]
790// property inside a [class@Box], then the widget might get extra space.
791// If you have for example a 16x16 icon inside a 32x32 space, the icon
792// could be scaled and stretched, it could be centered, or it could be
793// positioned to one side of the space.
794//
795// Note that in horizontal context `GTK_ALIGN_START` and `GTK_ALIGN_END`
796// are interpreted relative to text direction.
797//
798// Baseline support is optional for containers and widgets, and is only available
799// for vertical alignment. `GTK_ALIGN_BASELINE_CENTER` and `GTK_ALIGN_BASELINE_FILL`
800// are treated similar to `GTK_ALIGN_CENTER` and `GTK_ALIGN_FILL`, except that it
801// positions the widget to line up the baselines, where that is supported.
802type Align int
803
804var xAlignGLibType func() types.GType
805
806func AlignGLibType() types.GType {
807	return xAlignGLibType()
808}
809
810const (
811
812	// stretch to fill all space if possible, center if
813	//   no meaningful way to stretch
814	AlignFillValue Align = 0
815	// snap to left or top side, leaving space on right or bottom
816	AlignStartValue Align = 1
817	// snap to right or bottom side, leaving space on left or top
818	AlignEndValue Align = 2
819	// center natural width of widget inside the allocation
820	AlignCenterValue Align = 3
821	// a different name for `GTK_ALIGN_BASELINE`.
822	AlignBaselineFillValue Align = 4
823	// align the widget according to the baseline.
824	AlignBaselineValue Align = 4
825	// stretch to fill all space, but align the baseline.
826	AlignBaselineCenterValue Align = 5
827)
828
829// Indicates the direction in which an arrow should point.
830type ArrowType int
831
832var xArrowTypeGLibType func() types.GType
833
834func ArrowTypeGLibType() types.GType {
835	return xArrowTypeGLibType()
836}
837
838const (
839
840	// Represents an upward pointing arrow.
841	ArrowUpValue ArrowType = 0
842	// Represents a downward pointing arrow.
843	ArrowDownValue ArrowType = 1
844	// Represents a left pointing arrow.
845	ArrowLeftValue ArrowType = 2
846	// Represents a right pointing arrow.
847	ArrowRightValue ArrowType = 3
848	// No arrow.
849	ArrowNoneValue ArrowType = 4
850)
851
852// Baseline position in a row of widgets.
853//
854// Whenever a container has some form of natural row it may align
855// children in that row along a common typographical baseline. If
856// the amount of vertical space in the row is taller than the total
857// requested height of the baseline-aligned children then it can use a
858// `GtkBaselinePosition` to select where to put the baseline inside the
859// extra available space.
860type BaselinePosition int
861
862var xBaselinePositionGLibType func() types.GType
863
864func BaselinePositionGLibType() types.GType {
865	return xBaselinePositionGLibType()
866}
867
868const (
869
870	// Align the baseline at the top
871	BaselinePositionTopValue BaselinePosition = 0
872	// Center the baseline
873	BaselinePositionCenterValue BaselinePosition = 1
874	// Align the baseline at the bottom
875	BaselinePositionBottomValue BaselinePosition = 2
876)
877
878// Describes how the border of a UI element should be rendered.
879type BorderStyle int
880
881var xBorderStyleGLibType func() types.GType
882
883func BorderStyleGLibType() types.GType {
884	return xBorderStyleGLibType()
885}
886
887const (
888
889	// No visible border
890	BorderStyleNoneValue BorderStyle = 0
891	// Same as %GTK_BORDER_STYLE_NONE
892	BorderStyleHiddenValue BorderStyle = 1
893	// A single line segment
894	BorderStyleSolidValue BorderStyle = 2
895	// Looks as if the content is sunken into the canvas
896	BorderStyleInsetValue BorderStyle = 3
897	// Looks as if the content is coming out of the canvas
898	BorderStyleOutsetValue BorderStyle = 4
899	// A series of round dots
900	BorderStyleDottedValue BorderStyle = 5
901	// A series of square-ended dashes
902	BorderStyleDashedValue BorderStyle = 6
903	// Two parallel lines with some space between them
904	BorderStyleDoubleValue BorderStyle = 7
905	// Looks as if it were carved in the canvas
906	BorderStyleGrooveValue BorderStyle = 8
907	// Looks as if it were coming out of the canvas
908	BorderStyleRidgeValue BorderStyle = 9
909)
910
911// The widget attributes that can be used when creating a [class@Constraint].
912type ConstraintAttribute int
913
914var xConstraintAttributeGLibType func() types.GType
915
916func ConstraintAttributeGLibType() types.GType {
917	return xConstraintAttributeGLibType()
918}
919
920const (
921
922	// No attribute, used for constant
923	//   relations
924	ConstraintAttributeNoneValue ConstraintAttribute = 0
925	// The left edge of a widget, regardless of
926	//   text direction
927	ConstraintAttributeLeftValue ConstraintAttribute = 1
928	// The right edge of a widget, regardless
929	//   of text direction
930	ConstraintAttributeRightValue ConstraintAttribute = 2
931	// The top edge of a widget
932	ConstraintAttributeTopValue ConstraintAttribute = 3
933	// The bottom edge of a widget
934	ConstraintAttributeBottomValue ConstraintAttribute = 4
935	// The leading edge of a widget, depending
936	//   on text direction; equivalent to %GTK_CONSTRAINT_ATTRIBUTE_LEFT for LTR
937	//   languages, and %GTK_CONSTRAINT_ATTRIBUTE_RIGHT for RTL ones
938	ConstraintAttributeStartValue ConstraintAttribute = 5
939	// The trailing edge of a widget, depending
940	//   on text direction; equivalent to %GTK_CONSTRAINT_ATTRIBUTE_RIGHT for LTR
941	//   languages, and %GTK_CONSTRAINT_ATTRIBUTE_LEFT for RTL ones
942	ConstraintAttributeEndValue ConstraintAttribute = 6
943	// The width of a widget
944	ConstraintAttributeWidthValue ConstraintAttribute = 7
945	// The height of a widget
946	ConstraintAttributeHeightValue ConstraintAttribute = 8
947	// The center of a widget, on the
948	//   horizontal axis
949	ConstraintAttributeCenterXValue ConstraintAttribute = 9
950	// The center of a widget, on the
951	//   vertical axis
952	ConstraintAttributeCenterYValue ConstraintAttribute = 10
953	// The baseline of a widget
954	ConstraintAttributeBaselineValue ConstraintAttribute = 11
955)
956
957// The relation between two terms of a constraint.
958type ConstraintRelation int
959
960var xConstraintRelationGLibType func() types.GType
961
962func ConstraintRelationGLibType() types.GType {
963	return xConstraintRelationGLibType()
964}
965
966const (
967
968	// Less than, or equal
969	ConstraintRelationLeValue ConstraintRelation = -1
970	// Equal
971	ConstraintRelationEqValue ConstraintRelation = 0
972	// Greater than, or equal
973	ConstraintRelationGeValue ConstraintRelation = 1
974)
975
976// The strength of a constraint, expressed as a symbolic constant.
977//
978// The strength of a [class@Constraint] can be expressed with any positive
979// integer; the values of this enumeration can be used for readability.
980type ConstraintStrength int
981
982var xConstraintStrengthGLibType func() types.GType
983
984func ConstraintStrengthGLibType() types.GType {
985	return xConstraintStrengthGLibType()
986}
987
988const (
989
990	// The constraint is required towards solving the layout
991	ConstraintStrengthRequiredValue ConstraintStrength = 1001001000
992	// A strong constraint
993	ConstraintStrengthStrongValue ConstraintStrength = 1000000000
994	// A medium constraint
995	ConstraintStrengthMediumValue ConstraintStrength = 1000
996	// A weak constraint
997	ConstraintStrengthWeakValue ConstraintStrength = 1
998)
999
1000// Domain for VFL parsing errors.
1001type ConstraintVflParserError int
1002
1003var xConstraintVflParserErrorGLibType func() types.GType
1004
1005func ConstraintVflParserErrorGLibType() types.GType {
1006	return xConstraintVflParserErrorGLibType()
1007}
1008
1009const (
1010
1011	// Invalid or unknown symbol
1012	ConstraintVflParserErrorInvalidSymbolValue ConstraintVflParserError = 0
1013	// Invalid or unknown attribute
1014	ConstraintVflParserErrorInvalidAttributeValue ConstraintVflParserError = 1
1015	// Invalid or unknown view
1016	ConstraintVflParserErrorInvalidViewValue ConstraintVflParserError = 2
1017	// Invalid or unknown metric
1018	ConstraintVflParserErrorInvalidMetricValue ConstraintVflParserError = 3
1019	// Invalid or unknown priority
1020	ConstraintVflParserErrorInvalidPriorityValue ConstraintVflParserError = 4
1021	// Invalid or unknown relation
1022	ConstraintVflParserErrorInvalidRelationValue ConstraintVflParserError = 5
1023)
1024
1025// Controls how a content should be made to fit inside an allocation.
1026type ContentFit int
1027
1028var xContentFitGLibType func() types.GType
1029
1030func ContentFitGLibType() types.GType {
1031	return xContentFitGLibType()
1032}
1033
1034const (
1035
1036	// Make the content fill the entire allocation,
1037	//   without taking its aspect ratio in consideration. The resulting
1038	//   content will appear as stretched if its aspect ratio is different
1039	//   from the allocation aspect ratio.
1040	ContentFitFillValue ContentFit = 0
1041	// Scale the content to fit the allocation,
1042	//   while taking its aspect ratio in consideration. The resulting
1043	//   content will appear as letterboxed if its aspect ratio is different
1044	//   from the allocation aspect ratio.
1045	ContentFitContainValue ContentFit = 1
1046	// Cover the entire allocation, while taking
1047	//   the content aspect ratio in consideration. The resulting content
1048	//   will appear as clipped if its aspect ratio is different from the
1049	//   allocation aspect ratio.
1050	ContentFitCoverValue ContentFit = 2
1051	// The content is scaled down to fit the
1052	//   allocation, if needed, otherwise its original size is used.
1053	ContentFitScaleDownValue ContentFit = 3
1054)
1055
1056// Passed to various keybinding signals for deleting text.
1057type DeleteType int
1058
1059var xDeleteTypeGLibType func() types.GType
1060
1061func DeleteTypeGLibType() types.GType {
1062	return xDeleteTypeGLibType()
1063}
1064
1065const (
1066
1067	// Delete characters.
1068	DeleteCharsValue DeleteType = 0
1069	// Delete only the portion of the word to the
1070	//   left/right of cursor if we’re in the middle of a word.
1071	DeleteWordEndsValue DeleteType = 1
1072	// Delete words.
1073	DeleteWordsValue DeleteType = 2
1074	// Delete display-lines. Display-lines
1075	//   refers to the visible lines, with respect to the current line
1076	//   breaks. As opposed to paragraphs, which are defined by line
1077	//   breaks in the input.
1078	DeleteDisplayLinesValue DeleteType = 3
1079	// Delete only the portion of the
1080	//   display-line to the left/right of cursor.
1081	DeleteDisplayLineEndsValue DeleteType = 4
1082	// Delete to the end of the
1083	//   paragraph. Like C-k in Emacs (or its reverse).
1084	DeleteParagraphEndsValue DeleteType = 5
1085	// Delete entire line. Like C-k in pico.
1086	DeleteParagraphsValue DeleteType = 6
1087	// Delete only whitespace. Like M-\ in Emacs.
1088	DeleteWhitespaceValue DeleteType = 7
1089)
1090
1091// Focus movement types.
1092type DirectionType int
1093
1094var xDirectionTypeGLibType func() types.GType
1095
1096func DirectionTypeGLibType() types.GType {
1097	return xDirectionTypeGLibType()
1098}
1099
1100const (
1101
1102	// Move forward.
1103	DirTabForwardValue DirectionType = 0
1104	// Move backward.
1105	DirTabBackwardValue DirectionType = 1
1106	// Move up.
1107	DirUpValue DirectionType = 2
1108	// Move down.
1109	DirDownValue DirectionType = 3
1110	// Move left.
1111	DirLeftValue DirectionType = 4
1112	// Move right.
1113	DirRightValue DirectionType = 5
1114)
1115
1116// Describes the state of a [struct@Gdk.EventSequence] in a [class@Gesture].
1117type EventSequenceState int
1118
1119var xEventSequenceStateGLibType func() types.GType
1120
1121func EventSequenceStateGLibType() types.GType {
1122	return xEventSequenceStateGLibType()
1123}
1124
1125const (
1126
1127	// The sequence is handled, but not grabbed.
1128	EventSequenceNoneValue EventSequenceState = 0
1129	// The sequence is handled and grabbed.
1130	EventSequenceClaimedValue EventSequenceState = 1
1131	// The sequence is denied.
1132	EventSequenceDeniedValue EventSequenceState = 2
1133)
1134
1135// Values for the [property@Gtk.Settings:gtk-font-rendering] setting
1136// that influence how GTK renders fonts.
1137type FontRendering int
1138
1139var xFontRenderingGLibType func() types.GType
1140
1141func FontRenderingGLibType() types.GType {
1142	return xFontRenderingGLibType()
1143}
1144
1145const (
1146
1147	// Set up font rendering automatically,
1148	//   taking factors like screen resolution and scale into account
1149	FontRenderingAutomaticValue FontRendering = 0
1150	// Follow low-level font-related settings
1151	//   when configuring font rendering
1152	FontRenderingManualValue FontRendering = 1
1153)
1154
1155// Built-in icon sizes.
1156//
1157// Icon sizes default to being inherited. Where they cannot be
1158// inherited, text size is the default.
1159//
1160// All widgets which use `GtkIconSize` set the normal-icons or
1161// large-icons style classes correspondingly, and let themes
1162// determine the actual size to be used with the
1163// `-gtk-icon-size` CSS property.
1164type IconSize int
1165
1166var xIconSizeGLibType func() types.GType
1167
1168func IconSizeGLibType() types.GType {
1169	return xIconSizeGLibType()
1170}
1171
1172const (
1173
1174	// Keep the size of the parent element
1175	IconSizeInheritValue IconSize = 0
1176	// Size similar to text size
1177	IconSizeNormalValue IconSize = 1
1178	// Large size, for example in an icon view
1179	IconSizeLargeValue IconSize = 2
1180)
1181
1182// Describes primary purpose of the input widget.
1183//
1184// This information is useful for on-screen keyboards and similar input
1185// methods to decide which keys should be presented to the user.
1186//
1187// Note that the purpose is not meant to impose a totally strict rule
1188// about allowed characters, and does not replace input validation.
1189// It is fine for an on-screen keyboard to let the user override the
1190// character set restriction that is expressed by the purpose. The
1191// application is expected to validate the entry contents, even if
1192// it specified a purpose.
1193//
1194// The difference between %GTK_INPUT_PURPOSE_DIGITS and
1195// %GTK_INPUT_PURPOSE_NUMBER is that the former accepts only digits
1196// while the latter also some punctuation (like commas or points, plus,
1197// minus) and “e” or “E” as in 3.14E+000.
1198//
1199// This enumeration may be extended in the future; input methods should
1200// interpret unknown values as “free form”.
1201type InputPurpose int
1202
1203var xInputPurposeGLibType func() types.GType
1204
1205func InputPurposeGLibType() types.GType {
1206	return xInputPurposeGLibType()
1207}
1208
1209const (
1210
1211	// Allow any character
1212	InputPurposeFreeFormValue InputPurpose = 0
1213	// Allow only alphabetic characters
1214	InputPurposeAlphaValue InputPurpose = 1
1215	// Allow only digits
1216	InputPurposeDigitsValue InputPurpose = 2
1217	// Edited field expects numbers
1218	InputPurposeNumberValue InputPurpose = 3
1219	// Edited field expects phone number
1220	InputPurposePhoneValue InputPurpose = 4
1221	// Edited field expects URL
1222	InputPurposeUrlValue InputPurpose = 5
1223	// Edited field expects email address
1224	InputPurposeEmailValue InputPurpose = 6
1225	// Edited field expects the name of a person
1226	InputPurposeNameValue InputPurpose = 7
1227	// Like %GTK_INPUT_PURPOSE_FREE_FORM, but characters are hidden
1228	InputPurposePasswordValue InputPurpose = 8
1229	// Like %GTK_INPUT_PURPOSE_DIGITS, but characters are hidden
1230	InputPurposePinValue InputPurpose = 9
1231	// Allow any character, in addition to control codes
1232	InputPurposeTerminalValue InputPurpose = 10
1233)
1234
1235// Values for the [property@Gtk.Settings:gtk-interface-color-scheme]
1236// and [property@Gtk.CssProvider:prefers-color-scheme] properties
1237// that indicates what color scheme is used.
1238//
1239// This information can be used inside CSS via media queries.
1240//
1241// More values may be added to this enumeration. Unknown values
1242// should be treated the same as `GTK_INTERFACE_COLOR_SCHEME_DEFAULT`.
1243type InterfaceColorScheme int
1244
1245var xInterfaceColorSchemeGLibType func() types.GType
1246
1247func InterfaceColorSchemeGLibType() types.GType {
1248	return xInterfaceColorSchemeGLibType()
1249}
1250
1251const (
1252
1253	// The system doesn't support color schemes
1254	InterfaceColorSchemeUnsupportedValue InterfaceColorScheme = 0
1255	// The default color scheme is used
1256	InterfaceColorSchemeDefaultValue InterfaceColorScheme = 1
1257	// A dark color scheme is used
1258	InterfaceColorSchemeDarkValue InterfaceColorScheme = 2
1259	// A light color scheme is used
1260	InterfaceColorSchemeLightValue InterfaceColorScheme = 3
1261)
1262
1263// Values for the [property@Gtk.Settings:gtk-interface-contrast]
1264// and [property@Gtk.CssProvider:prefers-contrast] properties
1265// that indicates the preferred level of contrast.
1266//
1267// This information can be used inside CSS via media queries.
1268//
1269// More values may be added to this enumeration. Unknown values
1270// should be treated the same as `GTK_INTERFACE_CONTRAST_NO_PREFERENCE`.
1271type InterfaceContrast int
1272
1273var xInterfaceContrastGLibType func() types.GType
1274
1275func InterfaceContrastGLibType() types.GType {
1276	return xInterfaceContrastGLibType()
1277}
1278
1279const (
1280
1281	// The system doesn't support contrast levels
1282	InterfaceContrastUnsupportedValue InterfaceContrast = 0
1283	// No particular preference for contrast
1284	InterfaceContrastNoPreferenceValue InterfaceContrast = 1
1285	// More contrast is preferred
1286	InterfaceContrastMoreValue InterfaceContrast = 2
1287	// Less contrast is preferred
1288	InterfaceContrastLessValue InterfaceContrast = 3
1289)
1290
1291// Used for justifying the text inside a [class@Label] widget.
1292type Justification int
1293
1294var xJustificationGLibType func() types.GType
1295
1296func JustificationGLibType() types.GType {
1297	return xJustificationGLibType()
1298}
1299
1300const (
1301
1302	// The text is placed at the left edge of the label.
1303	JustifyLeftValue Justification = 0
1304	// The text is placed at the right edge of the label.
1305	JustifyRightValue Justification = 1
1306	// The text is placed in the center of the label.
1307	JustifyCenterValue Justification = 2
1308	// The text is placed is distributed across the label.
1309	JustifyFillValue Justification = 3
1310)
1311
1312// Describes how [class@LevelBar] contents should be rendered.
1313//
1314// Note that this enumeration could be extended with additional modes
1315// in the future.
1316type LevelBarMode int
1317
1318var xLevelBarModeGLibType func() types.GType
1319
1320func LevelBarModeGLibType() types.GType {
1321	return xLevelBarModeGLibType()
1322}
1323
1324const (
1325
1326	// the bar has a continuous mode
1327	LevelBarModeContinuousValue LevelBarMode = 0
1328	// the bar has a discrete mode
1329	LevelBarModeDiscreteValue LevelBarMode = 1
1330)
1331
1332// Used to configure the focus behavior in the `GTK_DIR_TAB_FORWARD`
1333// and `GTK_DIR_TAB_BACKWARD` direction, like the <kbd>Tab</kbd> key
1334// in a [class@Gtk.ListView].
1335type ListTabBehavior int
1336
1337var xListTabBehaviorGLibType func() types.GType
1338
1339func ListTabBehaviorGLibType() types.GType {
1340	return xListTabBehaviorGLibType()
1341}
1342
1343const (
1344
1345	// Cycle through all focusable items of the list
1346	ListTabAllValue ListTabBehavior = 0
1347	// Cycle through a single list element, then move
1348	//   focus out of the list. Moving focus between items needs to be
1349	//   done with the arrow keys.
1350	ListTabItemValue ListTabBehavior = 1
1351	// Cycle only through a single cell, then
1352	//   move focus out of the list. Moving focus between cells needs to
1353	//   be done with the arrow keys. This is only relevant for
1354	//   cell-based widgets like #GtkColumnView, otherwise it behaves
1355	//   like `GTK_LIST_TAB_ITEM`.
1356	ListTabCellValue ListTabBehavior = 2
1357)
1358
1359// The type of message being displayed in a [class@MessageDialog].
1360type MessageType int
1361
1362var xMessageTypeGLibType func() types.GType
1363
1364func MessageTypeGLibType() types.GType {
1365	return xMessageTypeGLibType()
1366}
1367
1368const (
1369
1370	// Informational message
1371	MessageInfoValue MessageType = 0
1372	// Non-fatal warning message
1373	MessageWarningValue MessageType = 1
1374	// Question requiring a choice
1375	MessageQuestionValue MessageType = 2
1376	// Fatal error message
1377	MessageErrorValue MessageType = 3
1378	// None of the above
1379	MessageOtherValue MessageType = 4
1380)
1381
1382// Passed as argument to various keybinding signals for moving the
1383// cursor position.
1384type MovementStep int
1385
1386var xMovementStepGLibType func() types.GType
1387
1388func MovementStepGLibType() types.GType {
1389	return xMovementStepGLibType()
1390}
1391
1392const (
1393
1394	// Move forward or back by graphemes
1395	MovementLogicalPositionsValue MovementStep = 0
1396	// Move left or right by graphemes
1397	MovementVisualPositionsValue MovementStep = 1
1398	// Move forward or back by words
1399	MovementWordsValue MovementStep = 2
1400	// Move up or down lines (wrapped lines)
1401	MovementDisplayLinesValue MovementStep = 3
1402	// Move to either end of a line
1403	MovementDisplayLineEndsValue MovementStep = 4
1404	// Move up or down paragraphs (newline-ended lines)
1405	MovementParagraphsValue MovementStep = 5
1406	// Move to either end of a paragraph
1407	MovementParagraphEndsValue MovementStep = 6
1408	// Move by pages
1409	MovementPagesValue MovementStep = 7
1410	// Move to ends of the buffer
1411	MovementBufferEndsValue MovementStep = 8
1412	// Move horizontally by pages
1413	MovementHorizontalPagesValue MovementStep = 9
1414)
1415
1416// Options for selecting a different wrap mode for natural size
1417// requests.
1418//
1419// See for example the [property@Gtk.Label:natural-wrap-mode] property.
1420type NaturalWrapMode int
1421
1422var xNaturalWrapModeGLibType func() types.GType
1423
1424func NaturalWrapModeGLibType() types.GType {
1425	return xNaturalWrapModeGLibType()
1426}
1427
1428const (
1429
1430	// Inherit the minimum size request.
1431	//   In particular, this should be used with %PANGO_WRAP_CHAR.
1432	NaturalWrapInheritValue NaturalWrapMode = 0
1433	// Try not to wrap the text. This mode is the
1434	//   closest to GTK3's behavior but can lead to a wide label leaving
1435	//   lots of empty space below the text.
1436	NaturalWrapNoneValue NaturalWrapMode = 1
1437	// Attempt to wrap at word boundaries. This
1438	//   is useful in particular when using %PANGO_WRAP_WORD_CHAR as the
1439	//   wrap mode.
1440	NaturalWrapWordValue NaturalWrapMode = 2
1441)
1442
1443// Used to determine the layout of pages on a sheet when printing
1444// multiple pages per sheet.
1445type NumberUpLayout int
1446
1447var xNumberUpLayoutGLibType func() types.GType
1448
1449func NumberUpLayoutGLibType() types.GType {
1450	return xNumberUpLayoutGLibType()
1451}
1452
1453const (
1454
1455	// ![](layout-lrtb.png)
1456	NumberUpLayoutLeftToRightTopToBottomValue NumberUpLayout = 0
1457	// ![](layout-lrbt.png)
1458	NumberUpLayoutLeftToRightBottomToTopValue NumberUpLayout = 1
1459	// ![](layout-rltb.png)
1460	NumberUpLayoutRightToLeftTopToBottomValue NumberUpLayout = 2
1461	// ![](layout-rlbt.png)
1462	NumberUpLayoutRightToLeftBottomToTopValue NumberUpLayout = 3
1463	// ![](layout-tblr.png)
1464	NumberUpLayoutTopToBottomLeftToRightValue NumberUpLayout = 4
1465	// ![](layout-tbrl.png)
1466	NumberUpLayoutTopToBottomRightToLeftValue NumberUpLayout = 5
1467	// ![](layout-btlr.png)
1468	NumberUpLayoutBottomToTopLeftToRightValue NumberUpLayout = 6
1469	// ![](layout-btrl.png)
1470	NumberUpLayoutBottomToTopRightToLeftValue NumberUpLayout = 7
1471)
1472
1473// Describes the way two values can be compared.
1474//
1475// These values can be used with a [callback@GLib.CompareFunc]. However,
1476// a `GCompareFunc` is allowed to return any integer values.
1477// For converting such a value to a `GtkOrdering` value, use
1478// [func@Gtk.Ordering.from_cmpfunc].
1479type Ordering int
1480
1481var xOrderingGLibType func() types.GType
1482
1483func OrderingGLibType() types.GType {
1484	return xOrderingGLibType()
1485}
1486
1487const (
1488
1489	// the first value is smaller than the second
1490	OrderingSmallerValue Ordering = -1
1491	// the two values are equal
1492	OrderingEqualValue Ordering = 0
1493	// the first value is larger than the second
1494	OrderingLargerValue Ordering = 1
1495)
1496
1497// Represents the orientation of widgets and other objects.
1498//
1499// Typical examples are [class@Box] or [class@GesturePan].
1500type Orientation int
1501
1502var xOrientationGLibType func() types.GType
1503
1504func OrientationGLibType() types.GType {
1505	return xOrientationGLibType()
1506}
1507
1508const (
1509
1510	// The element is in horizontal orientation.
1511	OrientationHorizontalValue Orientation = 0
1512	// The element is in vertical orientation.
1513	OrientationVerticalValue Orientation = 1
1514)
1515
1516// Defines how content overflowing a given area should be handled.
1517//
1518// This is used in [method@Gtk.Widget.set_overflow]. The
1519// [property@Gtk.Widget:overflow] property is modeled after the
1520// CSS overflow property, but implements it only partially.
1521type Overflow int
1522
1523var xOverflowGLibType func() types.GType
1524
1525func OverflowGLibType() types.GType {
1526	return xOverflowGLibType()
1527}
1528
1529const (
1530
1531	// No change is applied. Content is drawn at the specified
1532	//   position.
1533	OverflowVisibleValue Overflow = 0
1534	// Content is clipped to the bounds of the area. Content
1535	//   outside the area is not drawn and cannot be interacted with.
1536	OverflowHiddenValue Overflow = 1
1537)
1538
1539// Represents the packing location of a children in its parent.
1540//
1541// See [class@WindowControls] for example.
1542type PackType int
1543
1544var xPackTypeGLibType func() types.GType
1545
1546func PackTypeGLibType() types.GType {
1547	return xPackTypeGLibType()
1548}
1549
1550const (
1551
1552	// The child is packed into the start of the widget
1553	PackStartValue PackType = 0
1554	// The child is packed into the end of the widget
1555	PackEndValue PackType = 1
1556)
1557
1558// See also gtk_print_settings_set_orientation().
1559type PageOrientation int
1560
1561var xPageOrientationGLibType func() types.GType
1562
1563func PageOrientationGLibType() types.GType {
1564	return xPageOrientationGLibType()
1565}
1566
1567const (
1568
1569	// Portrait mode.
1570	PageOrientationPortraitValue PageOrientation = 0
1571	// Landscape mode.
1572	PageOrientationLandscapeValue PageOrientation = 1
1573	// Reverse portrait mode.
1574	PageOrientationReversePortraitValue PageOrientation = 2
1575	// Reverse landscape mode.
1576	PageOrientationReverseLandscapeValue PageOrientation = 3
1577)
1578
1579// See also gtk_print_job_set_page_set().
1580type PageSet int
1581
1582var xPageSetGLibType func() types.GType
1583
1584func PageSetGLibType() types.GType {
1585	return xPageSetGLibType()
1586}
1587
1588const (
1589
1590	// All pages.
1591	PageSetAllValue PageSet = 0
1592	// Even pages.
1593	PageSetEvenValue PageSet = 1
1594	// Odd pages.
1595	PageSetOddValue PageSet = 2
1596)
1597
1598// Describes the panning direction of a [class@GesturePan].
1599type PanDirection int
1600
1601var xPanDirectionGLibType func() types.GType
1602
1603func PanDirectionGLibType() types.GType {
1604	return xPanDirectionGLibType()
1605}
1606
1607const (
1608
1609	// panned towards the left
1610	PanDirectionLeftValue PanDirection = 0
1611	// panned towards the right
1612	PanDirectionRightValue PanDirection = 1
1613	// panned upwards
1614	PanDirectionUpValue PanDirection = 2
1615	// panned downwards
1616	PanDirectionDownValue PanDirection = 3
1617)
1618
1619// Describes which edge of a widget a certain feature is positioned at.
1620//
1621// For examples, see the tabs of a [class@Notebook], or the label
1622// of a [class@Scale].
1623type PositionType int
1624
1625var xPositionTypeGLibType func() types.GType
1626
1627func PositionTypeGLibType() types.GType {
1628	return xPositionTypeGLibType()
1629}
1630
1631const (
1632
1633	// The feature is at the left edge.
1634	PosLeftValue PositionType = 0
1635	// The feature is at the right edge.
1636	PosRightValue PositionType = 1
1637	// The feature is at the top edge.
1638	PosTopValue PositionType = 2
1639	// The feature is at the bottom edge.
1640	PosBottomValue PositionType = 3
1641)
1642
1643// See also gtk_print_settings_set_duplex().
1644type PrintDuplex int
1645
1646var xPrintDuplexGLibType func() types.GType
1647
1648func PrintDuplexGLibType() types.GType {
1649	return xPrintDuplexGLibType()
1650}
1651
1652const (
1653
1654	// No duplex.
1655	PrintDuplexSimplexValue PrintDuplex = 0
1656	// Horizontal duplex.
1657	PrintDuplexHorizontalValue PrintDuplex = 1
1658	// Vertical duplex.
1659	PrintDuplexVerticalValue PrintDuplex = 2
1660)
1661
1662// See also gtk_print_job_set_pages()
1663type PrintPages int
1664
1665var xPrintPagesGLibType func() types.GType
1666
1667func PrintPagesGLibType() types.GType {
1668	return xPrintPagesGLibType()
1669}
1670
1671const (
1672
1673	// All pages.
1674	PrintPagesAllValue PrintPages = 0
1675	// Current page.
1676	PrintPagesCurrentValue PrintPages = 1
1677	// Range of pages.
1678	PrintPagesRangesValue PrintPages = 2
1679	// Selected pages.
1680	PrintPagesSelectionValue PrintPages = 3
1681)
1682
1683// See also gtk_print_settings_set_quality().
1684type PrintQuality int
1685
1686var xPrintQualityGLibType func() types.GType
1687
1688func PrintQualityGLibType() types.GType {
1689	return xPrintQualityGLibType()
1690}
1691
1692const (
1693
1694	// Low quality.
1695	PrintQualityLowValue PrintQuality = 0
1696	// Normal quality.
1697	PrintQualityNormalValue PrintQuality = 1
1698	// High quality.
1699	PrintQualityHighValue PrintQuality = 2
1700	// Draft quality.
1701	PrintQualityDraftValue PrintQuality = 3
1702)
1703
1704// Describes limits of a [class@EventController] for handling events
1705// targeting other widgets.
1706type PropagationLimit int
1707
1708var xPropagationLimitGLibType func() types.GType
1709
1710func PropagationLimitGLibType() types.GType {
1711	return xPropagationLimitGLibType()
1712}
1713
1714const (
1715
1716	// Events are handled regardless of what their
1717	//   target is.
1718	LimitNoneValue PropagationLimit = 0
1719	// Events are only handled if their target is in
1720	//   the same [iface@Native] (or widget with [property@Gtk.Widget:limit-events]
1721	//   set) as the event controllers widget.
1722	//   Note that some event types have two targets (origin and destination).
1723	LimitSameNativeValue PropagationLimit = 1
1724)
1725
1726// Describes the stage at which events are fed into a [class@EventController].
1727type PropagationPhase int
1728
1729var xPropagationPhaseGLibType func() types.GType
1730
1731func PropagationPhaseGLibType() types.GType {
1732	return xPropagationPhaseGLibType()
1733}
1734
1735const (
1736
1737	// Events are not delivered.
1738	PhaseNoneValue PropagationPhase = 0
1739	// Events are delivered in the capture phase. The
1740	//   capture phase happens before the bubble phase, runs from the toplevel down
1741	//   to the event widget. This option should only be used on containers that
1742	//   might possibly handle events before their children do.
1743	PhaseCaptureValue PropagationPhase = 1
1744	// Events are delivered in the bubble phase. The bubble
1745	//   phase happens after the capture phase, and before the default handlers
1746	//   are run. This phase runs from the event widget, up to the toplevel.
1747	PhaseBubbleValue PropagationPhase = 2
1748	// Events are delivered in the default widget event handlers,
1749	//   note that widget implementations must chain up on button, motion, touch and
1750	//   grab broken handlers for controllers in this phase to be run.
1751	PhaseTargetValue PropagationPhase = 3
1752)
1753
1754// Passed as argument to various keybinding signals.
1755type ScrollStep int
1756
1757var xScrollStepGLibType func() types.GType
1758
1759func ScrollStepGLibType() types.GType {
1760	return xScrollStepGLibType()
1761}
1762
1763const (
1764
1765	// Scroll in steps.
1766	ScrollStepsValue ScrollStep = 0
1767	// Scroll by pages.
1768	ScrollPagesValue ScrollStep = 1
1769	// Scroll to ends.
1770	ScrollEndsValue ScrollStep = 2
1771	// Scroll in horizontal steps.
1772	ScrollHorizontalStepsValue ScrollStep = 3
1773	// Scroll by horizontal pages.
1774	ScrollHorizontalPagesValue ScrollStep = 4
1775	// Scroll to the horizontal ends.
1776	ScrollHorizontalEndsValue ScrollStep = 5
1777)
1778
1779// Scrolling types.
1780type ScrollType int
1781
1782var xScrollTypeGLibType func() types.GType
1783
1784func ScrollTypeGLibType() types.GType {
1785	return xScrollTypeGLibType()
1786}
1787
1788const (
1789
1790	// No scrolling.
1791	ScrollNoneValue ScrollType = 0
1792	// Jump to new location.
1793	ScrollJumpValue ScrollType = 1
1794	// Step backward.
1795	ScrollStepBackwardValue ScrollType = 2
1796	// Step forward.
1797	ScrollStepForwardValue ScrollType = 3
1798	// Page backward.
1799	ScrollPageBackwardValue ScrollType = 4
1800	// Page forward.
1801	ScrollPageForwardValue ScrollType = 5
1802	// Step up.
1803	ScrollStepUpValue ScrollType = 6
1804	// Step down.
1805	ScrollStepDownValue ScrollType = 7
1806	// Page up.
1807	ScrollPageUpValue ScrollType = 8
1808	// Page down.
1809	ScrollPageDownValue ScrollType = 9
1810	// Step to the left.
1811	ScrollStepLeftValue ScrollType = 10
1812	// Step to the right.
1813	ScrollStepRightValue ScrollType = 11
1814	// Page to the left.
1815	ScrollPageLeftValue ScrollType = 12
1816	// Page to the right.
1817	ScrollPageRightValue ScrollType = 13
1818	// Scroll to start.
1819	ScrollStartValue ScrollType = 14
1820	// Scroll to end.
1821	ScrollEndValue ScrollType = 15
1822)
1823
1824// Defines the policy to be used in a scrollable widget when updating
1825// the scrolled window adjustments in a given orientation.
1826type ScrollablePolicy int
1827
1828var xScrollablePolicyGLibType func() types.GType
1829
1830func ScrollablePolicyGLibType() types.GType {
1831	return xScrollablePolicyGLibType()
1832}
1833
1834const (
1835
1836	// Scrollable adjustments are based on the minimum size
1837	ScrollMinimumValue ScrollablePolicy = 0
1838	// Scrollable adjustments are based on the natural size
1839	ScrollNaturalValue ScrollablePolicy = 1
1840)
1841
1842// Used to control what selections users are allowed to make.
1843type SelectionMode int
1844
1845var xSelectionModeGLibType func() types.GType
1846
1847func SelectionModeGLibType() types.GType {
1848	return xSelectionModeGLibType()
1849}
1850
1851const (
1852
1853	// No selection is possible.
1854	SelectionNoneValue SelectionMode = 0
1855	// Zero or one element may be selected.
1856	SelectionSingleValue SelectionMode = 1
1857	// Exactly one element is selected.
1858	//   In some circumstances, such as initially or during a search
1859	//   operation, it’s possible for no element to be selected with
1860	//   %GTK_SELECTION_BROWSE. What is really enforced is that the user
1861	//   can’t deselect a currently selected element except by selecting
1862	//   another element.
1863	SelectionBrowseValue SelectionMode = 2
1864	// Any number of elements may be selected.
1865	//   The Ctrl key may be used to enlarge the selection, and Shift
1866	//   key to select between the focus and the child pointed to.
1867	//   Some widgets may also allow Click-drag to select a range of elements.
1868	SelectionMultipleValue SelectionMode = 3
1869)
1870
1871// Determines how GTK handles the sensitivity of various controls,
1872// such as combo box buttons.
1873type SensitivityType int
1874
1875var xSensitivityTypeGLibType func() types.GType
1876
1877func SensitivityTypeGLibType() types.GType {
1878	return xSensitivityTypeGLibType()
1879}
1880
1881const (
1882
1883	// The control is made insensitive if no
1884	//   action can be triggered
1885	SensitivityAutoValue SensitivityType = 0
1886	// The control is always sensitive
1887	SensitivityOnValue SensitivityType = 1
1888	// The control is always insensitive
1889	SensitivityOffValue SensitivityType = 2
1890)
1891
1892// Describes where [class@Shortcut]s added to a
1893// [class@ShortcutController] get handled.
1894type ShortcutScope int
1895
1896var xShortcutScopeGLibType func() types.GType
1897
1898func ShortcutScopeGLibType() types.GType {
1899	return xShortcutScopeGLibType()
1900}
1901
1902const (
1903
1904	// Shortcuts are handled inside
1905	//   the widget the controller belongs to.
1906	ShortcutScopeLocalValue ShortcutScope = 0
1907	// Shortcuts are handled by
1908	//   the first ancestor that is a [iface@ShortcutManager]
1909	ShortcutScopeManagedValue ShortcutScope = 1
1910	// Shortcuts are handled by
1911	//   the root widget.
1912	ShortcutScopeGlobalValue ShortcutScope = 2
1913)
1914
1915// The mode of the size group determines the directions in which the size
1916// group affects the requested sizes of its component widgets.
1917type SizeGroupMode int
1918
1919var xSizeGroupModeGLibType func() types.GType
1920
1921func SizeGroupModeGLibType() types.GType {
1922	return xSizeGroupModeGLibType()
1923}
1924
1925const (
1926
1927	// group has no effect
1928	SizeGroupNoneValue SizeGroupMode = 0
1929	// group affects horizontal requisition
1930	SizeGroupHorizontalValue SizeGroupMode = 1
1931	// group affects vertical requisition
1932	SizeGroupVerticalValue SizeGroupMode = 2
1933	// group affects both horizontal and vertical requisition
1934	SizeGroupBothValue SizeGroupMode = 3
1935)
1936
1937// Specifies a preference for height-for-width or
1938// width-for-height geometry management.
1939type SizeRequestMode int
1940
1941var xSizeRequestModeGLibType func() types.GType
1942
1943func SizeRequestModeGLibType() types.GType {
1944	return xSizeRequestModeGLibType()
1945}
1946
1947const (
1948
1949	// Prefer height-for-width geometry management
1950	SizeRequestHeightForWidthValue SizeRequestMode = 0
1951	// Prefer width-for-height geometry management
1952	SizeRequestWidthForHeightValue SizeRequestMode = 1
1953	// Don’t trade height-for-width or width-for-height
1954	SizeRequestConstantSizeValue SizeRequestMode = 2
1955)
1956
1957// Determines the direction of a sort.
1958type SortType int
1959
1960var xSortTypeGLibType func() types.GType
1961
1962func SortTypeGLibType() types.GType {
1963	return xSortTypeGLibType()
1964}
1965
1966const (
1967
1968	// Sorting is in ascending order.
1969	SortAscendingValue SortType = 0
1970	// Sorting is in descending order.
1971	SortDescendingValue SortType = 1
1972)
1973
1974// The indexes of colors passed to symbolic color rendering, such as
1975// [vfunc@Gtk.SymbolicPaintable.snapshot_symbolic].
1976//
1977// More values may be added over time.
1978type SymbolicColor int
1979
1980var xSymbolicColorGLibType func() types.GType
1981
1982func SymbolicColorGLibType() types.GType {
1983	return xSymbolicColorGLibType()
1984}
1985
1986const (
1987
1988	// The default foreground color
1989	SymbolicColorForegroundValue SymbolicColor = 0
1990	// Indication color for errors
1991	SymbolicColorErrorValue SymbolicColor = 1
1992	// Indication color for warnings
1993	SymbolicColorWarningValue SymbolicColor = 2
1994	// Indication color for success
1995	SymbolicColorSuccessValue SymbolicColor = 3
1996)
1997
1998// Values that can be passed to the [vfunc@Gtk.Widget.system_setting_changed]
1999// vfunc.
2000//
2001// The values indicate which system setting has changed.
2002// Widgets may need to drop caches, or react otherwise.
2003//
2004// Most of the values correspond to [class@Settings] properties.
2005//
2006// More values may be added over time.
2007type SystemSetting int
2008
2009var xSystemSettingGLibType func() types.GType
2010
2011func SystemSettingGLibType() types.GType {
2012	return xSystemSettingGLibType()
2013}
2014
2015const (
2016
2017	// the [property@Gtk.Settings:gtk-xft-dpi] setting has changed
2018	SystemSettingDpiValue SystemSetting = 0
2019	// The [property@Gtk.Settings:gtk-font-name] setting has changed
2020	SystemSettingFontNameValue SystemSetting = 1
2021	// The font configuration has changed in a way that
2022	//   requires text to be redrawn. This can be any of the
2023	//   [property@Gtk.Settings:gtk-xft-antialias],
2024	//   [property@Gtk.Settings:gtk-xft-hinting],
2025	//   [property@Gtk.Settings:gtk-xft-hintstyle],
2026	//   [property@Gtk.Settings:gtk-xft-rgba] or
2027	//   [property@Gtk.Settings:gtk-fontconfig-timestamp] settings
2028	SystemSettingFontConfigValue SystemSetting = 2
2029	// The display has changed
2030	SystemSettingDisplayValue SystemSetting = 3
2031	// The icon theme has changed in a way that requires
2032	//   icons to be looked up again
2033	SystemSettingIconThemeValue SystemSetting = 4
2034)
2035
2036// Reading directions for text.
2037type TextDirection int
2038
2039var xTextDirectionGLibType func() types.GType
2040
2041func TextDirectionGLibType() types.GType {
2042	return xTextDirectionGLibType()
2043}
2044
2045const (
2046
2047	// No direction.
2048	TextDirNoneValue TextDirection = 0
2049	// Left to right text direction.
2050	TextDirLtrValue TextDirection = 1
2051	// Right to left text direction.
2052	TextDirRtlValue TextDirection = 2
2053)
2054
2055// Used to indicate which grid lines to draw in a tree view.
2056type TreeViewGridLines int
2057
2058var xTreeViewGridLinesGLibType func() types.GType
2059
2060func TreeViewGridLinesGLibType() types.GType {
2061	return xTreeViewGridLinesGLibType()
2062}
2063
2064const (
2065
2066	// No grid lines.
2067	TreeViewGridLinesNoneValue TreeViewGridLines = 0
2068	// Horizontal grid lines.
2069	TreeViewGridLinesHorizontalValue TreeViewGridLines = 1
2070	// Vertical grid lines.
2071	TreeViewGridLinesVerticalValue TreeViewGridLines = 2
2072	// Horizontal and vertical grid lines.
2073	TreeViewGridLinesBothValue TreeViewGridLines = 3
2074)
2075
2076// See also gtk_print_settings_set_paper_width().
2077type Unit int
2078
2079var xUnitGLibType func() types.GType
2080
2081func UnitGLibType() types.GType {
2082	return xUnitGLibType()
2083}
2084
2085const (
2086
2087	// No units.
2088	UnitNoneValue Unit = 0
2089	// Dimensions in points.
2090	UnitPointsValue Unit = 1
2091	// Dimensions in inches.
2092	UnitInchValue Unit = 2
2093	// Dimensions in millimeters
2094	UnitMmValue Unit = 3
2095)
2096
2097// Describes a type of line wrapping.
2098type WrapMode int
2099
2100var xWrapModeGLibType func() types.GType
2101
2102func WrapModeGLibType() types.GType {
2103	return xWrapModeGLibType()
2104}
2105
2106const (
2107
2108	// do not wrap lines; just make the text area wider
2109	WrapNoneValue WrapMode = 0
2110	// wrap text, breaking lines anywhere the cursor can
2111	//   appear (between characters, usually - if you want to be technical,
2112	//   between graphemes, see pango_get_log_attrs())
2113	WrapCharValue WrapMode = 1
2114	// wrap text, breaking lines in between words
2115	WrapWordValue WrapMode = 2
2116	// wrap text, breaking lines in between words, or if
2117	//   that is not enough, also between graphemes
2118	WrapWordCharValue WrapMode = 3
2119)
2120
2121var xOrderingFromCmpfunc func(int) Ordering
2122
2123// Converts the result of a `GCompareFunc` like strcmp() to a
2124// `GtkOrdering` value.
2125func OrderingFromCmpfunc(CmpfuncResultVar int) Ordering {
2126
2127	cret := xOrderingFromCmpfunc(CmpfuncResultVar)
2128	return cret
2129}
2130
2131func init() {
2132	core.SetPackageName("GTK", "gtk4")
2133	core.SetSharedLibraries("GTK", []string{"libgtk-4.so.1"})
2134	var libs []uintptr
2135	for _, libPath := range core.GetPaths("GTK") {
2136		lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL)
2137		if err != nil {
2138			panic(err)
2139		}
2140		libs = append(libs, lib)
2141	}
2142
2143	core.PuregoSafeRegister(&xInputHintsGLibType, libs, "gtk_input_hints_get_type")
2144
2145	core.PuregoSafeRegister(&xListScrollFlagsGLibType, libs, "gtk_list_scroll_flags_get_type")
2146
2147	core.PuregoSafeRegister(&xPickFlagsGLibType, libs, "gtk_pick_flags_get_type")
2148
2149	core.PuregoSafeRegister(&xPopoverMenuFlagsGLibType, libs, "gtk_popover_menu_flags_get_type")
2150
2151	core.PuregoSafeRegister(&xStateFlagsGLibType, libs, "gtk_state_flags_get_type")
2152
2153	core.PuregoSafeRegister(&xTextBufferNotifyFlagsGLibType, libs, "gtk_text_buffer_notify_flags_get_type")
2154
2155	core.PuregoSafeRegister(&xAccessibleAnnouncementPriorityGLibType, libs, "gtk_accessible_announcement_priority_get_type")
2156
2157	core.PuregoSafeRegister(&xAccessibleAutocompleteGLibType, libs, "gtk_accessible_autocomplete_get_type")
2158
2159	core.PuregoSafeRegister(&xAccessibleInvalidStateGLibType, libs, "gtk_accessible_invalid_state_get_type")
2160
2161	core.PuregoSafeRegister(&xAccessiblePropertyGLibType, libs, "gtk_accessible_property_get_type")
2162
2163	core.PuregoSafeRegister(&xAccessibleRelationGLibType, libs, "gtk_accessible_relation_get_type")
2164
2165	core.PuregoSafeRegister(&xAccessibleRoleGLibType, libs, "gtk_accessible_role_get_type")
2166
2167	core.PuregoSafeRegister(&xAccessibleSortGLibType, libs, "gtk_accessible_sort_get_type")
2168
2169	core.PuregoSafeRegister(&xAccessibleStateGLibType, libs, "gtk_accessible_state_get_type")
2170
2171	core.PuregoSafeRegister(&xAccessibleTristateGLibType, libs, "gtk_accessible_tristate_get_type")
2172
2173	core.PuregoSafeRegister(&xAlignGLibType, libs, "gtk_align_get_type")
2174
2175	core.PuregoSafeRegister(&xArrowTypeGLibType, libs, "gtk_arrow_type_get_type")
2176
2177	core.PuregoSafeRegister(&xBaselinePositionGLibType, libs, "gtk_baseline_position_get_type")
2178
2179	core.PuregoSafeRegister(&xBorderStyleGLibType, libs, "gtk_border_style_get_type")
2180
2181	core.PuregoSafeRegister(&xConstraintAttributeGLibType, libs, "gtk_constraint_attribute_get_type")
2182
2183	core.PuregoSafeRegister(&xConstraintRelationGLibType, libs, "gtk_constraint_relation_get_type")
2184
2185	core.PuregoSafeRegister(&xConstraintStrengthGLibType, libs, "gtk_constraint_strength_get_type")
2186
2187	core.PuregoSafeRegister(&xConstraintVflParserErrorGLibType, libs, "gtk_constraint_vfl_parser_error_get_type")
2188
2189	core.PuregoSafeRegister(&xContentFitGLibType, libs, "gtk_content_fit_get_type")
2190
2191	core.PuregoSafeRegister(&xDeleteTypeGLibType, libs, "gtk_delete_type_get_type")
2192
2193	core.PuregoSafeRegister(&xDirectionTypeGLibType, libs, "gtk_direction_type_get_type")
2194
2195	core.PuregoSafeRegister(&xEventSequenceStateGLibType, libs, "gtk_event_sequence_state_get_type")
2196
2197	core.PuregoSafeRegister(&xFontRenderingGLibType, libs, "gtk_font_rendering_get_type")
2198
2199	core.PuregoSafeRegister(&xIconSizeGLibType, libs, "gtk_icon_size_get_type")
2200
2201	core.PuregoSafeRegister(&xInputPurposeGLibType, libs, "gtk_input_purpose_get_type")
2202
2203	core.PuregoSafeRegister(&xInterfaceColorSchemeGLibType, libs, "gtk_interface_color_scheme_get_type")
2204
2205	core.PuregoSafeRegister(&xInterfaceContrastGLibType, libs, "gtk_interface_contrast_get_type")
2206
2207	core.PuregoSafeRegister(&xJustificationGLibType, libs, "gtk_justification_get_type")
2208
2209	core.PuregoSafeRegister(&xLevelBarModeGLibType, libs, "gtk_level_bar_mode_get_type")
2210
2211	core.PuregoSafeRegister(&xListTabBehaviorGLibType, libs, "gtk_list_tab_behavior_get_type")
2212
2213	core.PuregoSafeRegister(&xMessageTypeGLibType, libs, "gtk_message_type_get_type")
2214
2215	core.PuregoSafeRegister(&xMovementStepGLibType, libs, "gtk_movement_step_get_type")
2216
2217	core.PuregoSafeRegister(&xNaturalWrapModeGLibType, libs, "gtk_natural_wrap_mode_get_type")
2218
2219	core.PuregoSafeRegister(&xNumberUpLayoutGLibType, libs, "gtk_number_up_layout_get_type")
2220
2221	core.PuregoSafeRegister(&xOrderingGLibType, libs, "gtk_ordering_get_type")
2222
2223	core.PuregoSafeRegister(&xOrientationGLibType, libs, "gtk_orientation_get_type")
2224
2225	core.PuregoSafeRegister(&xOverflowGLibType, libs, "gtk_overflow_get_type")
2226
2227	core.PuregoSafeRegister(&xPackTypeGLibType, libs, "gtk_pack_type_get_type")
2228
2229	core.PuregoSafeRegister(&xPageOrientationGLibType, libs, "gtk_page_orientation_get_type")
2230
2231	core.PuregoSafeRegister(&xPageSetGLibType, libs, "gtk_page_set_get_type")
2232
2233	core.PuregoSafeRegister(&xPanDirectionGLibType, libs, "gtk_pan_direction_get_type")
2234
2235	core.PuregoSafeRegister(&xPositionTypeGLibType, libs, "gtk_position_type_get_type")
2236
2237	core.PuregoSafeRegister(&xPrintDuplexGLibType, libs, "gtk_print_duplex_get_type")
2238
2239	core.PuregoSafeRegister(&xPrintPagesGLibType, libs, "gtk_print_pages_get_type")
2240
2241	core.PuregoSafeRegister(&xPrintQualityGLibType, libs, "gtk_print_quality_get_type")
2242
2243	core.PuregoSafeRegister(&xPropagationLimitGLibType, libs, "gtk_propagation_limit_get_type")
2244
2245	core.PuregoSafeRegister(&xPropagationPhaseGLibType, libs, "gtk_propagation_phase_get_type")
2246
2247	core.PuregoSafeRegister(&xScrollStepGLibType, libs, "gtk_scroll_step_get_type")
2248
2249	core.PuregoSafeRegister(&xScrollTypeGLibType, libs, "gtk_scroll_type_get_type")
2250
2251	core.PuregoSafeRegister(&xScrollablePolicyGLibType, libs, "gtk_scrollable_policy_get_type")
2252
2253	core.PuregoSafeRegister(&xSelectionModeGLibType, libs, "gtk_selection_mode_get_type")
2254
2255	core.PuregoSafeRegister(&xSensitivityTypeGLibType, libs, "gtk_sensitivity_type_get_type")
2256
2257	core.PuregoSafeRegister(&xShortcutScopeGLibType, libs, "gtk_shortcut_scope_get_type")
2258
2259	core.PuregoSafeRegister(&xSizeGroupModeGLibType, libs, "gtk_size_group_mode_get_type")
2260
2261	core.PuregoSafeRegister(&xSizeRequestModeGLibType, libs, "gtk_size_request_mode_get_type")
2262
2263	core.PuregoSafeRegister(&xSortTypeGLibType, libs, "gtk_sort_type_get_type")
2264
2265	core.PuregoSafeRegister(&xSymbolicColorGLibType, libs, "gtk_symbolic_color_get_type")
2266
2267	core.PuregoSafeRegister(&xSystemSettingGLibType, libs, "gtk_system_setting_get_type")
2268
2269	core.PuregoSafeRegister(&xTextDirectionGLibType, libs, "gtk_text_direction_get_type")
2270
2271	core.PuregoSafeRegister(&xTreeViewGridLinesGLibType, libs, "gtk_tree_view_grid_lines_get_type")
2272
2273	core.PuregoSafeRegister(&xUnitGLibType, libs, "gtk_unit_get_type")
2274
2275	core.PuregoSafeRegister(&xWrapModeGLibType, libs, "gtk_wrap_mode_get_type")
2276
2277	core.PuregoSafeRegister(&xOrderingFromCmpfunc, libs, "gtk_ordering_from_cmpfunc")
2278
2279}

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