mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 14:20:21 +00:00
docs: Document GtkBitsetIter
This commit is contained in:
parent
5f33f4ae8e
commit
b9e8935037
@ -27,20 +27,19 @@
|
||||
* SECTION:gtkbitset
|
||||
* @title: GtkBitset
|
||||
* @short_description: Sets of integers
|
||||
* @see_also: GtkSelectionModel
|
||||
* @see_also: #GtkSelectionModel
|
||||
*
|
||||
* #GtkBitset is a data structure for representing a set of unsigned integers.
|
||||
* Another name for this data structure is "bitmap".
|
||||
*
|
||||
* This version is based on [roaring bitmaps](https://roaringbitmap.org/).
|
||||
* The current implemenation is based on [roaring bitmaps](https://roaringbitmap.org/).
|
||||
*
|
||||
* A bitset allows adding a set of integers and provides support for set operations
|
||||
* like unions, intersections and checks for equality or if a value is contained
|
||||
* in the set. #GtkBitset also contains various functions to query metadata about
|
||||
* the bitset, such as the minimum or maximum values or its size.
|
||||
*
|
||||
* The fastest way to iterate values in a bitset is #GtkBitsetIter which allows
|
||||
* quick iteration of all the values in a bitset.
|
||||
* The fastest way to iterate values in a bitset is #GtkBitsetIter.
|
||||
*
|
||||
* The main use case for #GtkBitset is implementing complex selections for
|
||||
* #GtkSelectionModel.
|
||||
|
@ -130,6 +130,15 @@ void gtk_bitset_splice (GtkBitset
|
||||
guint removed,
|
||||
guint added);
|
||||
|
||||
/**
|
||||
* GtkBitsetIter:
|
||||
*
|
||||
* An opaque, stack-allocated struct for iterating
|
||||
* over the elements of a #GtkBitset. Before a GtkBitsetIter
|
||||
* can be used, it needs to be initialized with
|
||||
* gtk_bitset_iter_init_first(), gtk_bitset_iter_init_last()
|
||||
* or gtk_bitset_iter_init_at().
|
||||
*/
|
||||
typedef struct {gpointer private_data[10]; } GtkBitsetIter;
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
|
Loading…
Reference in New Issue
Block a user