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.ShortcutTheme
Contents
- Exported types
- Methods
- addContext
- addCssResource
- findContextByName
- findDefaultContext
- getChordForAction
- getChordForCommand
- getName
- getParent
- getParentName
- getSubtitle
- getTitle
- loadFromData
- loadFromFile
- loadFromPath
- new
- removeCssResource
- saveToFile
- saveToPath
- saveToStream
- setAccelForAction
- setAccelForCommand
- setChordForAction
- setChordForCommand
- setParentName
- Properties
Description
No description available in the introspection data.
Synopsis
- newtype ShortcutTheme = ShortcutTheme (ManagedPtr ShortcutTheme)
- class (GObject o, IsDescendantOf ShortcutTheme o) => IsShortcutTheme o
- toShortcutTheme :: (MonadIO m, IsShortcutTheme o) => o -> m ShortcutTheme
- shortcutThemeAddContext :: (HasCallStack, MonadIO m, IsShortcutTheme a, IsShortcutContext b) => a -> b -> m ()
- shortcutThemeAddCssResource :: (HasCallStack, MonadIO m, IsShortcutTheme a) => a -> Text -> m ()
- shortcutThemeFindContextByName :: (HasCallStack, MonadIO m, IsShortcutTheme a) => a -> Text -> m ShortcutContext
- shortcutThemeFindDefaultContext :: (HasCallStack, MonadIO m, IsShortcutTheme a, IsWidget b) => a -> b -> m (Maybe ShortcutContext)
- shortcutThemeGetChordForAction :: (HasCallStack, MonadIO m, IsShortcutTheme a) => a -> Text -> m ShortcutChord
- shortcutThemeGetChordForCommand :: (HasCallStack, MonadIO m, IsShortcutTheme a) => a -> Text -> m ShortcutChord
- shortcutThemeGetName :: (HasCallStack, MonadIO m, IsShortcutTheme a) => a -> m Text
- shortcutThemeGetParent :: (HasCallStack, MonadIO m, IsShortcutTheme a) => a -> m (Maybe ShortcutTheme)
- shortcutThemeGetParentName :: (HasCallStack, MonadIO m, IsShortcutTheme a) => a -> m (Maybe Text)
- shortcutThemeGetSubtitle :: (HasCallStack, MonadIO m, IsShortcutTheme a) => a -> m Text
- shortcutThemeGetTitle :: (HasCallStack, MonadIO m, IsShortcutTheme a) => a -> m Text
- shortcutThemeLoadFromData :: (HasCallStack, MonadIO m, IsShortcutTheme a) => a -> Text -> Int64 -> m ()
- shortcutThemeLoadFromFile :: (HasCallStack, MonadIO m, IsShortcutTheme a, IsFile b, IsCancellable c) => a -> b -> Maybe c -> m ()
- shortcutThemeLoadFromPath :: (HasCallStack, MonadIO m, IsShortcutTheme a, IsCancellable b) => a -> Text -> Maybe b -> m ()
- shortcutThemeNew :: (HasCallStack, MonadIO m) => Text -> m ShortcutTheme
- shortcutThemeRemoveCssResource :: (HasCallStack, MonadIO m, IsShortcutTheme a) => a -> Text -> m ()
- shortcutThemeSaveToFile :: (HasCallStack, MonadIO m, IsShortcutTheme a, IsFile b, IsCancellable c) => a -> b -> Maybe c -> m ()
- shortcutThemeSaveToPath :: (HasCallStack, MonadIO m, IsShortcutTheme a, IsCancellable b) => a -> Text -> Maybe b -> m ()
- shortcutThemeSaveToStream :: (HasCallStack, MonadIO m, IsShortcutTheme a, IsOutputStream b, IsCancellable c) => a -> b -> Maybe c -> m ()
- shortcutThemeSetAccelForAction :: (HasCallStack, MonadIO m, IsShortcutTheme a) => a -> Text -> Text -> [ShortcutPhase] -> m ()
- shortcutThemeSetAccelForCommand :: (HasCallStack, MonadIO m, IsShortcutTheme a) => a -> Maybe Text -> Maybe Text -> [ShortcutPhase] -> m ()
- shortcutThemeSetChordForAction :: (HasCallStack, MonadIO m, IsShortcutTheme a) => a -> Text -> ShortcutChord -> [ShortcutPhase] -> m ()
- shortcutThemeSetChordForCommand :: (HasCallStack, MonadIO m, IsShortcutTheme a) => a -> Maybe Text -> Maybe ShortcutChord -> [ShortcutPhase] -> m ()
- shortcutThemeSetParentName :: (HasCallStack, MonadIO m, IsShortcutTheme a) => a -> Text -> m ()
- constructShortcutThemeName :: (IsShortcutTheme o, MonadIO m) => Text -> m (GValueConstruct o)
- getShortcutThemeName :: (MonadIO m, IsShortcutTheme o) => o -> m Text
- constructShortcutThemeParentName :: (IsShortcutTheme o, MonadIO m) => Text -> m (GValueConstruct o)
- getShortcutThemeParentName :: (MonadIO m, IsShortcutTheme o) => o -> m (Maybe Text)
- setShortcutThemeParentName :: (MonadIO m, IsShortcutTheme o) => o -> Text -> m ()
- clearShortcutThemeSubtitle :: (MonadIO m, IsShortcutTheme o) => o -> m ()
- constructShortcutThemeSubtitle :: (IsShortcutTheme o, MonadIO m) => Text -> m (GValueConstruct o)
- getShortcutThemeSubtitle :: (MonadIO m, IsShortcutTheme o) => o -> m Text
- setShortcutThemeSubtitle :: (MonadIO m, IsShortcutTheme o) => o -> Text -> m ()
- clearShortcutThemeTitle :: (MonadIO m, IsShortcutTheme o) => o -> m ()
- constructShortcutThemeTitle :: (IsShortcutTheme o, MonadIO m) => Text -> m (GValueConstruct o)
- getShortcutThemeTitle :: (MonadIO m, IsShortcutTheme o) => o -> m Text
- setShortcutThemeTitle :: (MonadIO m, IsShortcutTheme o) => o -> Text -> m ()
Exported types
newtype ShortcutTheme Source #
Memory-managed wrapper type.
Constructors
ShortcutTheme (ManagedPtr ShortcutTheme) |
Instances
Eq ShortcutTheme Source # | |
Defined in GI.Dazzle.Objects.ShortcutTheme Methods (==) :: ShortcutTheme -> ShortcutTheme -> Bool # (/=) :: ShortcutTheme -> ShortcutTheme -> Bool # | |
GObject ShortcutTheme Source # | |
Defined in GI.Dazzle.Objects.ShortcutTheme | |
ManagedPtrNewtype ShortcutTheme Source # | |
Defined in GI.Dazzle.Objects.ShortcutTheme Methods toManagedPtr :: ShortcutTheme -> ManagedPtr ShortcutTheme | |
TypedObject ShortcutTheme Source # | |
Defined in GI.Dazzle.Objects.ShortcutTheme | |
HasParentTypes ShortcutTheme Source # | |
Defined in GI.Dazzle.Objects.ShortcutTheme | |
IsGValue (Maybe ShortcutTheme) Source # | Convert |
Defined in GI.Dazzle.Objects.ShortcutTheme Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe ShortcutTheme -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe ShortcutTheme) | |
type ParentTypes ShortcutTheme Source # | |
Defined in GI.Dazzle.Objects.ShortcutTheme type ParentTypes ShortcutTheme = '[Object] |
class (GObject o, IsDescendantOf ShortcutTheme o) => IsShortcutTheme o Source #
Type class for types which can be safely cast to ShortcutTheme
, for instance with toShortcutTheme
.
Instances
(GObject o, IsDescendantOf ShortcutTheme o) => IsShortcutTheme o Source # | |
Defined in GI.Dazzle.Objects.ShortcutTheme |
toShortcutTheme :: (MonadIO m, IsShortcutTheme o) => o -> m ShortcutTheme Source #
Cast to ShortcutTheme
, 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
addCommand, addContext, addCssResource, bindProperty, bindPropertyFull, findContextByName, findDefaultContext, forceFloating, freezeNotify, getv, isFloating, loadFromData, loadFromFile, loadFromPath, notify, notifyByPspec, ref, refSink, removeCssResource, runDispose, saveToFile, saveToPath, saveToStream, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getChordForAction, getChordForCommand, getData, getName, getParent, getParentName, getProperty, getQdata, getSubtitle, getTitle.
Setters
setAccelForAction, setAccelForCommand, setChordForAction, setChordForCommand, setData, setDataFull, setParentName, setProperty.
addContext
shortcutThemeAddContext :: (HasCallStack, MonadIO m, IsShortcutTheme a, IsShortcutContext b) => a -> b -> m () Source #
No description available in the introspection data.
addCssResource
shortcutThemeAddCssResource :: (HasCallStack, MonadIO m, IsShortcutTheme a) => a -> Text -> m () Source #
No description available in the introspection data.
findContextByName
shortcutThemeFindContextByName Source #
Arguments
:: (HasCallStack, MonadIO m, IsShortcutTheme a) | |
=> a |
|
-> Text |
|
-> m ShortcutContext | Returns: An |
Gets the context named name
. If the context does not exist, it will
be created.
findDefaultContext
shortcutThemeFindDefaultContext Source #
Arguments
:: (HasCallStack, MonadIO m, IsShortcutTheme a, IsWidget b) | |
=> a | |
-> b | |
-> m (Maybe ShortcutContext) | Returns: An |
Finds the default context in the theme for widget
.
getChordForAction
shortcutThemeGetChordForAction :: (HasCallStack, MonadIO m, IsShortcutTheme a) => a -> Text -> m ShortcutChord Source #
No description available in the introspection data.
getChordForCommand
shortcutThemeGetChordForCommand :: (HasCallStack, MonadIO m, IsShortcutTheme a) => a -> Text -> m ShortcutChord Source #
No description available in the introspection data.
getName
shortcutThemeGetName :: (HasCallStack, MonadIO m, IsShortcutTheme a) => a -> m Text Source #
No description available in the introspection data.
getParent
shortcutThemeGetParent Source #
Arguments
:: (HasCallStack, MonadIO m, IsShortcutTheme a) | |
=> a |
|
-> m (Maybe ShortcutTheme) | Returns: A |
If the ShortcutTheme:parentName property has been set, this will fetch
the parent ShortcutTheme
.
getParentName
shortcutThemeGetParentName Source #
Arguments
:: (HasCallStack, MonadIO m, IsShortcutTheme a) | |
=> a |
|
-> m (Maybe Text) | Returns: The name of the parent theme, or |
Gets the name of the parent shortcut theme.
This is used to resolve shortcuts from the parent theme without having to copy them directly into this shortcut theme. It allows for some level of copy-on-write (CoW).
getSubtitle
shortcutThemeGetSubtitle :: (HasCallStack, MonadIO m, IsShortcutTheme a) => a -> m Text Source #
No description available in the introspection data.
getTitle
shortcutThemeGetTitle :: (HasCallStack, MonadIO m, IsShortcutTheme a) => a -> m Text Source #
No description available in the introspection data.
loadFromData
shortcutThemeLoadFromData Source #
Arguments
:: (HasCallStack, MonadIO m, IsShortcutTheme a) | |
=> a | |
-> Text | |
-> Int64 | |
-> m () | (Can throw |
No description available in the introspection data.
loadFromFile
shortcutThemeLoadFromFile Source #
Arguments
:: (HasCallStack, MonadIO m, IsShortcutTheme a, IsFile b, IsCancellable c) | |
=> a | |
-> b | |
-> Maybe c | |
-> m () | (Can throw |
No description available in the introspection data.
loadFromPath
shortcutThemeLoadFromPath Source #
Arguments
:: (HasCallStack, MonadIO m, IsShortcutTheme a, IsCancellable b) | |
=> a | |
-> Text | |
-> Maybe b | |
-> m () | (Can throw |
No description available in the introspection data.
new
shortcutThemeNew :: (HasCallStack, MonadIO m) => Text -> m ShortcutTheme Source #
No description available in the introspection data.
removeCssResource
shortcutThemeRemoveCssResource :: (HasCallStack, MonadIO m, IsShortcutTheme a) => a -> Text -> m () Source #
No description available in the introspection data.
saveToFile
shortcutThemeSaveToFile Source #
Arguments
:: (HasCallStack, MonadIO m, IsShortcutTheme a, IsFile b, IsCancellable c) | |
=> a | |
-> b | |
-> Maybe c | |
-> m () | (Can throw |
No description available in the introspection data.
saveToPath
shortcutThemeSaveToPath Source #
Arguments
:: (HasCallStack, MonadIO m, IsShortcutTheme a, IsCancellable b) | |
=> a | |
-> Text | |
-> Maybe b | |
-> m () | (Can throw |
No description available in the introspection data.
saveToStream
shortcutThemeSaveToStream Source #
Arguments
:: (HasCallStack, MonadIO m, IsShortcutTheme a, IsOutputStream b, IsCancellable c) | |
=> a | |
-> b | |
-> Maybe c | |
-> m () | (Can throw |
No description available in the introspection data.
setAccelForAction
shortcutThemeSetAccelForAction :: (HasCallStack, MonadIO m, IsShortcutTheme a) => a -> Text -> Text -> [ShortcutPhase] -> m () Source #
No description available in the introspection data.
setAccelForCommand
shortcutThemeSetAccelForCommand Source #
Arguments
:: (HasCallStack, MonadIO m, IsShortcutTheme a) | |
=> a |
|
-> Maybe Text |
|
-> Maybe Text |
|
-> [ShortcutPhase] |
|
-> m () |
setChordForAction
shortcutThemeSetChordForAction :: (HasCallStack, MonadIO m, IsShortcutTheme a) => a -> Text -> ShortcutChord -> [ShortcutPhase] -> m () Source #
No description available in the introspection data.
setChordForCommand
shortcutThemeSetChordForCommand Source #
Arguments
:: (HasCallStack, MonadIO m, IsShortcutTheme a) | |
=> a |
|
-> Maybe Text |
|
-> Maybe ShortcutChord |
|
-> [ShortcutPhase] |
|
-> m () |
setParentName
shortcutThemeSetParentName :: (HasCallStack, MonadIO m, IsShortcutTheme a) => a -> Text -> m () Source #
No description available in the introspection data.
Properties
name
No description available in the introspection data.
constructShortcutThemeName :: (IsShortcutTheme o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “name
” property. This is rarely needed directly, but it is used by new
.
getShortcutThemeName :: (MonadIO m, IsShortcutTheme o) => o -> m Text Source #
Get the value of the “name
” property.
When overloading is enabled, this is equivalent to
get
shortcutTheme #name
parentName
No description available in the introspection data.
constructShortcutThemeParentName :: (IsShortcutTheme o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “parent-name
” property. This is rarely needed directly, but it is used by new
.
getShortcutThemeParentName :: (MonadIO m, IsShortcutTheme o) => o -> m (Maybe Text) Source #
Get the value of the “parent-name
” property.
When overloading is enabled, this is equivalent to
get
shortcutTheme #parentName
setShortcutThemeParentName :: (MonadIO m, IsShortcutTheme o) => o -> Text -> m () Source #
Set the value of the “parent-name
” property.
When overloading is enabled, this is equivalent to
set
shortcutTheme [ #parentName:=
value ]
subtitle
No description available in the introspection data.
clearShortcutThemeSubtitle :: (MonadIO m, IsShortcutTheme o) => o -> m () Source #
Set the value of the “subtitle
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#subtitle
constructShortcutThemeSubtitle :: (IsShortcutTheme o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “subtitle
” property. This is rarely needed directly, but it is used by new
.
getShortcutThemeSubtitle :: (MonadIO m, IsShortcutTheme o) => o -> m Text Source #
Get the value of the “subtitle
” property.
When overloading is enabled, this is equivalent to
get
shortcutTheme #subtitle
setShortcutThemeSubtitle :: (MonadIO m, IsShortcutTheme o) => o -> Text -> m () Source #
Set the value of the “subtitle
” property.
When overloading is enabled, this is equivalent to
set
shortcutTheme [ #subtitle:=
value ]
title
No description available in the introspection data.
clearShortcutThemeTitle :: (MonadIO m, IsShortcutTheme o) => o -> m () Source #
Set the value of the “title
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#title
constructShortcutThemeTitle :: (IsShortcutTheme o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “title
” property. This is rarely needed directly, but it is used by new
.
getShortcutThemeTitle :: (MonadIO m, IsShortcutTheme o) => o -> m Text Source #
Get the value of the “title
” property.
When overloading is enabled, this is equivalent to
get
shortcutTheme #title
setShortcutThemeTitle :: (MonadIO m, IsShortcutTheme o) => o -> Text -> m () Source #
Set the value of the “title
” property.
When overloading is enabled, this is equivalent to
set
shortcutTheme [ #title:=
value ]