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 helper widget for setting a window's title and subtitle.
<picture> <source srcset="window-title-dark.png" media="(prefers-color-scheme: dark)"> <img src="window-title.png" alt="window-title"> </picture>
AdwWindowTitle
shows a title and subtitle. It's intended to be used as the
title child of HeaderBar
or [classheaderBar
].
CSS nodes
AdwWindowTitle
has a single CSS node with name windowtitle
.
Since: 1.0
Synopsis
- newtype WindowTitle = WindowTitle (ManagedPtr WindowTitle)
- class (GObject o, IsDescendantOf WindowTitle o) => IsWindowTitle o
- toWindowTitle :: (MonadIO m, IsWindowTitle o) => o -> m WindowTitle
- windowTitleGetSubtitle :: (HasCallStack, MonadIO m, IsWindowTitle a) => a -> m Text
- windowTitleGetTitle :: (HasCallStack, MonadIO m, IsWindowTitle a) => a -> m Text
- windowTitleNew :: (HasCallStack, MonadIO m) => Text -> Text -> m WindowTitle
- windowTitleSetSubtitle :: (HasCallStack, MonadIO m, IsWindowTitle a) => a -> Text -> m ()
- windowTitleSetTitle :: (HasCallStack, MonadIO m, IsWindowTitle a) => a -> Text -> m ()
- constructWindowTitleSubtitle :: (IsWindowTitle o, MonadIO m) => Text -> m (GValueConstruct o)
- getWindowTitleSubtitle :: (MonadIO m, IsWindowTitle o) => o -> m Text
- setWindowTitleSubtitle :: (MonadIO m, IsWindowTitle o) => o -> Text -> m ()
- constructWindowTitleTitle :: (IsWindowTitle o, MonadIO m) => Text -> m (GValueConstruct o)
- getWindowTitleTitle :: (MonadIO m, IsWindowTitle o) => o -> m Text
- setWindowTitleTitle :: (MonadIO m, IsWindowTitle o) => o -> Text -> m ()
Exported types
newtype WindowTitle Source #
Memory-managed wrapper type.
WindowTitle (ManagedPtr WindowTitle) |
Instances
Eq WindowTitle Source # | |
Defined in GI.Adw.Objects.WindowTitle (==) :: WindowTitle -> WindowTitle -> Bool # (/=) :: WindowTitle -> WindowTitle -> Bool # | |
GObject WindowTitle Source # | |
Defined in GI.Adw.Objects.WindowTitle | |
ManagedPtrNewtype WindowTitle Source # | |
Defined in GI.Adw.Objects.WindowTitle toManagedPtr :: WindowTitle -> ManagedPtr WindowTitle | |
TypedObject WindowTitle Source # | |
Defined in GI.Adw.Objects.WindowTitle | |
HasParentTypes WindowTitle Source # | |
Defined in GI.Adw.Objects.WindowTitle | |
IsGValue (Maybe WindowTitle) Source # | Convert |
Defined in GI.Adw.Objects.WindowTitle gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe WindowTitle -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe WindowTitle) | |
type ParentTypes WindowTitle Source # | |
Defined in GI.Adw.Objects.WindowTitle type ParentTypes WindowTitle = '[Widget, Object, Accessible, Buildable, ConstraintTarget] |
class (GObject o, IsDescendantOf WindowTitle o) => IsWindowTitle o Source #
Type class for types which can be safely cast to WindowTitle
, for instance with toWindowTitle
.
Instances
(GObject o, IsDescendantOf WindowTitle o) => IsWindowTitle o Source # | |
Defined in GI.Adw.Objects.WindowTitle |
toWindowTitle :: (MonadIO m, IsWindowTitle o) => o -> m WindowTitle Source #
Cast to WindowTitle
, 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, 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, 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, getAllocatedBaseline, getAllocatedHeight, getAllocatedWidth, getAllocation, getAncestor, getBuildableId, getCanFocus, getCanTarget, getChildVisible, getClipboard, getCssClasses, getCssName, getCursor, getData, getDirection, getDisplay, getFirstChild, getFocusChild, getFocusOnClick, getFocusable, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHeight, getHexpand, getHexpandSet, getLastChild, getLayoutManager, getMapped, getMarginBottom, getMarginEnd, getMarginStart, getMarginTop, getName, getNative, getNextSibling, getOpacity, getOverflow, getPangoContext, getParent, getPreferredSize, getPrevSibling, getPrimaryClipboard, getProperty, getQdata, getRealized, getReceivesDefault, getRequestMode, getRoot, getScaleFactor, getSensitive, getSettings, getSize, getSizeRequest, getStateFlags, getStyleContext, getSubtitle, getTemplateChild, getTitle, getTooltipMarkup, getTooltipText, getValign, getVexpand, getVexpandSet, getVisible, getWidth.
Setters
setCanFocus, setCanTarget, setChildVisible, setCssClasses, setCursor, setCursorFromName, setData, setDataFull, setDirection, setFocusChild, setFocusOnClick, setFocusable, setFontMap, setFontOptions, setHalign, setHasTooltip, setHexpand, setHexpandSet, setLayoutManager, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setOpacity, setOverflow, setParent, setProperty, setReceivesDefault, setSensitive, setSizeRequest, setStateFlags, setSubtitle, setTitle, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible.
getSubtitle
windowTitleGetSubtitle Source #
:: (HasCallStack, MonadIO m, IsWindowTitle a) | |
=> a |
|
-> m Text | Returns: the subtitle |
Gets the subtitle of self
.
Since: 1.0
getTitle
:: (HasCallStack, MonadIO m, IsWindowTitle a) | |
=> a |
|
-> m Text | Returns: the title |
Gets the title of self
.
Since: 1.0
new
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> Text |
|
-> m WindowTitle | Returns: the newly created |
Creates a new AdwWindowTitle
.
Since: 1.0
setSubtitle
windowTitleSetSubtitle Source #
:: (HasCallStack, MonadIO m, IsWindowTitle a) | |
=> a |
|
-> Text |
|
-> m () |
Sets the subtitle of self
.
The subtitle should give the user additional details.
Since: 1.0
setTitle
:: (HasCallStack, MonadIO m, IsWindowTitle a) | |
=> a |
|
-> Text |
|
-> m () |
Sets the title of self
.
The title typically identifies the current view or content item, and generally does not use the application name.
Since: 1.0
Properties
subtitle
The subtitle to display.
The subtitle should give the user additional details.
Since: 1.0
constructWindowTitleSubtitle :: (IsWindowTitle 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
.
getWindowTitleSubtitle :: (MonadIO m, IsWindowTitle o) => o -> m Text Source #
Get the value of the “subtitle
” property.
When overloading is enabled, this is equivalent to
get
windowTitle #subtitle
setWindowTitleSubtitle :: (MonadIO m, IsWindowTitle o) => o -> Text -> m () Source #
Set the value of the “subtitle
” property.
When overloading is enabled, this is equivalent to
set
windowTitle [ #subtitle:=
value ]
title
The title to display.
The title typically identifies the current view or content item, and generally does not use the application name.
Since: 1.0
constructWindowTitleTitle :: (IsWindowTitle 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
.
getWindowTitleTitle :: (MonadIO m, IsWindowTitle o) => o -> m Text Source #
Get the value of the “title
” property.
When overloading is enabled, this is equivalent to
get
windowTitle #title
setWindowTitleTitle :: (MonadIO m, IsWindowTitle o) => o -> Text -> m () Source #
Set the value of the “title
” property.
When overloading is enabled, this is equivalent to
set
windowTitle [ #title:=
value ]