Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GSimplePermission
is a trivial implementation of Permission
that represents a permission that is either always or never allowed. The
value is given at construction and doesn’t change.
Calling permissionAcquire
or permissionRelease
on a GSimplePermission
will result in errors.
Synopsis
- newtype SimplePermission = SimplePermission (ManagedPtr SimplePermission)
- class (GObject o, IsDescendantOf SimplePermission o) => IsSimplePermission o
- toSimplePermission :: (MonadIO m, IsSimplePermission o) => o -> m SimplePermission
- simplePermissionNew :: (HasCallStack, MonadIO m) => Bool -> m SimplePermission
Exported types
newtype SimplePermission Source #
Memory-managed wrapper type.
Instances
Eq SimplePermission Source # | |
Defined in GI.Gio.Objects.SimplePermission (==) :: SimplePermission -> SimplePermission -> Bool # (/=) :: SimplePermission -> SimplePermission -> Bool # | |
GObject SimplePermission Source # | |
Defined in GI.Gio.Objects.SimplePermission | |
ManagedPtrNewtype SimplePermission Source # | |
Defined in GI.Gio.Objects.SimplePermission | |
TypedObject SimplePermission Source # | |
Defined in GI.Gio.Objects.SimplePermission | |
HasParentTypes SimplePermission Source # | |
Defined in GI.Gio.Objects.SimplePermission | |
IsGValue (Maybe SimplePermission) Source # | Convert |
Defined in GI.Gio.Objects.SimplePermission gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe SimplePermission -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe SimplePermission) # | |
type ParentTypes SimplePermission Source # | |
Defined in GI.Gio.Objects.SimplePermission |
class (GObject o, IsDescendantOf SimplePermission o) => IsSimplePermission o Source #
Type class for types which can be safely cast to SimplePermission
, for instance with toSimplePermission
.
Instances
(GObject o, IsDescendantOf SimplePermission o) => IsSimplePermission o Source # | |
Defined in GI.Gio.Objects.SimplePermission |
toSimplePermission :: (MonadIO m, IsSimplePermission o) => o -> m SimplePermission Source #
Cast to SimplePermission
, 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
acquire, acquireAsync, acquireFinish, bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, implUpdate, isFloating, notify, notifyByPspec, ref, refSink, release, releaseAsync, releaseFinish, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getAllowed, getCanAcquire, getCanRelease, getData, getProperty, getQdata.
Setters
new
:: (HasCallStack, MonadIO m) | |
=> Bool |
|
-> m SimplePermission | Returns: the |
Creates a new Permission
instance that represents an action that is
either always or never allowed.
Since: 2.26