gi-handy-1.0.4: libhandy bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Handy.Objects.TitleBar

Description

A simple title bar container.

HdyTitleBar is meant to be used as the top-level widget of your window's title bar. It will be drawn with the same style as a HeaderBar but it won't force a widget layout on you: you can put whatever widget you want in it, including a HeaderBar.

HdyTitleBar becomes really useful when you want to animate header bars, like an adaptive application using [classleaflet] would do.

HdyTitleBar has been deprecated, header bars can be animated without it when placed inside [classwindow] or [classapplicationWindow].

CSS nodes

HdyTitleBar has a single CSS node with name headerbar.

Since: 1.0

Synopsis

Exported types

newtype TitleBar Source #

Memory-managed wrapper type.

Constructors

TitleBar (ManagedPtr TitleBar) 

Instances

Instances details
Eq TitleBar Source # 
Instance details

Defined in GI.Handy.Objects.TitleBar

GObject TitleBar Source # 
Instance details

Defined in GI.Handy.Objects.TitleBar

ManagedPtrNewtype TitleBar Source # 
Instance details

Defined in GI.Handy.Objects.TitleBar

Methods

toManagedPtr :: TitleBar -> ManagedPtr TitleBar

TypedObject TitleBar Source # 
Instance details

Defined in GI.Handy.Objects.TitleBar

Methods

glibType :: IO GType

HasParentTypes TitleBar Source # 
Instance details

Defined in GI.Handy.Objects.TitleBar

IsGValue (Maybe TitleBar) Source #

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

Instance details

Defined in GI.Handy.Objects.TitleBar

Methods

gvalueGType_ :: IO GType

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

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

type ParentTypes TitleBar Source # 
Instance details

Defined in GI.Handy.Objects.TitleBar

type ParentTypes TitleBar = '[Bin, Container, Widget, Object, ImplementorIface, Buildable]

class (GObject o, IsDescendantOf TitleBar o) => IsTitleBar o Source #

Type class for types which can be safely cast to TitleBar, for instance with toTitleBar.

Instances

Instances details
(GObject o, IsDescendantOf TitleBar o) => IsTitleBar o Source # 
Instance details

Defined in GI.Handy.Objects.TitleBar

toTitleBar :: (MonadIO m, IsTitleBar o) => o -> m TitleBar Source #

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

activate, add, addAccelerator, addChild, addDeviceEvents, addEvents, addMnemonicLabel, addTickCallback, bindProperty, bindPropertyFull, canActivateAccel, checkResize, childFocus, childGetProperty, childNotify, childNotifyByPspec, childSetProperty, childType, classPath, computeExpand, constructChild, createPangoContext, createPangoLayout, customFinished, customTagEnd, customTagStart, destroy, destroyed, deviceIsShadowed, dragBegin, dragBeginWithCoordinates, dragCheckThreshold, dragDestAddImageTargets, dragDestAddTextTargets, dragDestAddUriTargets, dragDestFindTarget, dragDestGetTargetList, dragDestGetTrackMotion, dragDestSet, dragDestSetProxy, dragDestSetTargetList, dragDestSetTrackMotion, dragDestUnset, dragGetData, dragHighlight, dragSourceAddImageTargets, dragSourceAddTextTargets, dragSourceAddUriTargets, dragSourceGetTargetList, dragSourceSet, dragSourceSetIconGicon, dragSourceSetIconName, dragSourceSetIconPixbuf, dragSourceSetIconStock, dragSourceSetTargetList, dragSourceUnset, dragUnhighlight, draw, ensureStyle, errorBell, event, forall, forceFloating, foreach, freezeChildNotify, freezeNotify, getv, grabAdd, grabDefault, grabFocus, grabRemove, hasDefault, hasFocus, hasGrab, hasRcStyle, hasScreen, hasVisibleFocus, hide, hideOnDelete, inDestruction, initTemplate, inputShapeCombineRegion, insertActionGroup, intersect, isAncestor, isComposited, isDrawable, isFloating, isFocus, isSensitive, isToplevel, isVisible, keynavFailed, listAccelClosures, listActionPrefixes, listMnemonicLabels, map, mnemonicActivate, modifyBase, modifyBg, modifyCursor, modifyFg, modifyFont, modifyStyle, modifyText, notify, notifyByPspec, overrideBackgroundColor, overrideColor, overrideCursor, overrideFont, overrideSymbolicColor, parserFinished, path, propagateDraw, queueAllocate, queueComputeExpand, queueDraw, queueDrawArea, queueDrawRegion, queueResize, queueResizeNoRedraw, realize, ref, refSink, regionIntersect, registerWindow, remove, removeAccelerator, removeMnemonicLabel, removeTickCallback, renderIcon, renderIconPixbuf, reparent, resetRcStyles, resetStyle, resizeChildren, runDispose, sendExpose, sendFocusChange, shapeCombineRegion, show, showAll, showNow, sizeAllocate, sizeAllocateWithBaseline, sizeRequest, stealData, stealQdata, styleAttach, styleGetProperty, thawChildNotify, thawNotify, translateCoordinates, triggerTooltipQuery, unmap, unparent, unrealize, unref, unregisterWindow, unsetFocusChain, unsetStateFlags, watchClosure.

Getters

getAccessible, getActionGroup, getAllocatedBaseline, getAllocatedHeight, getAllocatedSize, getAllocatedWidth, getAllocation, getAncestor, getAppPaintable, getBorderWidth, getCanDefault, getCanFocus, getChild, getChildRequisition, getChildVisible, getChildren, getClip, getClipboard, getCompositeName, getData, getDeviceEnabled, getDeviceEvents, getDirection, getDisplay, getDoubleBuffered, getEvents, getFocusChain, getFocusChild, getFocusHadjustment, getFocusOnClick, getFocusVadjustment, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHasWindow, getHexpand, getHexpandSet, getInternalChild, getMapped, getMarginBottom, getMarginEnd, getMarginLeft, getMarginRight, getMarginStart, getMarginTop, getModifierMask, getModifierStyle, getName, getNoShowAll, getOpacity, getPangoContext, getParent, getParentWindow, getPath, getPathForChild, getPointer, getPreferredHeight, getPreferredHeightAndBaselineForWidth, getPreferredHeightForWidth, getPreferredSize, getPreferredWidth, getPreferredWidthForHeight, getProperty, getQdata, getRealized, getReceivesDefault, getRequestMode, getRequisition, getResizeMode, getRootWindow, getScaleFactor, getScreen, getSelectionMode, getSensitive, getSettings, getSizeRequest, getState, getStateFlags, getStyle, getStyleContext, getSupportMultidevice, getTemplateChild, getTooltipMarkup, getTooltipText, getTooltipWindow, getToplevel, getValign, getValignWithBaseline, getVexpand, getVexpandSet, getVisible, getVisual, getWindow.

Setters

setAccelPath, setAllocation, setAppPaintable, setBorderWidth, setBuildableProperty, setCanDefault, setCanFocus, setChildVisible, setClip, setCompositeName, setData, setDataFull, setDeviceEnabled, setDeviceEvents, setDirection, setDoubleBuffered, setEvents, setFocusChain, setFocusChild, setFocusHadjustment, setFocusOnClick, setFocusVadjustment, setFontMap, setFontOptions, setHalign, setHasTooltip, setHasWindow, setHexpand, setHexpandSet, setMapped, setMarginBottom, setMarginEnd, setMarginLeft, setMarginRight, setMarginStart, setMarginTop, setName, setNoShowAll, setOpacity, setParent, setParentWindow, setProperty, setRealized, setReallocateRedraws, setReceivesDefault, setRedrawOnAllocate, setResizeMode, setSelectionMode, setSensitive, setSizeRequest, setState, setStateFlags, setStyle, setSupportMultidevice, setTooltipMarkup, setTooltipText, setTooltipWindow, setValign, setVexpand, setVexpandSet, setVisible, setVisual, setWindow.

getSelectionMode

titleBarGetSelectionMode Source #

Arguments

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

self: a title bar

-> m Bool

Returns: TRUE if the title bar is in selection mode

Deprecated: (Since version 1.4)

Returns whether whether self is in selection mode.

Since: 1.0

new

titleBarNew Source #

Arguments

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

Returns: a new HdyTitleBar

Deprecated: (Since version 1.4)

Creates a new HdyTitleBar.

Since: 1.0

setSelectionMode

titleBarSetSelectionMode Source #

Arguments

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

self: a title bar

-> Bool

selectionMode: TRUE to enable the selection mode

-> m () 

Deprecated: (Since version 1.4)

Sets whether self is in selection mode.

Since: 1.0

Properties

selectionMode

Whether or not the title bar is in selection mode.

Since: 1.0

constructTitleBarSelectionMode :: (IsTitleBar o, MonadIO m) => Bool -> m (GValueConstruct o) Source #

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

getTitleBarSelectionMode :: (MonadIO m, IsTitleBar o) => o -> m Bool Source #

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

get titleBar #selectionMode

setTitleBarSelectionMode :: (MonadIO m, IsTitleBar o) => o -> Bool -> m () Source #

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

set titleBar [ #selectionMode := value ]