[−][src]Trait gio::MenuLinkIterExt
Required methods
fn get_name(&self) -> Option<GString>
Gets the name of the link at the current iterator position.
The iterator is not advanced.
Returns
the type of the link
fn get_next(&self) -> Option<(GString, MenuModel)>
This function combines MenuLinkIterExt::next
with
MenuLinkIterExt::get_name
and MenuLinkIterExt::get_value
.
First the iterator is advanced to the next (possibly first) link.
If that fails, then false
is returned and there are no other effects.
If successful, out_link
and value
are set to the name and MenuModel
of the link that has just been advanced to. At this point,
MenuLinkIterExt::get_name
and MenuLinkIterExt::get_value
will return the
same values again.
The value returned in out_link
remains valid for as long as the iterator
remains at the current position. The value returned in value
must
be unreffed using gobject::ObjectExt::unref
when it is no longer in use.
out_link
the name of the link
value
the linked MenuModel
Returns
true
on success, or false
if there is no additional link
fn get_value(&self) -> Option<MenuModel>
Gets the linked MenuModel
at the current iterator position.
The iterator is not advanced.
Returns
the MenuModel
that is linked to
fn next(&self) -> bool
Attempts to advance the iterator to the next (possibly first) link.
true
is returned on success, or false
if there are no more links.
You must call this function when you first acquire the iterator to advance it to the first link (and determine if the first link exists at all).
Returns
true
on success, or false
when there are no more links