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.Application
Description
No description available in the introspection data.
Synopsis
- newtype Application = Application (ManagedPtr Application)
- class (GObject o, IsDescendantOf Application o) => IsApplication o
- toApplication :: (MonadIO m, IsApplication o) => o -> m Application
- applicationAddResources :: (HasCallStack, MonadIO m, IsApplication a) => a -> Text -> m ()
- applicationGetMenuById :: (HasCallStack, MonadIO m, IsApplication a) => a -> Text -> m Menu
- applicationGetMenuManager :: (HasCallStack, MonadIO m, IsApplication a) => a -> m MenuManager
- applicationGetShortcutManager :: (HasCallStack, MonadIO m, IsApplication a) => a -> m ShortcutManager
- applicationGetThemeManager :: (HasCallStack, MonadIO m, IsApplication a) => a -> m ThemeManager
- applicationNew :: (HasCallStack, MonadIO m) => Text -> [ApplicationFlags] -> m Application
- applicationRemoveResources :: (HasCallStack, MonadIO m, IsApplication a) => a -> Text -> m ()
- getApplicationMenuManager :: (MonadIO m, IsApplication o) => o -> m MenuManager
- getApplicationShortcutManager :: (MonadIO m, IsApplication o) => o -> m ShortcutManager
- getApplicationThemeManager :: (MonadIO m, IsApplication o) => o -> m ThemeManager
Exported types
newtype Application Source #
Memory-managed wrapper type.
Constructors
Application (ManagedPtr Application) |
Instances
Eq Application Source # | |
Defined in GI.Dazzle.Objects.Application | |
GObject Application Source # | |
Defined in GI.Dazzle.Objects.Application | |
ManagedPtrNewtype Application Source # | |
Defined in GI.Dazzle.Objects.Application Methods toManagedPtr :: Application -> ManagedPtr Application | |
TypedObject Application Source # | |
Defined in GI.Dazzle.Objects.Application | |
HasParentTypes Application Source # | |
Defined in GI.Dazzle.Objects.Application | |
IsGValue (Maybe Application) Source # | Convert |
Defined in GI.Dazzle.Objects.Application Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Application -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Application) | |
type ParentTypes Application Source # | |
Defined in GI.Dazzle.Objects.Application type ParentTypes Application = '[Application, Application, Object, ActionGroup, ActionMap] |
class (GObject o, IsDescendantOf Application o) => IsApplication o Source #
Type class for types which can be safely cast to Application
, for instance with toApplication
.
Instances
(GObject o, IsDescendantOf Application o) => IsApplication o Source # | |
Defined in GI.Dazzle.Objects.Application |
toApplication :: (MonadIO m, IsApplication o) => o -> m Application Source #
Cast to Application
, 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, activate, activateAction, addAccelerator, addAction, addActionEntries, addMainOption, addMainOptionEntries, addOptionGroup, addResources, addWindow, bindBusyProperty, bindProperty, bindPropertyFull, changeActionState, forceFloating, freezeNotify, getv, hasAction, hold, inhibit, isFloating, isInhibited, listActionDescriptions, listActions, lookupAction, markBusy, notify, notifyByPspec, open, prefersAppMenu, queryAction, quit, ref, refSink, register, release, removeAccelerator, removeAction, removeActionEntries, removeResources, removeWindow, run, runDispose, sendNotification, stealData, stealQdata, thawNotify, unbindBusyProperty, uninhibit, unmarkBusy, unref, watchClosure, withdrawNotification.
Getters
getAccelsForAction, getActionEnabled, getActionParameterType, getActionState, getActionStateHint, getActionStateType, getActionsForAccel, getActiveWindow, getAppMenu, getApplicationId, getData, getDbusConnection, getDbusObjectPath, getFlags, getInactivityTimeout, getIsBusy, getIsRegistered, getIsRemote, getMenuById, getMenuManager, getMenubar, getProperty, getQdata, getResourceBasePath, getShortcutManager, getThemeManager, getVersion, getWindowById, getWindows.
Setters
setAccelsForAction, setActionGroup, setAppMenu, setApplicationId, setData, setDataFull, setDefault, setFlags, setInactivityTimeout, setMenubar, setOptionContextDescription, setOptionContextParameterString, setOptionContextSummary, setProperty, setResourceBasePath, setVersion.
addResources
applicationAddResources Source #
Arguments
:: (HasCallStack, MonadIO m, IsApplication a) | |
=> a |
|
-> Text |
|
-> m () |
This adds resourcePath
to the list of "automatic resources".
If resourcePath
starts with "resource://", then the corresponding
GResources
path will be searched for resources. Otherwise, resourcePath
should be a path to a location on disk.
The Application
will locate resources such as CSS themes, icons, and
keyboard shortcuts using resourcePath
.
getMenuById
applicationGetMenuById Source #
Arguments
:: (HasCallStack, MonadIO m, IsApplication a) | |
=> a |
|
-> Text |
|
-> m Menu | Returns: A |
Similar to applicationGetMenuById
but takes into account
menu merging which could have occurred upon loading plugins.
getMenuManager
applicationGetMenuManager Source #
Arguments
:: (HasCallStack, MonadIO m, IsApplication a) | |
=> a |
|
-> m MenuManager | Returns: A |
Gets the menu manager for the application.
getShortcutManager
applicationGetShortcutManager Source #
Arguments
:: (HasCallStack, MonadIO m, IsApplication a) | |
=> a |
|
-> m ShortcutManager | Returns: A |
Gets the ShortcutManager
for the application.
getThemeManager
applicationGetThemeManager Source #
Arguments
:: (HasCallStack, MonadIO m, IsApplication a) | |
=> a |
|
-> m ThemeManager | Returns: A |
Get the theme manager for the application.
new
applicationNew :: (HasCallStack, MonadIO m) => Text -> [ApplicationFlags] -> m Application Source #
No description available in the introspection data.
removeResources
applicationRemoveResources Source #
Arguments
:: (HasCallStack, MonadIO m, IsApplication a) | |
=> a |
|
-> Text |
|
-> m () |
This attempts to undo as many side-effects as possible from a call to
applicationAddResources
.
Properties
menuManager
No description available in the introspection data.
getApplicationMenuManager :: (MonadIO m, IsApplication o) => o -> m MenuManager Source #
Get the value of the “menu-manager
” property.
When overloading is enabled, this is equivalent to
get
application #menuManager
shortcutManager
No description available in the introspection data.
getApplicationShortcutManager :: (MonadIO m, IsApplication o) => o -> m ShortcutManager Source #
Get the value of the “shortcut-manager
” property.
When overloading is enabled, this is equivalent to
get
application #shortcutManager
themeManager
No description available in the introspection data.
getApplicationThemeManager :: (MonadIO m, IsApplication o) => o -> m ThemeManager Source #
Get the value of the “theme-manager
” property.
When overloading is enabled, this is equivalent to
get
application #themeManager