gi-adwaita-1.0.3: 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.WindowTitle

Description

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

Exported types

newtype WindowTitle Source #

Memory-managed wrapper type.

Constructors

WindowTitle (ManagedPtr WindowTitle) 

Instances

Instances details
Eq WindowTitle Source # 
Instance details

Defined in GI.Adw.Objects.WindowTitle

GObject WindowTitle Source # 
Instance details

Defined in GI.Adw.Objects.WindowTitle

ManagedPtrNewtype WindowTitle Source # 
Instance details

Defined in GI.Adw.Objects.WindowTitle

Methods

toManagedPtr :: WindowTitle -> ManagedPtr WindowTitle

TypedObject WindowTitle Source # 
Instance details

Defined in GI.Adw.Objects.WindowTitle

Methods

glibType :: IO GType

HasParentTypes WindowTitle Source # 
Instance details

Defined in GI.Adw.Objects.WindowTitle

IsGValue (Maybe WindowTitle) Source #

Convert WindowTitle to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Adw.Objects.WindowTitle

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe WindowTitle -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe WindowTitle)

type ParentTypes WindowTitle Source # 
Instance details

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

Instances details
(GObject o, IsDescendantOf WindowTitle o) => IsWindowTitle o Source # 
Instance details

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

Expand

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 #

Arguments

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

self: a window title

-> m Text

Returns: the subtitle

Gets the subtitle of self.

Since: 1.0

getTitle

windowTitleGetTitle Source #

Arguments

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

self: a window title

-> m Text

Returns: the title

Gets the title of self.

Since: 1.0

new

windowTitleNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

title: a title

-> Text

subtitle: a subtitle

-> m WindowTitle

Returns: the newly created AdwWindowTitle

Creates a new AdwWindowTitle.

Since: 1.0

setSubtitle

windowTitleSetSubtitle Source #

Arguments

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

self: a window title

-> Text

subtitle: a subtitle

-> m () 

Sets the subtitle of self.

The subtitle should give the user additional details.

Since: 1.0

setTitle

windowTitleSetTitle Source #

Arguments

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

self: a window title

-> Text

title: a title

-> 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 ]