Basics
Guides
API Reference
Basics
Guides
API Reference
[13:7] extends: object
#GMenuAttributeIter is an opaque structure type. You must access it using the functions below.
GMenuAttributeIter (Handle = null)
Creates a new
MenuAttributeIterby wrapping a native handle or another wrapper.
Handle is the native handle or another wrapper whose handle to adopt.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asObject ()
Wraps this handle as
GObject.
A GObject object.get_name ()
Gets the name of the attribute at the current iterator position, as a string. The iterator is not advanced.
the name of the attribute.get_next ()
This function combines g_menu_attribute_iter_next() with g_menu_attribute_iter_get_name() and g_menu_attribute_iter_get_value(). First the iterator is advanced to the next (possibly first) attribute. If that fails, then %FALSE 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, g_menu_attribute_iter_get_name() and g_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 g_variant_unref() when it is no longer in use.
out_name is the type of the attribute.value is the attribute value.%TRUE on success, or %FALSE if there is no additional attribute.get_value ()
Gets the value of the attribute at the current iterator position. The iterator is not advanced.
the value of the current attribute.next ()
Attempts to advance the iterator to the next (possibly first) attribute. %TRUE is returned on success, or %FALSE 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).
%TRUE on success, or %FALSE when there are no more attributes.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.