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 |
Deprecated
- newtype RcProperty = RcProperty (ManagedPtr RcProperty)
- newZeroRcProperty :: MonadIO m => m RcProperty
- noRcProperty :: Maybe RcProperty
- rcPropertyParseBorder :: (HasCallStack, MonadIO m) => GParamSpec -> String -> GValue -> m Bool
- rcPropertyParseColor :: (HasCallStack, MonadIO m) => GParamSpec -> String -> GValue -> m Bool
- rcPropertyParseEnum :: (HasCallStack, MonadIO m) => GParamSpec -> String -> GValue -> m Bool
- rcPropertyParseFlags :: (HasCallStack, MonadIO m) => GParamSpec -> String -> GValue -> m Bool
- rcPropertyParseRequisition :: (HasCallStack, MonadIO m) => GParamSpec -> String -> GValue -> m Bool
- clearRcPropertyOrigin :: MonadIO m => RcProperty -> m ()
- getRcPropertyOrigin :: MonadIO m => RcProperty -> m (Maybe Text)
- rcProperty_origin :: AttrLabelProxy "origin"
- setRcPropertyOrigin :: MonadIO m => RcProperty -> CString -> m ()
- getRcPropertyPropertyName :: MonadIO m => RcProperty -> m Word32
- rcProperty_propertyName :: AttrLabelProxy "propertyName"
- setRcPropertyPropertyName :: MonadIO m => RcProperty -> Word32 -> m ()
- getRcPropertyTypeName :: MonadIO m => RcProperty -> m Word32
- rcProperty_typeName :: AttrLabelProxy "typeName"
- setRcPropertyTypeName :: MonadIO m => RcProperty -> Word32 -> m ()
- getRcPropertyValue :: MonadIO m => RcProperty -> m GValue
- rcProperty_value :: AttrLabelProxy "value"
Exported types
newtype RcProperty Source #
WrappedPtr RcProperty Source # | |
(~) AttrOpTag tag AttrSet => Constructible RcProperty tag Source # | |
((~) * info (ResolveRcPropertyMethod t RcProperty), MethodInfo * info RcProperty p) => IsLabel t (RcProperty -> p) Source # | |
((~) * info (ResolveRcPropertyMethod t RcProperty), MethodInfo * info RcProperty p) => IsLabelProxy t (RcProperty -> p) Source # | |
HasAttributeList * RcProperty Source # | |
type AttributeList RcProperty Source # | |
newZeroRcProperty :: MonadIO m => m RcProperty Source #
Construct a RcProperty
struct initialized to zero.
Methods
parseBorder
rcPropertyParseBorder Source #
:: (HasCallStack, MonadIO m) | |
=> GParamSpec |
|
-> String |
|
-> GValue |
|
-> m Bool | Returns: |
A RcPropertyParser
for use with settingsInstallPropertyParser
or gtk_widget_class_install_style_property_parser()
which parses
borders in the form
"{ left, right, top, bottom }"
for integers
left, right, top and bottom.
parseColor
:: (HasCallStack, MonadIO m) | |
=> GParamSpec |
|
-> String |
|
-> GValue | |
-> m Bool | Returns: |
A RcPropertyParser
for use with settingsInstallPropertyParser
or gtk_widget_class_install_style_property_parser()
which parses a
color given either by its name or in the form
{ red, green, blue }
where red, green and
blue are integers between 0 and 65535 or floating-point numbers
between 0 and 1.
parseEnum
:: (HasCallStack, MonadIO m) | |
=> GParamSpec |
|
-> String |
|
-> GValue |
|
-> m Bool | Returns: |
A RcPropertyParser
for use with settingsInstallPropertyParser
or gtk_widget_class_install_style_property_parser()
which parses a single
enumeration value.
The enumeration value can be specified by its name, its nickname or its numeric value. For consistency with flags parsing, the value may be surrounded by parentheses.
parseFlags
:: (HasCallStack, MonadIO m) | |
=> GParamSpec |
|
-> String |
|
-> GValue |
|
-> m Bool | Returns: |
A RcPropertyParser
for use with settingsInstallPropertyParser
or gtk_widget_class_install_style_property_parser()
which parses flags.
Flags can be specified by their name, their nickname or
numerically. Multiple flags can be specified in the form
"( flag1 | flag2 | ... )"
.
parseRequisition
rcPropertyParseRequisition Source #
:: (HasCallStack, MonadIO m) | |
=> GParamSpec |
|
-> String |
|
-> GValue |
|
-> m Bool | Returns: |
A RcPropertyParser
for use with settingsInstallPropertyParser
or gtk_widget_class_install_style_property_parser()
which parses a
requisition in the form
"{ width, height }"
for integers width
and height
.
Properties
origin
clearRcPropertyOrigin :: MonadIO m => RcProperty -> m () Source #
getRcPropertyOrigin :: MonadIO m => RcProperty -> m (Maybe Text) Source #
rcProperty_origin :: AttrLabelProxy "origin" Source #
setRcPropertyOrigin :: MonadIO m => RcProperty -> CString -> m () Source #
propertyName
getRcPropertyPropertyName :: MonadIO m => RcProperty -> m Word32 Source #
rcProperty_propertyName :: AttrLabelProxy "propertyName" Source #
setRcPropertyPropertyName :: MonadIO m => RcProperty -> Word32 -> m () Source #
typeName
getRcPropertyTypeName :: MonadIO m => RcProperty -> m Word32 Source #
rcProperty_typeName :: AttrLabelProxy "typeName" Source #
setRcPropertyTypeName :: MonadIO m => RcProperty -> Word32 -> m () Source #
value
getRcPropertyValue :: MonadIO m => RcProperty -> m GValue Source #
rcProperty_value :: AttrLabelProxy "value" Source #