gi-gio-2.0.23: Gio bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Objects.SimplePermission

Contents

Description

SimplePermission 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 request or release will result in errors.

Synopsis

Exported types

newtype SimplePermission Source #

Memory-managed wrapper type.

Constructors

SimplePermission (ManagedPtr SimplePermission) 
Instances
GObject SimplePermission Source # 
Instance details

Defined in GI.Gio.Objects.SimplePermission

Methods

gobjectType :: IO GType

HasParentTypes SimplePermission Source # 
Instance details

Defined in GI.Gio.Objects.SimplePermission

type ParentTypes SimplePermission Source # 
Instance details

Defined in GI.Gio.Objects.SimplePermission

type ParentTypes SimplePermission = Permission ': (Object ': ([] :: [Type]))

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 # 
Instance details

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

new

simplePermissionNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Bool

allowed: True if the action is allowed

-> m SimplePermission

Returns: the SimplePermission, as a Permission

Creates a new Permission instance that represents an action that is either always or never allowed.

Since: 2.26