| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
GI.Dazzle.Objects.PropertiesGroup
Description
No description available in the introspection data.
Synopsis
- newtype PropertiesGroup = PropertiesGroup (ManagedPtr PropertiesGroup)
- class (GObject o, IsDescendantOf PropertiesGroup o) => IsPropertiesGroup o
- toPropertiesGroup :: (MonadIO m, IsPropertiesGroup o) => o -> m PropertiesGroup
- propertiesGroupAddAllProperties :: (HasCallStack, MonadIO m, IsPropertiesGroup a) => a -> m ()
- propertiesGroupAddProperty :: (HasCallStack, MonadIO m, IsPropertiesGroup a) => a -> Text -> Text -> m ()
- propertiesGroupAddPropertyFull :: (HasCallStack, MonadIO m, IsPropertiesGroup a) => a -> Text -> Text -> [PropertiesFlags] -> m ()
- propertiesGroupNew :: (HasCallStack, MonadIO m, IsObject a) => a -> m PropertiesGroup
- propertiesGroupNewForType :: (HasCallStack, MonadIO m) => GType -> m PropertiesGroup
- propertiesGroupRemove :: (HasCallStack, MonadIO m, IsPropertiesGroup a) => a -> Text -> m ()
- clearPropertiesGroupObject :: (MonadIO m, IsPropertiesGroup o) => o -> m ()
- constructPropertiesGroupObject :: (IsPropertiesGroup o, MonadIO m, IsObject a) => a -> m (GValueConstruct o)
- getPropertiesGroupObject :: (MonadIO m, IsPropertiesGroup o) => o -> m (Maybe Object)
- setPropertiesGroupObject :: (MonadIO m, IsPropertiesGroup o, IsObject a) => o -> a -> m ()
- constructPropertiesGroupObjectType :: (IsPropertiesGroup o, MonadIO m) => GType -> m (GValueConstruct o)
- getPropertiesGroupObjectType :: (MonadIO m, IsPropertiesGroup o) => o -> m GType
Exported types
newtype PropertiesGroup Source #
Memory-managed wrapper type.
Constructors
| PropertiesGroup (ManagedPtr PropertiesGroup) |
Instances
class (GObject o, IsDescendantOf PropertiesGroup o) => IsPropertiesGroup o Source #
Type class for types which can be safely cast to PropertiesGroup, for instance with toPropertiesGroup.
Instances
| (GObject o, IsDescendantOf PropertiesGroup o) => IsPropertiesGroup o Source # | |
Defined in GI.Dazzle.Objects.PropertiesGroup | |
toPropertiesGroup :: (MonadIO m, IsPropertiesGroup o) => o -> m PropertiesGroup Source #
Cast to PropertiesGroup, for types for which this is known to be safe. For general casts, use castTo.
Methods
Click to display all available methods, including inherited ones
Methods
actionAdded, actionEnabledChanged, actionRemoved, actionStateChanged, activateAction, addAllProperties, addProperty, addPropertyFull, bindProperty, bindPropertyFull, changeActionState, forceFloating, freezeNotify, getv, hasAction, isFloating, listActions, notify, notifyByPspec, queryAction, ref, refSink, remove, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getActionEnabled, getActionParameterType, getActionState, getActionStateHint, getActionStateType, getData, getProperty, getQdata.
Setters
addAllProperties
propertiesGroupAddAllProperties Source #
Arguments
| :: (HasCallStack, MonadIO m, IsPropertiesGroup a) | |
| => a |
|
| -> m () |
This function will try to add all properties found on the target
instance to the group. Only properties that are supported by the
PropertiesGroup will be added.
The action name of all added properties will be identical to their property name.
Since: 3.26
addProperty
propertiesGroupAddProperty Source #
Arguments
| :: (HasCallStack, MonadIO m, IsPropertiesGroup a) | |
| => a |
|
| -> Text |
|
| -> Text |
|
| -> m () |
Adds a new stateful action named name which maps to the underlying
property propertyName of PropertiesGroup:object.
Since: 3.26
addPropertyFull
propertiesGroupAddPropertyFull Source #
Arguments
| :: (HasCallStack, MonadIO m, IsPropertiesGroup a) | |
| => a |
|
| -> Text |
|
| -> Text |
|
| -> [PropertiesFlags] |
|
| -> m () |
Adds a new stateful action named name which maps to the underlying
property propertyName of PropertiesGroup:object.
Seting flags allows you to tweak some settings about the action.
Since: 3.26
new
Arguments
| :: (HasCallStack, MonadIO m, IsObject a) | |
| => a |
|
| -> m PropertiesGroup | Returns: A |
This creates a new PropertiesGroup to create stateful actions
around properties in object.
Call propertiesGroupAddProperty to add a property to
action name mapping for this group. Until you've called this,
no actions are mapped.
Note that PropertiesGroup only holds a weak reference to
object and therefore you must keep object alive elsewhere.
Since: 3.26
newForType
propertiesGroupNewForType Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => GType |
|
| -> m PropertiesGroup | Returns: A |
This creates a new PropertiesGroup for which the initial object is
Nothing.
Set objectType to a type of a class which is a Object-based type.
remove
propertiesGroupRemove Source #
Arguments
| :: (HasCallStack, MonadIO m, IsPropertiesGroup a) | |
| => a |
|
| -> Text |
|
| -> m () |
Removes an action from self that was previously added with
propertiesGroupAddProperty. name should match the
name parameter to that function.
Since: 3.26
Properties
object
No description available in the introspection data.
clearPropertiesGroupObject :: (MonadIO m, IsPropertiesGroup o) => o -> m () Source #
Set the value of the “object” property to Nothing.
When overloading is enabled, this is equivalent to
clear #object
constructPropertiesGroupObject :: (IsPropertiesGroup o, MonadIO m, IsObject a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “object” property. This is rarely needed directly, but it is used by new.
getPropertiesGroupObject :: (MonadIO m, IsPropertiesGroup o) => o -> m (Maybe Object) Source #
Get the value of the “object” property.
When overloading is enabled, this is equivalent to
get propertiesGroup #object
setPropertiesGroupObject :: (MonadIO m, IsPropertiesGroup o, IsObject a) => o -> a -> m () Source #
Set the value of the “object” property.
When overloading is enabled, this is equivalent to
setpropertiesGroup [ #object:=value ]
objectType
No description available in the introspection data.
constructPropertiesGroupObjectType :: (IsPropertiesGroup o, MonadIO m) => GType -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “object-type” property. This is rarely needed directly, but it is used by new.
getPropertiesGroupObjectType :: (MonadIO m, IsPropertiesGroup o) => o -> m GType Source #
Get the value of the “object-type” property.
When overloading is enabled, this is equivalent to
get propertiesGroup #objectType