| Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.GLib.Structs.OptionEntry
Description
A GOptionEntry struct defines a single option. To have an effect, they must be added to a #GOptionGroup with g_option_context_add_main_entries() or g_option_group_add_entries().
- newtype OptionEntry = OptionEntry (ForeignPtr OptionEntry)
- newZeroOptionEntry :: MonadIO m => m OptionEntry
- noOptionEntry :: Maybe OptionEntry
- optionEntryArg :: AttrLabelProxy "arg"
- optionEntryReadArg :: MonadIO m => OptionEntry -> m OptionArg
- optionEntryWriteArg :: MonadIO m => OptionEntry -> OptionArg -> m ()
- optionEntryArgData :: AttrLabelProxy "argData"
- optionEntryClearArgData :: MonadIO m => OptionEntry -> m ()
- optionEntryReadArgData :: MonadIO m => OptionEntry -> m (Ptr ())
- optionEntryWriteArgData :: MonadIO m => OptionEntry -> Ptr () -> m ()
- optionEntryArgDescription :: AttrLabelProxy "argDescription"
- optionEntryClearArgDescription :: MonadIO m => OptionEntry -> m ()
- optionEntryReadArgDescription :: MonadIO m => OptionEntry -> m (Maybe Text)
- optionEntryWriteArgDescription :: MonadIO m => OptionEntry -> CString -> m ()
- optionEntryClearDescription :: MonadIO m => OptionEntry -> m ()
- optionEntryDescription :: AttrLabelProxy "description"
- optionEntryReadDescription :: MonadIO m => OptionEntry -> m (Maybe Text)
- optionEntryWriteDescription :: MonadIO m => OptionEntry -> CString -> m ()
- optionEntryFlags :: AttrLabelProxy "flags"
- optionEntryReadFlags :: MonadIO m => OptionEntry -> m Int32
- optionEntryWriteFlags :: MonadIO m => OptionEntry -> Int32 -> m ()
- optionEntryClearLongName :: MonadIO m => OptionEntry -> m ()
- optionEntryLongName :: AttrLabelProxy "longName"
- optionEntryReadLongName :: MonadIO m => OptionEntry -> m (Maybe Text)
- optionEntryWriteLongName :: MonadIO m => OptionEntry -> CString -> m ()
- optionEntryReadShortName :: MonadIO m => OptionEntry -> m Int8
- optionEntryShortName :: AttrLabelProxy "shortName"
- optionEntryWriteShortName :: MonadIO m => OptionEntry -> Int8 -> m ()
Exported types
newtype OptionEntry Source #
Constructors
| OptionEntry (ForeignPtr OptionEntry) |
Instances
| WrappedPtr OptionEntry Source # | |
| (~) AttrOpTag tag AttrSet => Constructible OptionEntry tag Source # | |
| ((~) * info (ResolveOptionEntryMethod t OptionEntry), MethodInfo * info OptionEntry p) => IsLabel t (OptionEntry -> p) Source # | |
| ((~) * info (ResolveOptionEntryMethod t OptionEntry), MethodInfo * info OptionEntry p) => IsLabelProxy t (OptionEntry -> p) Source # | |
| type AttributeList OptionEntry Source # | |
newZeroOptionEntry :: MonadIO m => m OptionEntry Source #
Construct a OptionEntry struct initialized to zero.
noOptionEntry :: Maybe OptionEntry Source #
Properties
Arg
optionEntryArg :: AttrLabelProxy "arg" Source #
optionEntryReadArg :: MonadIO m => OptionEntry -> m OptionArg Source #
optionEntryWriteArg :: MonadIO m => OptionEntry -> OptionArg -> m () Source #
ArgData
optionEntryArgData :: AttrLabelProxy "argData" Source #
optionEntryClearArgData :: MonadIO m => OptionEntry -> m () Source #
optionEntryReadArgData :: MonadIO m => OptionEntry -> m (Ptr ()) Source #
optionEntryWriteArgData :: MonadIO m => OptionEntry -> Ptr () -> m () Source #
ArgDescription
optionEntryArgDescription :: AttrLabelProxy "argDescription" Source #
optionEntryClearArgDescription :: MonadIO m => OptionEntry -> m () Source #
optionEntryReadArgDescription :: MonadIO m => OptionEntry -> m (Maybe Text) Source #
optionEntryWriteArgDescription :: MonadIO m => OptionEntry -> CString -> m () Source #
Description
optionEntryClearDescription :: MonadIO m => OptionEntry -> m () Source #
optionEntryDescription :: AttrLabelProxy "description" Source #
optionEntryReadDescription :: MonadIO m => OptionEntry -> m (Maybe Text) Source #
optionEntryWriteDescription :: MonadIO m => OptionEntry -> CString -> m () Source #
Flags
optionEntryFlags :: AttrLabelProxy "flags" Source #
optionEntryReadFlags :: MonadIO m => OptionEntry -> m Int32 Source #
optionEntryWriteFlags :: MonadIO m => OptionEntry -> Int32 -> m () Source #
LongName
optionEntryClearLongName :: MonadIO m => OptionEntry -> m () Source #
optionEntryLongName :: AttrLabelProxy "longName" Source #
optionEntryReadLongName :: MonadIO m => OptionEntry -> m (Maybe Text) Source #
optionEntryWriteLongName :: MonadIO m => OptionEntry -> CString -> m () Source #
ShortName
optionEntryReadShortName :: MonadIO m => OptionEntry -> m Int8 Source #
optionEntryShortName :: AttrLabelProxy "shortName" Source #
optionEntryWriteShortName :: MonadIO m => OptionEntry -> Int8 -> m () Source #