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/gdk"
9 "github.com/bnema/puregotk/v4/glib"
10 "github.com/bnema/puregotk/v4/gobject"
11 "github.com/bnema/puregotk/v4/gobject/types"
12)
13
14// A widget displaying a single row of a GtkTreeModel
15//
16// A `GtkCellView` displays a single row of a `GtkTreeModel` using a `GtkCellArea`
17// and `GtkCellAreaContext`. A `GtkCellAreaContext` can be provided to the
18// `GtkCellView` at construction time in order to keep the cellview in context
19// of a group of cell views, this ensures that the renderers displayed will
20// be properly aligned with each other (like the aligned cells in the menus
21// of `GtkComboBox`).
22//
23// `GtkCellView` is `GtkOrientable` in order to decide in which orientation
24// the underlying `GtkCellAreaContext` should be allocated. Taking the `GtkComboBox`
25// menu as an example, cellviews should be oriented horizontally if the menus are
26// listed top-to-bottom and thus all share the same width but may have separate
27// individual heights (left-to-right menus should be allocated vertically since
28// they all share the same height but may have variable widths).
29//
30// ## CSS nodes
31//
32// GtkCellView has a single CSS node with name cellview.
33type CellView struct {
34 Widget
35}
36
37var xCellViewGLibType func() types.GType
38
39func CellViewGLibType() types.GType {
40 return xCellViewGLibType()
41}
42
43func CellViewNewFromInternalPtr(ptr uintptr) *CellView {
44 cls := &CellView{}
45 cls.Ptr = ptr
46 return cls
47}
48
49var xNewCellView func() uintptr
50
51// Creates a new `GtkCellView` widget.
52func NewCellView() *CellView {
53 var cls *CellView
54
55 cret := xNewCellView()
56
57 if cret == 0 {
58 return nil
59 }
60 gobject.IncreaseRef(cret)
61 cls = &CellView{}
62 cls.Ptr = cret
63 return cls
64}
65
66var xNewCellViewWithContext func(uintptr, uintptr) uintptr
67
68// Creates a new `GtkCellView` widget with a specific `GtkCellArea`
69// to layout cells and a specific `GtkCellAreaContext`.
70//
71// Specifying the same context for a handful of cells lets
72// the underlying area synchronize the geometry for those cells,
73// in this way alignments with cellviews for other rows are
74// possible.
75func NewCellViewWithContext(AreaVar *CellArea, ContextVar *CellAreaContext) *CellView {
76 var cls *CellView
77
78 cret := xNewCellViewWithContext(AreaVar.GoPointer(), ContextVar.GoPointer())
79
80 if cret == 0 {
81 return nil
82 }
83 gobject.IncreaseRef(cret)
84 cls = &CellView{}
85 cls.Ptr = cret
86 return cls
87}
88
89var xNewCellViewWithMarkup func(string) uintptr
90
91// Creates a new `GtkCellView` widget, adds a `GtkCellRendererText`
92// to it, and makes it show @markup. The text can be marked up with
93// the [Pango text markup language](https://docs.gtk.org/Pango/pango_markup.html).
94func NewCellViewWithMarkup(MarkupVar string) *CellView {
95 var cls *CellView
96
97 cret := xNewCellViewWithMarkup(MarkupVar)
98
99 if cret == 0 {
100 return nil
101 }
102 gobject.IncreaseRef(cret)
103 cls = &CellView{}
104 cls.Ptr = cret
105 return cls
106}
107
108var xNewCellViewWithText func(string) uintptr
109
110// Creates a new `GtkCellView` widget, adds a `GtkCellRendererText`
111// to it, and makes it show @text.
112func NewCellViewWithText(TextVar string) *CellView {
113 var cls *CellView
114
115 cret := xNewCellViewWithText(TextVar)
116
117 if cret == 0 {
118 return nil
119 }
120 gobject.IncreaseRef(cret)
121 cls = &CellView{}
122 cls.Ptr = cret
123 return cls
124}
125
126var xNewCellViewWithTexture func(uintptr) uintptr
127
128// Creates a new `GtkCellView` widget, adds a `GtkCellRendererPixbuf`
129// to it, and makes it show @texture.
130func NewCellViewWithTexture(TextureVar *gdk.Texture) *CellView {
131 var cls *CellView
132
133 cret := xNewCellViewWithTexture(TextureVar.GoPointer())
134
135 if cret == 0 {
136 return nil
137 }
138 gobject.IncreaseRef(cret)
139 cls = &CellView{}
140 cls.Ptr = cret
141 return cls
142}
143
144var xCellViewGetDisplayedRow func(uintptr) *TreePath
145
146// Returns a `GtkTreePath` referring to the currently
147// displayed row. If no row is currently displayed,
148// %NULL is returned.
149func (x *CellView) GetDisplayedRow() *TreePath {
150
151 cret := xCellViewGetDisplayedRow(x.GoPointer())
152 return cret
153}
154
155var xCellViewGetDrawSensitive func(uintptr) bool
156
157// Gets whether @cell_view is configured to draw all of its
158// cells in a sensitive state.
159func (x *CellView) GetDrawSensitive() bool {
160
161 cret := xCellViewGetDrawSensitive(x.GoPointer())
162 return cret
163}
164
165var xCellViewGetFitModel func(uintptr) bool
166
167// Gets whether @cell_view is configured to request space
168// to fit the entire `GtkTreeModel`.
169func (x *CellView) GetFitModel() bool {
170
171 cret := xCellViewGetFitModel(x.GoPointer())
172 return cret
173}
174
175var xCellViewGetModel func(uintptr) uintptr
176
177// Returns the model for @cell_view. If no model is used %NULL is
178// returned.
179func (x *CellView) GetModel() *TreeModelBase {
180 var cls *TreeModelBase
181
182 cret := xCellViewGetModel(x.GoPointer())
183
184 if cret == 0 {
185 return nil
186 }
187 gobject.IncreaseRef(cret)
188 cls = &TreeModelBase{}
189 cls.Ptr = cret
190 return cls
191}
192
193var xCellViewSetDisplayedRow func(uintptr, *TreePath)
194
195// Sets the row of the model that is currently displayed
196// by the `GtkCellView`. If the path is unset, then the
197// contents of the cellview “stick” at their last value;
198// this is not normally a desired result, but may be
199// a needed intermediate state if say, the model for
200// the `GtkCellView` becomes temporarily empty.
201func (x *CellView) SetDisplayedRow(PathVar *TreePath) {
202
203 xCellViewSetDisplayedRow(x.GoPointer(), PathVar)
204
205}
206
207var xCellViewSetDrawSensitive func(uintptr, bool)
208
209// Sets whether @cell_view should draw all of its
210// cells in a sensitive state, this is used by `GtkComboBox` menus
211// to ensure that rows with insensitive cells that contain
212// children appear sensitive in the parent menu item.
213func (x *CellView) SetDrawSensitive(DrawSensitiveVar bool) {
214
215 xCellViewSetDrawSensitive(x.GoPointer(), DrawSensitiveVar)
216
217}
218
219var xCellViewSetFitModel func(uintptr, bool)
220
221// Sets whether @cell_view should request space to fit the entire `GtkTreeModel`.
222//
223// This is used by `GtkComboBox` to ensure that the cell view displayed on
224// the combo box’s button always gets enough space and does not resize
225// when selection changes.
226func (x *CellView) SetFitModel(FitModelVar bool) {
227
228 xCellViewSetFitModel(x.GoPointer(), FitModelVar)
229
230}
231
232var xCellViewSetModel func(uintptr, uintptr)
233
234// Sets the model for @cell_view. If @cell_view already has a model
235// set, it will remove it before setting the new model. If @model is
236// %NULL, then it will unset the old model.
237func (x *CellView) SetModel(ModelVar TreeModel) {
238
239 xCellViewSetModel(x.GoPointer(), ModelVar.GoPointer())
240
241}
242
243func (c *CellView) GoPointer() uintptr {
244 if c == nil {
245 return 0
246 }
247 return c.Ptr
248}
249
250func (c *CellView) SetGoPointer(ptr uintptr) {
251 c.Ptr = ptr
252}
253
254// SetPropertyDrawSensitive sets the "draw-sensitive" property.
255// Whether all cells should be draw as sensitive for this view regardless
256// of the actual cell properties (used to make menus with submenus appear
257// sensitive when the items in submenus might be insensitive).
258//
259// since 3.0
260func (x *CellView) SetPropertyDrawSensitive(value bool) {
261 var v gobject.Value
262 v.Init(gobject.TypeBooleanVal)
263 v.SetBoolean(value)
264 x.SetProperty("draw-sensitive", &v)
265}
266
267// GetPropertyDrawSensitive gets the "draw-sensitive" property.
268// Whether all cells should be draw as sensitive for this view regardless
269// of the actual cell properties (used to make menus with submenus appear
270// sensitive when the items in submenus might be insensitive).
271//
272// since 3.0
273func (x *CellView) GetPropertyDrawSensitive() bool {
274 var v gobject.Value
275 x.GetProperty("draw-sensitive", &v)
276 return v.GetBoolean()
277}
278
279// SetPropertyFitModel sets the "fit-model" property.
280// Whether the view should request enough space to always fit
281// the size of every row in the model (used by the combo box to
282// ensure the combo box size doesn't change when different items
283// are selected).
284//
285// since 3.0
286func (x *CellView) SetPropertyFitModel(value bool) {
287 var v gobject.Value
288 v.Init(gobject.TypeBooleanVal)
289 v.SetBoolean(value)
290 x.SetProperty("fit-model", &v)
291}
292
293// GetPropertyFitModel gets the "fit-model" property.
294// Whether the view should request enough space to always fit
295// the size of every row in the model (used by the combo box to
296// ensure the combo box size doesn't change when different items
297// are selected).
298//
299// since 3.0
300func (x *CellView) GetPropertyFitModel() bool {
301 var v gobject.Value
302 x.GetProperty("fit-model", &v)
303 return v.GetBoolean()
304}
305
306// Requests the user's screen reader to announce the given message.
307//
308// This kind of notification is useful for messages that
309// either have only a visual representation or that are not
310// exposed visually at all, e.g. a notification about a
311// successful operation.
312//
313// Also, by using this API, you can ensure that the message
314// does not interrupts the user's current screen reader output.
315func (x *CellView) Announce(MessageVar string, PriorityVar AccessibleAnnouncementPriority) {
316
317 XGtkAccessibleAnnounce(x.GoPointer(), MessageVar, PriorityVar)
318
319}
320
321// Retrieves the accessible parent for an accessible object.
322//
323// This function returns `NULL` for top level widgets.
324func (x *CellView) GetAccessibleParent() *AccessibleBase {
325 var cls *AccessibleBase
326
327 cret := XGtkAccessibleGetAccessibleParent(x.GoPointer())
328
329 if cret == 0 {
330 return nil
331 }
332 cls = &AccessibleBase{}
333 cls.Ptr = cret
334 return cls
335}
336
337// Retrieves the accessible role of an accessible object.
338func (x *CellView) GetAccessibleRole() AccessibleRole {
339
340 cret := XGtkAccessibleGetAccessibleRole(x.GoPointer())
341 return cret
342}
343
344// Retrieves the implementation for the given accessible object.
345func (x *CellView) GetAtContext() *ATContext {
346 var cls *ATContext
347
348 cret := XGtkAccessibleGetAtContext(x.GoPointer())
349
350 if cret == 0 {
351 return nil
352 }
353 cls = &ATContext{}
354 cls.Ptr = cret
355 return cls
356}
357
358// Queries the coordinates and dimensions of this accessible
359//
360// This functionality can be overridden by `GtkAccessible`
361// implementations, e.g. to get the bounds from an ignored
362// child widget.
363func (x *CellView) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool {
364
365 cret := XGtkAccessibleGetBounds(x.GoPointer(), XVar, YVar, WidthVar, HeightVar)
366 return cret
367}
368
369// Retrieves the first accessible child of an accessible object.
370func (x *CellView) GetFirstAccessibleChild() *AccessibleBase {
371 var cls *AccessibleBase
372
373 cret := XGtkAccessibleGetFirstAccessibleChild(x.GoPointer())
374
375 if cret == 0 {
376 return nil
377 }
378 cls = &AccessibleBase{}
379 cls.Ptr = cret
380 return cls
381}
382
383// Retrieves the next accessible sibling of an accessible object
384func (x *CellView) GetNextAccessibleSibling() *AccessibleBase {
385 var cls *AccessibleBase
386
387 cret := XGtkAccessibleGetNextAccessibleSibling(x.GoPointer())
388
389 if cret == 0 {
390 return nil
391 }
392 cls = &AccessibleBase{}
393 cls.Ptr = cret
394 return cls
395}
396
397// Queries a platform state, such as focus.
398//
399// This functionality can be overridden by `GtkAccessible`
400// implementations, e.g. to get platform state from an ignored
401// child widget, as is the case for `GtkText` wrappers.
402func (x *CellView) GetPlatformState(StateVar AccessiblePlatformState) bool {
403
404 cret := XGtkAccessibleGetPlatformState(x.GoPointer(), StateVar)
405 return cret
406}
407
408// Resets the accessible property to its default value.
409func (x *CellView) ResetProperty(PropertyVar AccessibleProperty) {
410
411 XGtkAccessibleResetProperty(x.GoPointer(), PropertyVar)
412
413}
414
415// Resets the accessible relation to its default value.
416func (x *CellView) ResetRelation(RelationVar AccessibleRelation) {
417
418 XGtkAccessibleResetRelation(x.GoPointer(), RelationVar)
419
420}
421
422// Resets the accessible state to its default value.
423func (x *CellView) ResetState(StateVar AccessibleState) {
424
425 XGtkAccessibleResetState(x.GoPointer(), StateVar)
426
427}
428
429// Sets the parent and sibling of an accessible object.
430//
431// This function is meant to be used by accessible implementations that are
432// not part of the widget hierarchy, and but act as a logical bridge between
433// widgets. For instance, if a widget creates an object that holds metadata
434// for each child, and you want that object to implement the `GtkAccessible`
435// interface, you will use this function to ensure that the parent of each
436// child widget is the metadata object, and the parent of each metadata
437// object is the container widget.
438func (x *CellView) SetAccessibleParent(ParentVar Accessible, NextSiblingVar Accessible) {
439
440 XGtkAccessibleSetAccessibleParent(x.GoPointer(), ParentVar.GoPointer(), NextSiblingVar.GoPointer())
441
442}
443
444// Updates the next accessible sibling.
445//
446// That might be useful when a new child of a custom accessible
447// is created, and it needs to be linked to a previous child.
448func (x *CellView) UpdateNextAccessibleSibling(NewSiblingVar Accessible) {
449
450 XGtkAccessibleUpdateNextAccessibleSibling(x.GoPointer(), NewSiblingVar.GoPointer())
451
452}
453
454// Informs ATs that the platform state has changed.
455//
456// This function should be used by `GtkAccessible` implementations that
457// have a platform state but are not widgets. Widgets handle platform
458// states automatically.
459func (x *CellView) UpdatePlatformState(StateVar AccessiblePlatformState) {
460
461 XGtkAccessibleUpdatePlatformState(x.GoPointer(), StateVar)
462
463}
464
465// Updates a list of accessible properties.
466//
467// See the [enum@Gtk.AccessibleProperty] documentation for the
468// value types of accessible properties.
469//
470// This function should be called by `GtkWidget` types whenever
471// an accessible property change must be communicated to assistive
472// technologies.
473//
474// Example:
475// ```c
476// value = gtk_adjustment_get_value (adjustment);
477// gtk_accessible_update_property (GTK_ACCESSIBLE (spin_button),
478//
479// GTK_ACCESSIBLE_PROPERTY_VALUE_NOW, value,
480// -1);
481//
482// ```
483func (x *CellView) UpdateProperty(FirstPropertyVar AccessibleProperty, varArgs ...interface{}) {
484
485 XGtkAccessibleUpdateProperty(x.GoPointer(), FirstPropertyVar, varArgs...)
486
487}
488
489// Updates an array of accessible properties.
490//
491// This function should be called by `GtkWidget` types whenever an accessible
492// property change must be communicated to assistive technologies.
493//
494// This function is meant to be used by language bindings.
495func (x *CellView) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []AccessibleProperty, ValuesVar []gobject.Value) {
496
497 XGtkAccessibleUpdatePropertyValue(x.GoPointer(), NPropertiesVar, PropertiesVar, ValuesVar)
498
499}
500
501// Updates a list of accessible relations.
502//
503// This function should be called by `GtkWidget` types whenever an accessible
504// relation change must be communicated to assistive technologies.
505//
506// If the [enum@Gtk.AccessibleRelation] requires a list of references,
507// you should pass each reference individually, followed by `NULL`, e.g.
508//
509// ```c
510// gtk_accessible_update_relation (accessible,
511//
512// GTK_ACCESSIBLE_RELATION_CONTROLS,
513// ref1, NULL,
514// GTK_ACCESSIBLE_RELATION_LABELLED_BY,
515// ref1, ref2, ref3, NULL,
516// -1);
517//
518// ```
519func (x *CellView) UpdateRelation(FirstRelationVar AccessibleRelation, varArgs ...interface{}) {
520
521 XGtkAccessibleUpdateRelation(x.GoPointer(), FirstRelationVar, varArgs...)
522
523}
524
525// Updates an array of accessible relations.
526//
527// This function should be called by `GtkWidget` types whenever an accessible
528// relation change must be communicated to assistive technologies.
529//
530// This function is meant to be used by language bindings.
531func (x *CellView) UpdateRelationValue(NRelationsVar int, RelationsVar []AccessibleRelation, ValuesVar []gobject.Value) {
532
533 XGtkAccessibleUpdateRelationValue(x.GoPointer(), NRelationsVar, RelationsVar, ValuesVar)
534
535}
536
537// Updates a list of accessible states.
538//
539// See the [enum@Gtk.AccessibleState] documentation for the
540// value types of accessible states.
541//
542// This function should be called by `GtkWidget` types whenever
543// an accessible state change must be communicated to assistive
544// technologies.
545//
546// Example:
547//
548// ```c
549// value = GTK_ACCESSIBLE_TRISTATE_MIXED;
550// gtk_accessible_update_state (GTK_ACCESSIBLE (check_button),
551//
552// GTK_ACCESSIBLE_STATE_CHECKED, value,
553// -1);
554//
555// ```
556func (x *CellView) UpdateState(FirstStateVar AccessibleState, varArgs ...interface{}) {
557
558 XGtkAccessibleUpdateState(x.GoPointer(), FirstStateVar, varArgs...)
559
560}
561
562// Updates an array of accessible states.
563//
564// This function should be called by `GtkWidget` types whenever an accessible
565// state change must be communicated to assistive technologies.
566//
567// This function is meant to be used by language bindings.
568func (x *CellView) UpdateStateValue(NStatesVar int, StatesVar []AccessibleState, ValuesVar []gobject.Value) {
569
570 XGtkAccessibleUpdateStateValue(x.GoPointer(), NStatesVar, StatesVar, ValuesVar)
571
572}
573
574// Gets the ID of the @buildable object.
575//
576// `GtkBuilder` sets the name based on the ID attribute
577// of the `<object>` tag used to construct the @buildable.
578func (x *CellView) GetBuildableId() string {
579
580 cret := XGtkBuildableGetBuildableId(x.GoPointer())
581 return cret
582}
583
584// Adds an attribute mapping to the list in @cell_layout.
585//
586// The @column is the column of the model to get a value from, and the
587// @attribute is the property on @cell to be set from that value. So for
588// example if column 2 of the model contains strings, you could have the
589// “text” attribute of a `GtkCellRendererText` get its values from column 2.
590// In this context "attribute" and "property" are used interchangeably.
591func (x *CellView) AddAttribute(CellVar *CellRenderer, AttributeVar string, ColumnVar int) {
592
593 XGtkCellLayoutAddAttribute(x.GoPointer(), CellVar.GoPointer(), AttributeVar, ColumnVar)
594
595}
596
597// Unsets all the mappings on all renderers on @cell_layout and
598// removes all renderers from @cell_layout.
599func (x *CellView) Clear() {
600
601 XGtkCellLayoutClear(x.GoPointer())
602
603}
604
605// Clears all existing attributes previously set with
606// gtk_cell_layout_set_attributes().
607func (x *CellView) ClearAttributes(CellVar *CellRenderer) {
608
609 XGtkCellLayoutClearAttributes(x.GoPointer(), CellVar.GoPointer())
610
611}
612
613// Returns the underlying `GtkCellArea` which might be @cell_layout
614// if called on a `GtkCellArea` or might be %NULL if no `GtkCellArea`
615// is used by @cell_layout.
616func (x *CellView) GetArea() *CellArea {
617 var cls *CellArea
618
619 cret := XGtkCellLayoutGetArea(x.GoPointer())
620
621 if cret == 0 {
622 return nil
623 }
624 gobject.IncreaseRef(cret)
625 cls = &CellArea{}
626 cls.Ptr = cret
627 return cls
628}
629
630// Returns the cell renderers which have been added to @cell_layout.
631func (x *CellView) GetCells() *glib.List {
632
633 cret := XGtkCellLayoutGetCells(x.GoPointer())
634 return cret
635}
636
637// Adds the @cell to the end of @cell_layout. If @expand is %FALSE, then the
638// @cell is allocated no more space than it needs. Any unused space is
639// divided evenly between cells for which @expand is %TRUE.
640//
641// Note that reusing the same cell renderer is not supported.
642func (x *CellView) PackEnd(CellVar *CellRenderer, ExpandVar bool) {
643
644 XGtkCellLayoutPackEnd(x.GoPointer(), CellVar.GoPointer(), ExpandVar)
645
646}
647
648// Packs the @cell into the beginning of @cell_layout. If @expand is %FALSE,
649// then the @cell is allocated no more space than it needs. Any unused space
650// is divided evenly between cells for which @expand is %TRUE.
651//
652// Note that reusing the same cell renderer is not supported.
653func (x *CellView) PackStart(CellVar *CellRenderer, ExpandVar bool) {
654
655 XGtkCellLayoutPackStart(x.GoPointer(), CellVar.GoPointer(), ExpandVar)
656
657}
658
659// Re-inserts @cell at @position.
660//
661// Note that @cell has already to be packed into @cell_layout
662// for this to function properly.
663func (x *CellView) Reorder(CellVar *CellRenderer, PositionVar int) {
664
665 XGtkCellLayoutReorder(x.GoPointer(), CellVar.GoPointer(), PositionVar)
666
667}
668
669// Sets the attributes in the parameter list as the attributes
670// of @cell_layout.
671//
672// See [method@Gtk.CellLayout.add_attribute] for more details.
673//
674// The attributes should be in attribute/column order, as in
675// gtk_cell_layout_add_attribute(). All existing attributes are
676// removed, and replaced with the new attributes.
677func (x *CellView) SetAttributes(CellVar *CellRenderer, varArgs ...interface{}) {
678
679 XGtkCellLayoutSetAttributes(x.GoPointer(), CellVar.GoPointer(), varArgs...)
680
681}
682
683// Sets the `GtkCellLayout`DataFunc to use for @cell_layout.
684//
685// This function is used instead of the standard attributes mapping
686// for setting the column value, and should set the value of @cell_layout’s
687// cell renderer(s) as appropriate.
688//
689// @func may be %NULL to remove a previously set function.
690func (x *CellView) SetCellDataFunc(CellVar *CellRenderer, FuncVar *CellLayoutDataFunc, FuncDataVar uintptr, DestroyVar *glib.DestroyNotify) {
691
692 XGtkCellLayoutSetCellDataFunc(x.GoPointer(), CellVar.GoPointer(), glib.NewCallbackNullable(FuncVar), FuncDataVar, glib.NewCallback(DestroyVar))
693
694}
695
696// Retrieves the orientation of the @orientable.
697func (x *CellView) GetOrientation() Orientation {
698
699 cret := XGtkOrientableGetOrientation(x.GoPointer())
700 return cret
701}
702
703// Sets the orientation of the @orientable.
704func (x *CellView) SetOrientation(OrientationVar Orientation) {
705
706 XGtkOrientableSetOrientation(x.GoPointer(), OrientationVar)
707
708}
709
710func init() {
711 core.SetPackageName("GTK", "gtk4")
712 core.SetSharedLibraries("GTK", []string{"libgtk-4.so.1"})
713 var libs []uintptr
714 for _, libPath := range core.GetPaths("GTK") {
715 lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL)
716 if err != nil {
717 panic(err)
718 }
719 libs = append(libs, lib)
720 }
721
722 core.PuregoSafeRegister(&xCellViewGLibType, libs, "gtk_cell_view_get_type")
723
724 core.PuregoSafeRegister(&xNewCellView, libs, "gtk_cell_view_new")
725 core.PuregoSafeRegister(&xNewCellViewWithContext, libs, "gtk_cell_view_new_with_context")
726 core.PuregoSafeRegister(&xNewCellViewWithMarkup, libs, "gtk_cell_view_new_with_markup")
727 core.PuregoSafeRegister(&xNewCellViewWithText, libs, "gtk_cell_view_new_with_text")
728 core.PuregoSafeRegister(&xNewCellViewWithTexture, libs, "gtk_cell_view_new_with_texture")
729
730 core.PuregoSafeRegister(&xCellViewGetDisplayedRow, libs, "gtk_cell_view_get_displayed_row")
731 core.PuregoSafeRegister(&xCellViewGetDrawSensitive, libs, "gtk_cell_view_get_draw_sensitive")
732 core.PuregoSafeRegister(&xCellViewGetFitModel, libs, "gtk_cell_view_get_fit_model")
733 core.PuregoSafeRegister(&xCellViewGetModel, libs, "gtk_cell_view_get_model")
734 core.PuregoSafeRegister(&xCellViewSetDisplayedRow, libs, "gtk_cell_view_set_displayed_row")
735 core.PuregoSafeRegister(&xCellViewSetDrawSensitive, libs, "gtk_cell_view_set_draw_sensitive")
736 core.PuregoSafeRegister(&xCellViewSetFitModel, libs, "gtk_cell_view_set_fit_model")
737 core.PuregoSafeRegister(&xCellViewSetModel, libs, "gtk_cell_view_set_model")
738
739}