gi-adwaita-1.0.7: 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.ApplicationWindow

Description

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.

Example of an AdwApplicationWindow UI definition:

xml code

<object class="AdwApplicationWindow">
  <property name="content">
    <object class="AdwToolbarView">
      <child type="top">
        <object class="AdwHeaderBar"/>
      </child>
      <property name="content">
        <!-- ... -->
      </property>
    </object>
  </property>
</object>

Using Application:menubar is not supported and may result in visual glitches.

Synopsis

Exported types

newtype ApplicationWindow Source #

Memory-managed wrapper type.

Constructors

ApplicationWindow (ManagedPtr ApplicationWindow) 

Instances

Instances details
Eq ApplicationWindow Source # 
Instance details

Defined in GI.Adw.Objects.ApplicationWindow

GObject ApplicationWindow Source # 
Instance details

Defined in GI.Adw.Objects.ApplicationWindow

ManagedPtrNewtype ApplicationWindow Source # 
Instance details

Defined in GI.Adw.Objects.ApplicationWindow

TypedObject ApplicationWindow Source # 
Instance details

Defined in GI.Adw.Objects.ApplicationWindow

Methods

glibType :: IO GType

HasParentTypes ApplicationWindow Source # 
Instance details

Defined in GI.Adw.Objects.ApplicationWindow

IsGValue (Maybe ApplicationWindow) Source #

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

Instance details

Defined in GI.Adw.Objects.ApplicationWindow

Methods

gvalueGType_ :: IO GType

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

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

type ParentTypes ApplicationWindow Source # 
Instance details

Defined in GI.Adw.Objects.ApplicationWindow

type ParentTypes ApplicationWindow = '[ApplicationWindow, Window, Widget, Object, ActionGroup, ActionMap, Accessible, Buildable, ConstraintTarget, Native, Root, ShortcutManager]

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

Instances details
(GObject o, IsDescendantOf ApplicationWindow o) => IsApplicationWindow o Source # 
Instance details

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

Expand

Methods

actionAdded, actionEnabledChanged, actionRemoved, actionSetEnabled, actionStateChanged, activate, activateAction, activateDefault, addAction, addActionEntries, addBreakpoint, addController, addCssClass, addMnemonicLabel, addTickCallback, allocate, announce, 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, isSuspended, 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, removeActionEntries, 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, updateNextAccessibleSibling, updateProperty, updateRelation, updateState, watchClosure.

Getters

getAccessibleParent, getAccessibleRole, getActionEnabled, getActionParameterType, getActionState, getActionStateHint, getActionStateType, getAllocatedBaseline, getAllocatedHeight, getAllocatedWidth, getAllocation, getAncestor, getApplication, getAtContext, getBaseline, getBounds, getBuildableId, getCanFocus, getCanTarget, getChild, getChildVisible, getClipboard, getColor, getContent, getCssClasses, getCssName, getCurrentBreakpoint, getCursor, getData, getDecorated, getDefaultSize, getDefaultWidget, getDeletable, getDestroyWithParent, getDialogs, getDirection, getDisplay, getFirstAccessibleChild, 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, getNextAccessibleSibling, getNextSibling, getOpacity, getOverflow, getPangoContext, getParent, getPlatformState, 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, getVisibleDialog, getWidth.

Setters

setAccessibleParent, 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.

addBreakpoint

applicationWindowAddBreakpoint Source #

Arguments

:: (HasCallStack, MonadIO m, IsApplicationWindow a, IsBreakpoint b) 
=> a

self: an application window

-> b

breakpoint: the breakpoint to add

-> m () 

Adds breakpoint to self.

Since: 1.4

getContent

applicationWindowGetContent Source #

Arguments

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

self: an application window

-> m (Maybe Widget)

Returns: the content widget of self

Gets the content widget of self.

This method should always be used instead of windowGetChild.

getCurrentBreakpoint

applicationWindowGetCurrentBreakpoint Source #

Arguments

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

self: an application window

-> m (Maybe Breakpoint)

Returns: the current breakpoint

Gets the current breakpoint.

Since: 1.4

getDialogs

applicationWindowGetDialogs Source #

Arguments

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

self: an application window

-> m ListModel

Returns: a list model for the dialogs of self

Returns a ListModel that contains the open dialogs of self.

This can be used to keep an up-to-date view.

Since: 1.5

getVisibleDialog

applicationWindowGetVisibleDialog Source #

Arguments

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

self: an application window

-> m (Maybe Dialog)

Returns: the visible dialog

Returns the currently visible dialog in self, if there's one.

Since: 1.5

new

applicationWindowNew Source #

Arguments

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

app: an application instance

-> m ApplicationWindow

Returns: the newly created AdwApplicationWindow

Creates a new AdwApplicationWindow for app.

setContent

applicationWindowSetContent Source #

Arguments

:: (HasCallStack, MonadIO m, IsApplicationWindow a, IsWidget b) 
=> a

self: an application window

-> Maybe b

content: the content widget

-> m () 

Sets the content widget of self.

This method should always be used instead of windowSetChild.

Properties

content

The content widget.

This property should always be used instead of Window:child.

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 ]

currentBreakpoint

The current breakpoint.

Since: 1.4

getApplicationWindowCurrentBreakpoint :: (MonadIO m, IsApplicationWindow o) => o -> m (Maybe Breakpoint) Source #

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

get applicationWindow #currentBreakpoint

dialogs

The open dialogs.

Since: 1.5

getApplicationWindowDialogs :: (MonadIO m, IsApplicationWindow o) => o -> m (Maybe ListModel) Source #

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

get applicationWindow #dialogs

visibleDialog

The currently visible dialog

Since: 1.5

getApplicationWindowVisibleDialog :: (MonadIO m, IsApplicationWindow o) => o -> m (Maybe Dialog) Source #

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

get applicationWindow #visibleDialog