It derives from <GObject>.
<GMenuAttributeIter> is an opaque
structure type. You must access it using the functions below.
parent-instanceprivGets the name of the attribute at the current iterator position, as a string.
The iterator is not advanced.
Passed: a <GMenuAttributeIter>.
Returned: a string.
the name of the attribute
This function combines menu-attribute-iter:next? with menu-attribute-iter:get-name and
menu-attribute-iter:get-value.
First the iterator is advanced to the next (possibly first) attribute.
If that fails, then #f is returned and there are no other
effects.
If successful, name and value are set to the name and value
of the attribute that has just been advanced to. At this point,
menu-attribute-iter:get-name
and menu-attribute-iter:get-value will return the same values
again.
The value returned in name remains valid for as long as the
iterator remains at the current position. The value returned in
value must be unreffed using variant:unref when it is no longer in use.
Passed: a <GMenuAttributeIter>.
Returned: a boolean.
#t on success, or #f if there is no additional attribute
Returned: a string.
the type of the attribute
Returned: a <GVariant>.
the attribute value
Gets the value of the attribute at the current iterator position.
The iterator is not advanced.
Passed: a <GMenuAttributeIter>.
Returned: a <GVariant>.
the value of the current attribute
Attempts to advance the iterator to the next (possibly first) attribute.
#t is returned on success, or #f if there are no more
attributes.
You must call this function when you first acquire the iterator to advance it to the first attribute (and determine if the first attribute exists at all).
Passed: a <GMenuAttributeIter>.
Returned: a boolean.
#t on success, or #f when there are no more attributes
This function combines menu-attribute-iter:next? with menu-attribute-iter:get-name and
menu-attribute-iter:get-value.
First the iterator is advanced to the next (possibly first) attribute.
If that fails, then #f is returned and there are no other
effects.
If successful, name and value are set to the name and value
of the attribute that has just been advanced to. At this point,
menu-attribute-iter:get-name
and menu-attribute-iter:get-value will return the same values
again.
The value returned in name remains valid for as long as the
iterator remains at the current position. The value returned in
value must be unreffed using variant:unref when it is no longer in use.
To override it in a new class, give register-type #:vfuncs
`((get-next . ,procedure)). The procedure is called as
(procedure self) ⇒ %return out-name value.
Passed: the class whose implementation to call:
<GMenuAttributeIter>, or a class that
derives from it, or its GType number.
Passed: a <GMenuAttributeIter>.
Returned: a boolean.
#t on success, or #f if there is no additional attribute
Returned: a string.
the type of the attribute
Returned: a <GVariant>.
the attribute value