gi-gio-2.0.25: Gio bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Objects.SimplePermission

Contents

Description

tSimplePermission is a trivial implementation of tPermission 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
Eq SimplePermission Source # 
Instance details

Defined in GI.Gio.Objects.SimplePermission

GObject SimplePermission Source # 
Instance details

Defined in GI.Gio.Objects.SimplePermission

Methods

gobjectType :: IO GType

IsGValue SimplePermission Source #

Convert SimplePermission to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Gio.Objects.SimplePermission

Methods

toGValue :: SimplePermission -> IO GValue

fromGValue :: GValue -> IO SimplePermission

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.

noSimplePermission :: Maybe SimplePermission Source #

A convenience alias for Nothing :: Maybe SimplePermission.

Methods

Overloaded methods

new

simplePermissionNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Bool

allowed: True if the action is allowed

-> m SimplePermission

Returns: the tSimplePermission, as a tPermission

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

Since: 2.26