Package: gtk

Function gtk:section-model-section

Lambda List

gtk:section-model-section (model pos)

Syntax

(gtk:section-model-section model pos) => start, end

Arguments

model -- a gtk:section-model object
pos -- an unsigned integer with the position of the item to query
start -- an unsigned integer with the position of the first item in the section
end -- an unsigned integer with the position of the first item not part of the section anymore

Details

Query the section that covers the given position. The number of items in the section can be computed by end - start.

If the position is larger than the number of items, a single range from n-items to G_MAXUINT will be returned.

Since 4.12
 

See also

2024-11-29