1.32 <GtkColumnViewCell>

Class: <GtkColumnViewCell>

It derives from <GtkListItem>.

Represents items in a cell in <GtkColumnView>.

The <GtkColumnViewCell>s are managed by the <GtkColumnView> widget (with its factory) and cannot be created by applications, but they need to be populated by application code. This is done by calling column-view-cell:set-child.

<GtkColumnViewCell>s exist in 2 stages:

  1. The unbound stage where the listitem is not currently connected to an item in the list. In that case, the column-view-cell:item property is set to #f.
  1. The bound stage where the listitem references an item from the list. The column-view-cell:item property is not #f.

Properties

Property: column-view-cell:child self

Widget used for display.

Its value is a <GtkWidget>, or #f.

Set it with (set! (column-view-cell:child self) value).

Property: column-view-cell:focusable self

If the item can be focused with the keyboard.

Its value is a boolean.

Set it with (set! (column-view-cell:focusable self) value).

Property: column-view-cell:item self

Displayed item.

Its value is a <GObject>, or #f.

It is read only.

Property: column-view-cell:position self

Position of the item.

Its value is an unsigned 32-bit integer.

It is read only.

Property: column-view-cell:selected self

If the item is currently selected.

Its value is a boolean.

It is read only.

Procedures

Method: column-view-cell:get-child self ⇒ %return
Method: get-child self ⇒ %return

Gets the child previously set via column-view-cell:set-child or #f if none was set.

self

Passed: a <GtkColumnViewCell>.

a <GtkColumnViewCell>

%return

Returned: a <GtkWidget>, or #f.

The child

Method: column-view-cell:get-focusable? self ⇒ %return
Method: get-focusable? self ⇒ %return

Checks if a list item has been set to be focusable via column-view-cell:set-focusable.

self

Passed: a <GtkColumnViewCell>.

a <GtkColumnViewCell>

%return

Returned: a boolean.

#t if the item is focusable

Method: column-view-cell:get-item self ⇒ %return
Method: get-item self ⇒ %return

Gets the model item that associated with self.

If self is unbound, this function returns #f.

self

Passed: a <GtkColumnViewCell>.

a <GtkColumnViewCell>

%return

Returned: a <GObject>, or #f.

The item displayed

Method: column-view-cell:get-position self ⇒ %return
Method: get-position self ⇒ %return

Gets the position in the model that self currently displays.

If self is unbound, GTK_INVALID_LIST_POSITION is returned.

self

Passed: a <GtkColumnViewCell>.

a <GtkColumnViewCell>

%return

Returned: an unsigned 32-bit integer.

The position of this item

Method: column-view-cell:get-selected? self ⇒ %return
Method: get-selected? self ⇒ %return

Checks if the item is displayed as selected.

The selected state is maintained by the list widget and its model and cannot be set otherwise.

self

Passed: a <GtkColumnViewCell>.

a <GtkColumnViewCell>

%return

Returned: a boolean.

#t if the item is selected.

Method: column-view-cell:set-child self [child]
Method: set-child self [child]

Sets the child to be used for this listitem.

This function is typically called by applications when setting up a listitem so that the widget can be reused when binding it multiple times.

self

Passed: a <GtkColumnViewCell>.

a <GtkColumnViewCell>

child

Passed, or left out: a <GtkWidget>, or #f.

The list item’s child or #f to unset

Method: column-view-cell:set-focusable self focusable
Method: set-focusable self focusable

Sets self to be focusable.

If an item is focusable, it can be focused using the keyboard. This works similar to widget:set-focusable.

Note that if items are not focusable, the keyboard cannot be used to activate them and selecting only works if one of the listitem’s children is focusable.

By default, list items are focusable.

self

Passed: a <GtkColumnViewCell>.

a <GtkColumnViewCell>

focusable

Passed: a boolean.

if the item should be focusable