gi-gdk-4.0.2: Gdk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gdk.Structs.ToplevelLayout

Description

Toplevel surfaces are sovereign windows that can be presented to the user in various states (maximized, on all workspaces, etc).

The GdkToplevelLayout struct contains information that is necessary to do so, and is passed to toplevelPresent.

Synopsis

Exported types

Methods

Overloaded methods

copy

toplevelLayoutCopy Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ToplevelLayout

layout: a ToplevelLayout

-> m ToplevelLayout

Returns: a copy of layout.

Create a new ToplevelLayout and copy the contents of layout into it.

equal

toplevelLayoutEqual Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ToplevelLayout

layout: a ToplevelLayout

-> ToplevelLayout

other: another ToplevelLayout

-> m Bool

Returns: True if layout and other have identical layout properties, otherwise False.

Check whether layout and other has identical layout properties.

getFullscreen

toplevelLayoutGetFullscreen Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ToplevelLayout

layout: a ToplevelLayout

-> m Bool

Returns: True if layout is fullscreen

Returns whether the layout should cause the surface to be fullscreen when presented.

getFullscreenMonitor

toplevelLayoutGetFullscreenMonitor Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ToplevelLayout

layout: a ToplevelLayout

-> m (Maybe Monitor)

Returns: the monitor on which layout fullscreens

Returns the monitor that the layout is fullscreening the surface on.

getMaximized

toplevelLayoutGetMaximized Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ToplevelLayout

layout: a ToplevelLayout

-> m Bool

Returns: True if the layout is maximized

Returns whether the layout should present the surface as maximized.

getMinHeight

toplevelLayoutGetMinHeight Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ToplevelLayout

layout: a ToplevelLayout

-> m Int32

Returns: the minimum height of layout

Returns the minimum height of the given layout.

getMinWidth

toplevelLayoutGetMinWidth Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ToplevelLayout

layout: a ToplevelLayout

-> m Int32

Returns: the minimum width of layout

Returns the minimum width of the given layout.

getResizable

toplevelLayoutGetResizable Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ToplevelLayout

layout: a ToplevelLayout

-> m Bool

Returns: True if the layout is resizable

Returns whether the layout should allow the user to resize the surface.

new

toplevelLayoutNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Int32

minWidth: the minimum width for the layout

-> Int32

minHeight: the minimum height for the layout

-> m ToplevelLayout

Returns: newly created instance of ToplevelLayout

Create a toplevel layout description.

Used together with toplevelPresent to describe how a toplevel surface should be placed and behave on-screen.

The size is in ”application pixels”, not ”device pixels” (see surfaceGetScaleFactor).

ref

toplevelLayoutRef Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ToplevelLayout

layout: a ToplevelLayout

-> m ToplevelLayout

Returns: the same layout

Increases the reference count of layout.

setFullscreen

toplevelLayoutSetFullscreen Source #

Arguments

:: (HasCallStack, MonadIO m, IsMonitor a) 
=> ToplevelLayout

layout: a ToplevelLayout

-> Bool

fullscreen: True to fullscreen the surface

-> Maybe a

monitor: the monitor to fullscreen on

-> m () 

Sets whether the layout should cause the surface to be fullscreen when presented.

setMaximized

toplevelLayoutSetMaximized Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ToplevelLayout

layout: a ToplevelLayout

-> Bool

maximized: True to maximize

-> m () 

Sets whether the layout should cause the surface to be maximized when presented.

setResizable

toplevelLayoutSetResizable Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ToplevelLayout

layout: a ToplevelLayout

-> Bool

resizable: True to allow resizing

-> m () 

Sets whether the layout should allow the user to resize the surface after it has been presented.

unref

toplevelLayoutUnref Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ToplevelLayout

layout: a ToplevelLayout

-> m () 

Decreases the reference count of layout.