gi-gio
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Objects.MenuAttributeIter

Description

MenuAttributeIter is an opaque structure type. You must access it using the functions below.

Since: 2.32

Synopsis

Exported types

newtype MenuAttributeIter Source #

Memory-managed wrapper type.

Instances

Instances details
Eq MenuAttributeIter Source # 
Instance details

Defined in GI.Gio.Objects.MenuAttributeIter

GObject MenuAttributeIter Source # 
Instance details

Defined in GI.Gio.Objects.MenuAttributeIter

ManagedPtrNewtype MenuAttributeIter Source # 
Instance details

Defined in GI.Gio.Objects.MenuAttributeIter

TypedObject MenuAttributeIter Source # 
Instance details

Defined in GI.Gio.Objects.MenuAttributeIter

Methods

glibType :: IO GType #

HasParentTypes MenuAttributeIter Source # 
Instance details

Defined in GI.Gio.Objects.MenuAttributeIter

HasAttributeList MenuAttributeIter Source # 
Instance details

Defined in GI.Gio.Objects.MenuAttributeIter

(info ~ ResolveMenuAttributeIterMethod t MenuAttributeIter, OverloadedMethod info MenuAttributeIter p, HasField t MenuAttributeIter p) => HasField (t :: Symbol) MenuAttributeIter (p :: Type) Source # 
Instance details

Defined in GI.Gio.Objects.MenuAttributeIter

(info ~ ResolveMenuAttributeIterMethod t MenuAttributeIter, OverloadedMethodInfo info MenuAttributeIter) => IsLabel t (MethodProxy info MenuAttributeIter) Source # 
Instance details

Defined in GI.Gio.Objects.MenuAttributeIter

(info ~ ResolveMenuAttributeIterMethod t MenuAttributeIter, OverloadedMethod info MenuAttributeIter p) => IsLabel t (MenuAttributeIter -> p) Source # 
Instance details

Defined in GI.Gio.Objects.MenuAttributeIter

IsGValue (Maybe MenuAttributeIter) Source #

Convert MenuAttributeIter to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Gio.Objects.MenuAttributeIter

type AttributeList MenuAttributeIter Source # 
Instance details

Defined in GI.Gio.Objects.MenuAttributeIter

type ParentTypes MenuAttributeIter Source # 
Instance details

Defined in GI.Gio.Objects.MenuAttributeIter

type SignalList MenuAttributeIter Source # 
Instance details

Defined in GI.Gio.Objects.MenuAttributeIter

class (GObject o, IsDescendantOf MenuAttributeIter o) => IsMenuAttributeIter o Source #

Type class for types which can be safely cast to MenuAttributeIter, for instance with toMenuAttributeIter.

Instances

Instances details
(GObject o, IsDescendantOf MenuAttributeIter o) => IsMenuAttributeIter o Source # 
Instance details

Defined in GI.Gio.Objects.MenuAttributeIter

toMenuAttributeIter :: (MonadIO m, IsMenuAttributeIter o) => o -> m MenuAttributeIter Source #

Cast to MenuAttributeIter, for types for which this is known to be safe. For general casts, use castTo.

Methods

type family ResolveMenuAttributeIterMethod (t :: Symbol) o where ... Source #

Equations

ResolveMenuAttributeIterMethod "bindProperty" o = ObjectBindPropertyMethodInfo 
ResolveMenuAttributeIterMethod "bindPropertyFull" o = ObjectBindPropertyFullMethodInfo 
ResolveMenuAttributeIterMethod "forceFloating" o = ObjectForceFloatingMethodInfo 
ResolveMenuAttributeIterMethod "freezeNotify" o = ObjectFreezeNotifyMethodInfo 
ResolveMenuAttributeIterMethod "getv" o = ObjectGetvMethodInfo 
ResolveMenuAttributeIterMethod "isFloating" o = ObjectIsFloatingMethodInfo 
ResolveMenuAttributeIterMethod "next" o = MenuAttributeIterNextMethodInfo 
ResolveMenuAttributeIterMethod "notify" o = ObjectNotifyMethodInfo 
ResolveMenuAttributeIterMethod "notifyByPspec" o = ObjectNotifyByPspecMethodInfo 
ResolveMenuAttributeIterMethod "ref" o = ObjectRefMethodInfo 
ResolveMenuAttributeIterMethod "refSink" o = ObjectRefSinkMethodInfo 
ResolveMenuAttributeIterMethod "runDispose" o = ObjectRunDisposeMethodInfo 
ResolveMenuAttributeIterMethod "stealData" o = ObjectStealDataMethodInfo 
ResolveMenuAttributeIterMethod "stealQdata" o = ObjectStealQdataMethodInfo 
ResolveMenuAttributeIterMethod "thawNotify" o = ObjectThawNotifyMethodInfo 
ResolveMenuAttributeIterMethod "unref" o = ObjectUnrefMethodInfo 
ResolveMenuAttributeIterMethod "watchClosure" o = ObjectWatchClosureMethodInfo 
ResolveMenuAttributeIterMethod "getData" o = ObjectGetDataMethodInfo 
ResolveMenuAttributeIterMethod "getName" o = MenuAttributeIterGetNameMethodInfo 
ResolveMenuAttributeIterMethod "getNext" o = MenuAttributeIterGetNextMethodInfo 
ResolveMenuAttributeIterMethod "getProperty" o = ObjectGetPropertyMethodInfo 
ResolveMenuAttributeIterMethod "getQdata" o = ObjectGetQdataMethodInfo 
ResolveMenuAttributeIterMethod "getValue" o = MenuAttributeIterGetValueMethodInfo 
ResolveMenuAttributeIterMethod "setData" o = ObjectSetDataMethodInfo 
ResolveMenuAttributeIterMethod "setDataFull" o = ObjectSetDataFullMethodInfo 
ResolveMenuAttributeIterMethod "setProperty" o = ObjectSetPropertyMethodInfo 
ResolveMenuAttributeIterMethod l o = MethodResolutionFailed l o :: Type 

getName

menuAttributeIterGetName Source #

Arguments

:: (HasCallStack, MonadIO m, IsMenuAttributeIter a) 
=> a

iter: a MenuAttributeIter

-> m Text

Returns: the name of the attribute

Gets the name of the attribute at the current iterator position, as a string.

The iterator is not advanced.

Since: 2.32

getNext

menuAttributeIterGetNext Source #

Arguments

:: (HasCallStack, MonadIO m, IsMenuAttributeIter a) 
=> a

iter: a MenuAttributeIter

-> m (Bool, Text, GVariant)

Returns: True on success, or False if there is no additional attribute

This function combines menuAttributeIterNext with menuAttributeIterGetName and menuAttributeIterGetValue.

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, menuAttributeIterGetName and menuAttributeIterGetValue 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 variantUnref when it is no longer in use.

Since: 2.32

getValue

menuAttributeIterGetValue Source #

Arguments

:: (HasCallStack, MonadIO m, IsMenuAttributeIter a) 
=> a

iter: a MenuAttributeIter

-> m GVariant

Returns: the value of the current attribute

Gets the value of the attribute at the current iterator position.

The iterator is not advanced.

Since: 2.32

next

menuAttributeIterNext Source #

Arguments

:: (HasCallStack, MonadIO m, IsMenuAttributeIter a) 
=> a

iter: a MenuAttributeIter

-> m Bool

Returns: True on success, or False when there are no more attributes

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).

Since: 2.32