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 |
A ListBoxRow
used to present preferences.
The AdwPreferencesRow
widget has a title that [classpreferencesWindow
]
will use to let the user look for a preference. It doesn't present the title
in any way and lets you present the preference as you please.
- class
actionRow
- and its derivatives are convenient to use as preference rows as they take care of presenting the preference's title while letting you compose the inputs of the preference around it.
Since: 1.0
Synopsis
- newtype PreferencesRow = PreferencesRow (ManagedPtr PreferencesRow)
- class (GObject o, IsDescendantOf PreferencesRow o) => IsPreferencesRow o
- toPreferencesRow :: (MonadIO m, IsPreferencesRow o) => o -> m PreferencesRow
- preferencesRowGetTitle :: (HasCallStack, MonadIO m, IsPreferencesRow a) => a -> m Text
- preferencesRowGetTitleSelectable :: (HasCallStack, MonadIO m, IsPreferencesRow a) => a -> m Bool
- preferencesRowGetUseMarkup :: (HasCallStack, MonadIO m, IsPreferencesRow a) => a -> m Bool
- preferencesRowGetUseUnderline :: (HasCallStack, MonadIO m, IsPreferencesRow a) => a -> m Bool
- preferencesRowNew :: (HasCallStack, MonadIO m) => m PreferencesRow
- preferencesRowSetTitle :: (HasCallStack, MonadIO m, IsPreferencesRow a) => a -> Text -> m ()
- preferencesRowSetTitleSelectable :: (HasCallStack, MonadIO m, IsPreferencesRow a) => a -> Bool -> m ()
- preferencesRowSetUseMarkup :: (HasCallStack, MonadIO m, IsPreferencesRow a) => a -> Bool -> m ()
- preferencesRowSetUseUnderline :: (HasCallStack, MonadIO m, IsPreferencesRow a) => a -> Bool -> m ()
- constructPreferencesRowTitle :: (IsPreferencesRow o, MonadIO m) => Text -> m (GValueConstruct o)
- getPreferencesRowTitle :: (MonadIO m, IsPreferencesRow o) => o -> m Text
- setPreferencesRowTitle :: (MonadIO m, IsPreferencesRow o) => o -> Text -> m ()
- constructPreferencesRowTitleSelectable :: (IsPreferencesRow o, MonadIO m) => Bool -> m (GValueConstruct o)
- getPreferencesRowTitleSelectable :: (MonadIO m, IsPreferencesRow o) => o -> m Bool
- setPreferencesRowTitleSelectable :: (MonadIO m, IsPreferencesRow o) => o -> Bool -> m ()
- constructPreferencesRowUseMarkup :: (IsPreferencesRow o, MonadIO m) => Bool -> m (GValueConstruct o)
- getPreferencesRowUseMarkup :: (MonadIO m, IsPreferencesRow o) => o -> m Bool
- setPreferencesRowUseMarkup :: (MonadIO m, IsPreferencesRow o) => o -> Bool -> m ()
- constructPreferencesRowUseUnderline :: (IsPreferencesRow o, MonadIO m) => Bool -> m (GValueConstruct o)
- getPreferencesRowUseUnderline :: (MonadIO m, IsPreferencesRow o) => o -> m Bool
- setPreferencesRowUseUnderline :: (MonadIO m, IsPreferencesRow o) => o -> Bool -> m ()
Exported types
newtype PreferencesRow Source #
Memory-managed wrapper type.
PreferencesRow (ManagedPtr PreferencesRow) |
Instances
class (GObject o, IsDescendantOf PreferencesRow o) => IsPreferencesRow o Source #
Type class for types which can be safely cast to PreferencesRow
, for instance with toPreferencesRow
.
Instances
(GObject o, IsDescendantOf PreferencesRow o) => IsPreferencesRow o Source # | |
Defined in GI.Adw.Objects.PreferencesRow |
toPreferencesRow :: (MonadIO m, IsPreferencesRow o) => o -> m PreferencesRow Source #
Cast to PreferencesRow
, 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
actionSetEnabled, activate, activateAction, activateDefault, addController, addCssClass, addMnemonicLabel, addTickCallback, allocate, bindProperty, bindPropertyFull, changed, childFocus, computeBounds, computeExpand, computePoint, computeTransform, contains, createPangoContext, createPangoLayout, disposeTemplate, dragCheckThreshold, errorBell, forceFloating, freezeNotify, getv, grabFocus, hasCssClass, hasDefault, hasFocus, hasVisibleFocus, hide, inDestruction, initTemplate, insertActionGroup, insertAfter, insertBefore, isAncestor, isDrawable, isFloating, isFocus, isSelected, isSensitive, isVisible, keynavFailed, listMnemonicLabels, map, measure, mnemonicActivate, notify, notifyByPspec, observeChildren, observeControllers, pick, queueAllocate, queueDraw, queueResize, realize, ref, refSink, removeController, removeCssClass, removeMnemonicLabel, removeTickCallback, resetProperty, resetRelation, resetState, runDispose, shouldLayout, show, sizeAllocate, snapshotChild, stealData, stealQdata, thawNotify, translateCoordinates, triggerTooltipQuery, unmap, unparent, unrealize, unref, unsetStateFlags, updateProperty, updateRelation, updateState, watchClosure.
Getters
getAccessibleRole, getActionName, getActionTargetValue, getActivatable, getAllocatedBaseline, getAllocatedHeight, getAllocatedWidth, getAllocation, getAncestor, getBuildableId, getCanFocus, getCanTarget, getChild, getChildVisible, getClipboard, getCssClasses, getCssName, getCursor, getData, getDirection, getDisplay, getFirstChild, getFocusChild, getFocusOnClick, getFocusable, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHeader, getHeight, getHexpand, getHexpandSet, getIndex, getLastChild, getLayoutManager, getMapped, getMarginBottom, getMarginEnd, getMarginStart, getMarginTop, getName, getNative, getNextSibling, getOpacity, getOverflow, getPangoContext, getParent, getPreferredSize, getPrevSibling, getPrimaryClipboard, getProperty, getQdata, getRealized, getReceivesDefault, getRequestMode, getRoot, getScaleFactor, getSelectable, getSensitive, getSettings, getSize, getSizeRequest, getStateFlags, getStyleContext, getTemplateChild, getTitle, getTitleSelectable, getTooltipMarkup, getTooltipText, getUseMarkup, getUseUnderline, getValign, getVexpand, getVexpandSet, getVisible, getWidth.
Setters
setActionName, setActionTargetValue, setActivatable, setCanFocus, setCanTarget, setChild, setChildVisible, setCssClasses, setCursor, setCursorFromName, setData, setDataFull, setDetailedActionName, setDirection, setFocusChild, setFocusOnClick, setFocusable, setFontMap, setFontOptions, setHalign, setHasTooltip, setHeader, setHexpand, setHexpandSet, setLayoutManager, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setOpacity, setOverflow, setParent, setProperty, setReceivesDefault, setSelectable, setSensitive, setSizeRequest, setStateFlags, setTitle, setTitleSelectable, setTooltipMarkup, setTooltipText, setUseMarkup, setUseUnderline, setValign, setVexpand, setVexpandSet, setVisible.
getTitle
preferencesRowGetTitle Source #
:: (HasCallStack, MonadIO m, IsPreferencesRow a) | |
=> a |
|
-> m Text | Returns: the title |
Gets the title of the preference represented by self
.
Since: 1.0
getTitleSelectable
preferencesRowGetTitleSelectable Source #
:: (HasCallStack, MonadIO m, IsPreferencesRow a) | |
=> a |
|
-> m Bool | Returns: whether the user can copy the title from the label |
Gets whether the user can copy the title from the label
Since: 1.1
getUseMarkup
preferencesRowGetUseMarkup Source #
:: (HasCallStack, MonadIO m, IsPreferencesRow a) | |
=> a |
|
-> m Bool | Returns: whether to use markup |
Gets whether to use Pango markup for the title label.
Since: 1.2
getUseUnderline
preferencesRowGetUseUnderline Source #
:: (HasCallStack, MonadIO m, IsPreferencesRow a) | |
=> a |
|
-> m Bool | Returns: whether an embedded underline in the title indicates a mnemonic |
Gets whether an embedded underline in the title indicates a mnemonic.
Since: 1.0
new
:: (HasCallStack, MonadIO m) | |
=> m PreferencesRow | Returns: the newly created |
Creates a new AdwPreferencesRow
.
Since: 1.0
setTitle
preferencesRowSetTitle Source #
:: (HasCallStack, MonadIO m, IsPreferencesRow a) | |
=> a |
|
-> Text |
|
-> m () |
Sets the title of the preference represented by self
.
The title is interpreted as Pango markup unless
[propertypreferencesRow
:use-markup] is set to FALSE
.
Since: 1.0
setTitleSelectable
preferencesRowSetTitleSelectable Source #
:: (HasCallStack, MonadIO m, IsPreferencesRow a) | |
=> a |
|
-> Bool |
|
-> m () |
setUseMarkup
preferencesRowSetUseMarkup Source #
:: (HasCallStack, MonadIO m, IsPreferencesRow a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether to use Pango markup for the title label.
Subclasses may also use it for other labels, such as subtitle.
See also parseMarkup
.
Since: 1.2
setUseUnderline
preferencesRowSetUseUnderline Source #
:: (HasCallStack, MonadIO m, IsPreferencesRow a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether an embedded underline in the title indicates a mnemonic.
Since: 1.0
Properties
title
The title of the preference represented by this row.
The title is interpreted as Pango markup unless
[propertypreferencesRow
:use-markup] is set to FALSE
.
Since: 1.0
constructPreferencesRowTitle :: (IsPreferencesRow 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
.
getPreferencesRowTitle :: (MonadIO m, IsPreferencesRow o) => o -> m Text Source #
Get the value of the “title
” property.
When overloading is enabled, this is equivalent to
get
preferencesRow #title
setPreferencesRowTitle :: (MonadIO m, IsPreferencesRow o) => o -> Text -> m () Source #
Set the value of the “title
” property.
When overloading is enabled, this is equivalent to
set
preferencesRow [ #title:=
value ]
titleSelectable
constructPreferencesRowTitleSelectable :: (IsPreferencesRow o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “title-selectable
” property. This is rarely needed directly, but it is used by new
.
getPreferencesRowTitleSelectable :: (MonadIO m, IsPreferencesRow o) => o -> m Bool Source #
Get the value of the “title-selectable
” property.
When overloading is enabled, this is equivalent to
get
preferencesRow #titleSelectable
setPreferencesRowTitleSelectable :: (MonadIO m, IsPreferencesRow o) => o -> Bool -> m () Source #
Set the value of the “title-selectable
” property.
When overloading is enabled, this is equivalent to
set
preferencesRow [ #titleSelectable:=
value ]
useMarkup
Whether to use Pango markup for the title label.
Subclasses may also use it for other labels, such as subtitle.
See also parseMarkup
.
Since: 1.2
constructPreferencesRowUseMarkup :: (IsPreferencesRow o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “use-markup
” property. This is rarely needed directly, but it is used by new
.
getPreferencesRowUseMarkup :: (MonadIO m, IsPreferencesRow o) => o -> m Bool Source #
Get the value of the “use-markup
” property.
When overloading is enabled, this is equivalent to
get
preferencesRow #useMarkup
setPreferencesRowUseMarkup :: (MonadIO m, IsPreferencesRow o) => o -> Bool -> m () Source #
Set the value of the “use-markup
” property.
When overloading is enabled, this is equivalent to
set
preferencesRow [ #useMarkup:=
value ]
useUnderline
Whether an embedded underline in the title indicates a mnemonic.
Since: 1.0
constructPreferencesRowUseUnderline :: (IsPreferencesRow o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “use-underline
” property. This is rarely needed directly, but it is used by new
.
getPreferencesRowUseUnderline :: (MonadIO m, IsPreferencesRow o) => o -> m Bool Source #
Get the value of the “use-underline
” property.
When overloading is enabled, this is equivalent to
get
preferencesRow #useUnderline
setPreferencesRowUseUnderline :: (MonadIO m, IsPreferencesRow o) => o -> Bool -> m () Source #
Set the value of the “use-underline
” property.
When overloading is enabled, this is equivalent to
set
preferencesRow [ #useUnderline:=
value ]