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.Gtk.Structs.RcProperty
Contents
Description
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)
- setRcPropertyOrigin :: MonadIO m => RcProperty -> CString -> m ()
- getRcPropertyPropertyName :: MonadIO m => RcProperty -> m Word32
- setRcPropertyPropertyName :: MonadIO m => RcProperty -> Word32 -> m ()
- getRcPropertyTypeName :: MonadIO m => RcProperty -> m Word32
- setRcPropertyTypeName :: MonadIO m => RcProperty -> Word32 -> m ()
- getRcPropertyValue :: MonadIO m => RcProperty -> m GValue
Exported types
newtype RcProperty Source #
Constructors
RcProperty (ManagedPtr RcProperty) |
Instances
WrappedPtr RcProperty Source # | |
(~) AttrOpTag tag AttrSet => Constructible RcProperty tag Source # | |
newZeroRcProperty :: MonadIO m => m RcProperty Source #
Construct a RcProperty
struct initialized to zero.
Methods
parseBorder
rcPropertyParseBorder Source #
Arguments
:: (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
Arguments
:: (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
Arguments
:: (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
Arguments
:: (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 #
Arguments
:: (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 #
setRcPropertyOrigin :: MonadIO m => RcProperty -> CString -> m () Source #
propertyName
getRcPropertyPropertyName :: MonadIO m => RcProperty -> m Word32 Source #
setRcPropertyPropertyName :: MonadIO m => RcProperty -> Word32 -> m () Source #
typeName
getRcPropertyTypeName :: MonadIO m => RcProperty -> m Word32 Source #
setRcPropertyTypeName :: MonadIO m => RcProperty -> Word32 -> m () Source #
value
getRcPropertyValue :: MonadIO m => RcProperty -> m GValue Source #