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 freeform application window.
<picture> <source srcset="application-window-dark.png" media="(prefers-color-scheme: dark)"> <img src="application-window.png" alt="application-window"> </picture>
AdwApplicationWindow
is a ApplicationWindow
subclass providing
the same features as [classwindow
].
See [classwindow
] for details.
Using Application:menubar is not supported and may result in visual glitches.
Since: 1.0
Synopsis
- newtype ApplicationWindow = ApplicationWindow (ManagedPtr ApplicationWindow)
- class (GObject o, IsDescendantOf ApplicationWindow o) => IsApplicationWindow o
- toApplicationWindow :: (MonadIO m, IsApplicationWindow o) => o -> m ApplicationWindow
- applicationWindowGetContent :: (HasCallStack, MonadIO m, IsApplicationWindow a) => a -> m (Maybe Widget)
- applicationWindowNew :: (HasCallStack, MonadIO m, IsApplication a) => a -> m ApplicationWindow
- applicationWindowSetContent :: (HasCallStack, MonadIO m, IsApplicationWindow a, IsWidget b) => a -> Maybe b -> m ()
- clearApplicationWindowContent :: (MonadIO m, IsApplicationWindow o) => o -> m ()
- constructApplicationWindowContent :: (IsApplicationWindow o, MonadIO m, IsWidget a) => a -> m (GValueConstruct o)
- getApplicationWindowContent :: (MonadIO m, IsApplicationWindow o) => o -> m (Maybe Widget)
- setApplicationWindowContent :: (MonadIO m, IsApplicationWindow o, IsWidget a) => o -> a -> m ()
Exported types
newtype ApplicationWindow Source #
Memory-managed wrapper type.
ApplicationWindow (ManagedPtr ApplicationWindow) |
Instances
class (GObject o, IsDescendantOf ApplicationWindow o) => IsApplicationWindow o Source #
Type class for types which can be safely cast to ApplicationWindow
, for instance with toApplicationWindow
.
Instances
(GObject o, IsDescendantOf ApplicationWindow o) => IsApplicationWindow o Source # | |
Defined in GI.Adw.Objects.ApplicationWindow |
toApplicationWindow :: (MonadIO m, IsApplicationWindow o) => o -> m ApplicationWindow Source #
Cast to ApplicationWindow
, 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
actionAdded, actionEnabledChanged, actionRemoved, actionSetEnabled, actionStateChanged, activate, activateAction, activateDefault, addAction, addActionEntries, addController, addCssClass, addMnemonicLabel, addTickCallback, allocate, bindProperty, bindPropertyFull, changeActionState, childFocus, close, computeBounds, computeExpand, computePoint, computeTransform, contains, createPangoContext, createPangoLayout, destroy, disposeTemplate, dragCheckThreshold, errorBell, forceFloating, freezeNotify, fullscreen, fullscreenOnMonitor, getv, grabFocus, hasAction, hasCssClass, hasDefault, hasFocus, hasGroup, hasVisibleFocus, hide, inDestruction, initTemplate, insertActionGroup, insertAfter, insertBefore, isActive, isAncestor, isDrawable, isFloating, isFocus, isFullscreen, isMaximized, isSensitive, isVisible, keynavFailed, listActions, listMnemonicLabels, lookupAction, map, maximize, measure, minimize, mnemonicActivate, notify, notifyByPspec, observeChildren, observeControllers, pick, present, presentWithTime, queryAction, queueAllocate, queueDraw, queueResize, realize, ref, refSink, removeAction, 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, getActionEnabled, getActionParameterType, getActionState, getActionStateHint, getActionStateType, getAllocatedBaseline, getAllocatedHeight, getAllocatedWidth, getAllocation, getAncestor, getApplication, getBuildableId, getCanFocus, 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, getHelpOverlay, getHexpand, getHexpandSet, getHideOnClose, getIconName, getId, 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, getSensitive, getSettings, getShowMenubar, getSize, getSizeRequest, getStateFlags, getStyleContext, getSurface, getSurfaceTransform, getTemplateChild, getTitle, getTitlebar, getTooltipMarkup, getTooltipText, getTransientFor, getValign, getVexpand, getVexpandSet, getVisible, getWidth.
Setters
setApplication, setCanFocus, 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, setHelpOverlay, setHexpand, setHexpandSet, setHideOnClose, setIconName, setLayoutManager, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setMnemonicsVisible, setModal, setName, setOpacity, setOverflow, setParent, setProperty, setReceivesDefault, setResizable, setSensitive, setShowMenubar, setSizeRequest, setStartupId, setStateFlags, setTitle, setTitlebar, setTooltipMarkup, setTooltipText, setTransientFor, setValign, setVexpand, setVexpandSet, setVisible.
getContent
applicationWindowGetContent Source #
:: (HasCallStack, MonadIO m, IsApplicationWindow a) | |
=> a |
|
-> m (Maybe Widget) | Returns: the content widget of |
Gets the content widget of self
.
This method should always be used instead of windowGetChild
.
Since: 1.0
new
:: (HasCallStack, MonadIO m, IsApplication a) | |
=> a |
|
-> m ApplicationWindow | Returns: the newly created |
Creates a new AdwApplicationWindow
for app
.
Since: 1.0
setContent
applicationWindowSetContent Source #
:: (HasCallStack, MonadIO m, IsApplicationWindow a, IsWidget b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Sets the content widget of self
.
This method should always be used instead of windowSetChild
.
Since: 1.0
Properties
content
clearApplicationWindowContent :: (MonadIO m, IsApplicationWindow o) => o -> m () Source #
Set the value of the “content
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#content
constructApplicationWindowContent :: (IsApplicationWindow o, MonadIO m, IsWidget a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “content
” property. This is rarely needed directly, but it is used by new
.
getApplicationWindowContent :: (MonadIO m, IsApplicationWindow o) => o -> m (Maybe Widget) Source #
Get the value of the “content
” property.
When overloading is enabled, this is equivalent to
get
applicationWindow #content
setApplicationWindowContent :: (MonadIO m, IsApplicationWindow o, IsWidget a) => o -> a -> m () Source #
Set the value of the “content
” property.
When overloading is enabled, this is equivalent to
set
applicationWindow [ #content:=
value ]