gi-adwaita-1.0.1: Adwaita bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Adw.Objects.PreferencesWindow

Description

A window to present an application's preferences.

The AdwPreferencesWindow widget presents an application's preferences gathered into pages and groups. The preferences are searchable by the user.

CSS nodes

AdwPreferencesWindow has a main CSS node with the name window and the style class .preferences.

Since: 1.0

Synopsis

Exported types

class (GObject o, IsDescendantOf PreferencesWindow o) => IsPreferencesWindow o Source #

Type class for types which can be safely cast to PreferencesWindow, for instance with toPreferencesWindow.

Instances

Instances details
(GObject o, IsDescendantOf PreferencesWindow o) => IsPreferencesWindow o Source # 
Instance details

Defined in GI.Adw.Objects.PreferencesWindow

toPreferencesWindow :: (MonadIO m, IsPreferencesWindow o) => o -> m PreferencesWindow Source #

Cast to PreferencesWindow, 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

Expand

Methods

actionSetEnabled, activate, activateAction, activateDefault, add, addController, addCssClass, addMnemonicLabel, addTickCallback, allocate, bindProperty, bindPropertyFull, childFocus, close, closeSubpage, computeBounds, computeExpand, computePoint, computeTransform, contains, createPangoContext, createPangoLayout, destroy, dragCheckThreshold, errorBell, forceFloating, freezeNotify, fullscreen, fullscreenOnMonitor, getv, grabFocus, hasCssClass, hasDefault, hasFocus, hasGroup, hasVisibleFocus, hide, inDestruction, initTemplate, insertActionGroup, insertAfter, insertBefore, isActive, isAncestor, isDrawable, isFloating, isFocus, isFullscreen, isMaximized, isSensitive, isVisible, keynavFailed, listMnemonicLabels, map, maximize, measure, minimize, mnemonicActivate, notify, notifyByPspec, observeChildren, observeControllers, pick, present, presentSubpage, presentWithTime, queueAllocate, queueDraw, queueResize, realize, ref, refSink, remove, removeController, removeCssClass, removeMnemonicLabel, removeTickCallback, resetProperty, resetRelation, resetState, runDispose, shouldLayout, show, sizeAllocate, snapshotChild, stealData, stealQdata, thawNotify, translateCoordinates, triggerTooltipQuery, unfullscreen, unmap, unmaximize, unminimize, unparent, unrealize, unref, unsetStateFlags, updateProperty, updateRelation, updateState, watchClosure.

Getters

getAccessibleRole, getAllocatedBaseline, getAllocatedHeight, getAllocatedWidth, getAllocation, getAncestor, getApplication, getBuildableId, getCanFocus, getCanSwipeBack, getCanTarget, getChild, getChildVisible, getClipboard, getContent, getCssClasses, getCssName, getCursor, getData, getDecorated, getDefaultSize, getDefaultWidget, getDeletable, getDestroyWithParent, getDirection, getDisplay, getFirstChild, getFocus, getFocusChild, getFocusOnClick, getFocusVisible, getFocusable, getFontMap, getFontOptions, getFrameClock, getGroup, getHalign, getHandleMenubarAccel, getHasTooltip, getHeight, getHexpand, getHexpandSet, getHideOnClose, getIconName, getLastChild, getLayoutManager, getMapped, getMarginBottom, getMarginEnd, getMarginStart, getMarginTop, getMnemonicsVisible, getModal, getName, getNative, getNextSibling, getOpacity, getOverflow, getPangoContext, getParent, getPreferredSize, getPrevSibling, getPrimaryClipboard, getProperty, getQdata, getRealized, getReceivesDefault, getRenderer, getRequestMode, getResizable, getRoot, getScaleFactor, getSearchEnabled, getSensitive, getSettings, getSize, getSizeRequest, getStateFlags, getStyleContext, getSurface, getSurfaceTransform, getTemplateChild, getTitle, getTitlebar, getTooltipMarkup, getTooltipText, getTransientFor, getValign, getVexpand, getVexpandSet, getVisible, getVisiblePage, getVisiblePageName, getWidth.

Setters

setApplication, setCanFocus, setCanSwipeBack, setCanTarget, setChild, setChildVisible, setContent, setCssClasses, setCursor, setCursorFromName, setData, setDataFull, setDecorated, setDefaultSize, setDefaultWidget, setDeletable, setDestroyWithParent, setDirection, setDisplay, setFocus, setFocusChild, setFocusOnClick, setFocusVisible, setFocusable, setFontMap, setFontOptions, setHalign, setHandleMenubarAccel, setHasTooltip, setHexpand, setHexpandSet, setHideOnClose, setIconName, setLayoutManager, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setMnemonicsVisible, setModal, setName, setOpacity, setOverflow, setParent, setProperty, setReceivesDefault, setResizable, setSearchEnabled, setSensitive, setSizeRequest, setStartupId, setStateFlags, setTitle, setTitlebar, setTooltipMarkup, setTooltipText, setTransientFor, setValign, setVexpand, setVexpandSet, setVisible, setVisiblePage, setVisiblePageName.

add

preferencesWindowAdd Source #

Arguments

:: (HasCallStack, MonadIO m, IsPreferencesWindow a, IsPreferencesPage b) 
=> a

self: a AdwPreferencesWindow

-> b

page: the page to add

-> m () 

Adds a preferences page to self.

Since: 1.0

closeSubpage

preferencesWindowCloseSubpage Source #

Arguments

:: (HasCallStack, MonadIO m, IsPreferencesWindow a) 
=> a

self: a AdwPreferencesWindow

-> m () 

Closes the current subpage.

If there is no presented subpage, this does nothing.

See preferencesWindowCloseSubpage.

Since: 1.0

getCanSwipeBack

preferencesWindowGetCanSwipeBack Source #

Arguments

:: (HasCallStack, MonadIO m, IsPreferencesWindow a) 
=> a

self: a AdwPreferencesWindow

-> m Bool

Returns: whether back swipe is enabled.

Gets whether or not self allows closing subpages via a swipe gesture.

Since: 1.0

getSearchEnabled

preferencesWindowGetSearchEnabled Source #

Arguments

:: (HasCallStack, MonadIO m, IsPreferencesWindow a) 
=> a

self: a AdwPreferencesWindow

-> m Bool

Returns: whether search is enabled for self.

Gets whether search is enabled for self.

Since: 1.0

getVisiblePage

preferencesWindowGetVisiblePage Source #

Arguments

:: (HasCallStack, MonadIO m, IsPreferencesWindow a) 
=> a

self: a AdwPreferencesWindow

-> m (Maybe PreferencesPage)

Returns: the visible page

Gets the currently visible page of self.

Since: 1.0

getVisiblePageName

preferencesWindowGetVisiblePageName Source #

Arguments

:: (HasCallStack, MonadIO m, IsPreferencesWindow a) 
=> a

self: a AdwPreferencesWindow

-> m (Maybe Text)

Returns: the name of the visible page

Gets the name of currently visible page of self.

Since: 1.0

new

preferencesWindowNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m PreferencesWindow

Returns: the newly created AdwPreferencesWindow

Creates a new AdwPreferencesWindow.

Since: 1.0

presentSubpage

preferencesWindowPresentSubpage Source #

Arguments

:: (HasCallStack, MonadIO m, IsPreferencesWindow a, IsWidget b) 
=> a

self: a AdwPreferencesWindow

-> b

subpage: the subpage

-> m () 

Sets subpage as the window's subpage and opens it.

The transition can be cancelled by the user, in which case visible child will change back to the previously visible child.

Since: 1.0

remove

preferencesWindowRemove Source #

Arguments

:: (HasCallStack, MonadIO m, IsPreferencesWindow a, IsPreferencesPage b) 
=> a

self: a AdwPreferencesWindow

-> b

page: the page to remove

-> m () 

Removes a page from self.

Since: 1.0

setCanSwipeBack

preferencesWindowSetCanSwipeBack Source #

Arguments

:: (HasCallStack, MonadIO m, IsPreferencesWindow a) 
=> a

self: a AdwPreferencesWindow

-> Bool

canSwipeBack: the new value

-> m () 

Sets whether or not self allows closing subpages via a swipe gesture.

Since: 1.0

setSearchEnabled

preferencesWindowSetSearchEnabled Source #

Arguments

:: (HasCallStack, MonadIO m, IsPreferencesWindow a) 
=> a

self: a AdwPreferencesWindow

-> Bool

searchEnabled: whether search is enabled

-> m () 

Sets whether search is enabled for self.

Since: 1.0

setVisiblePage

preferencesWindowSetVisiblePage Source #

Arguments

:: (HasCallStack, MonadIO m, IsPreferencesWindow a, IsPreferencesPage b) 
=> a

self: a AdwPreferencesWindow

-> b

page: a page of self

-> m () 

Makes page the visible page of self.

Since: 1.0

setVisiblePageName

preferencesWindowSetVisiblePageName Source #

Arguments

:: (HasCallStack, MonadIO m, IsPreferencesWindow a) 
=> a

self: a AdwPreferencesWindow

-> Text

name: the name of the page to make visible

-> m () 

Makes the page with the given name visible.

Since: 1.0

Properties

canSwipeBack

Whether or not the window allows closing subpages via a swipe gesture.

Since: 1.0

constructPreferencesWindowCanSwipeBack :: (IsPreferencesWindow o, MonadIO m) => Bool -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “can-swipe-back” property. This is rarely needed directly, but it is used by new.

getPreferencesWindowCanSwipeBack :: (MonadIO m, IsPreferencesWindow o) => o -> m Bool Source #

Get the value of the “can-swipe-back” property. When overloading is enabled, this is equivalent to

get preferencesWindow #canSwipeBack

setPreferencesWindowCanSwipeBack :: (MonadIO m, IsPreferencesWindow o) => o -> Bool -> m () Source #

Set the value of the “can-swipe-back” property. When overloading is enabled, this is equivalent to

set preferencesWindow [ #canSwipeBack := value ]

searchEnabled

Whether search is enabled.

Since: 1.0

constructPreferencesWindowSearchEnabled :: (IsPreferencesWindow o, MonadIO m) => Bool -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “search-enabled” property. This is rarely needed directly, but it is used by new.

getPreferencesWindowSearchEnabled :: (MonadIO m, IsPreferencesWindow o) => o -> m Bool Source #

Get the value of the “search-enabled” property. When overloading is enabled, this is equivalent to

get preferencesWindow #searchEnabled

setPreferencesWindowSearchEnabled :: (MonadIO m, IsPreferencesWindow o) => o -> Bool -> m () Source #

Set the value of the “search-enabled” property. When overloading is enabled, this is equivalent to

set preferencesWindow [ #searchEnabled := value ]

visiblePage

No description available in the introspection data.

clearPreferencesWindowVisiblePage :: (MonadIO m, IsPreferencesWindow o) => o -> m () Source #

Set the value of the “visible-page” property to Nothing. When overloading is enabled, this is equivalent to

clear #visiblePage

constructPreferencesWindowVisiblePage :: (IsPreferencesWindow o, MonadIO m, IsWidget a) => a -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “visible-page” property. This is rarely needed directly, but it is used by new.

getPreferencesWindowVisiblePage :: (MonadIO m, IsPreferencesWindow o) => o -> m (Maybe Widget) Source #

Get the value of the “visible-page” property. When overloading is enabled, this is equivalent to

get preferencesWindow #visiblePage

setPreferencesWindowVisiblePage :: (MonadIO m, IsPreferencesWindow o, IsWidget a) => o -> a -> m () Source #

Set the value of the “visible-page” property. When overloading is enabled, this is equivalent to

set preferencesWindow [ #visiblePage := value ]

visiblePageName

No description available in the introspection data.

constructPreferencesWindowVisiblePageName :: (IsPreferencesWindow o, MonadIO m) => Text -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “visible-page-name” property. This is rarely needed directly, but it is used by new.

getPreferencesWindowVisiblePageName :: (MonadIO m, IsPreferencesWindow o) => o -> m (Maybe Text) Source #

Get the value of the “visible-page-name” property. When overloading is enabled, this is equivalent to

get preferencesWindow #visiblePageName

setPreferencesWindowVisiblePageName :: (MonadIO m, IsPreferencesWindow o) => o -> Text -> m () Source #

Set the value of the “visible-page-name” property. When overloading is enabled, this is equivalent to

set preferencesWindow [ #visiblePageName := value ]