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.SqueezerPage

Description

An auxiliary class used by [classsqueezer].

Synopsis

Exported types

newtype SqueezerPage Source #

Memory-managed wrapper type.

Constructors

SqueezerPage (ManagedPtr SqueezerPage) 

Instances

Instances details
Eq SqueezerPage Source # 
Instance details

Defined in GI.Adw.Objects.SqueezerPage

GObject SqueezerPage Source # 
Instance details

Defined in GI.Adw.Objects.SqueezerPage

ManagedPtrNewtype SqueezerPage Source # 
Instance details

Defined in GI.Adw.Objects.SqueezerPage

Methods

toManagedPtr :: SqueezerPage -> ManagedPtr SqueezerPage

TypedObject SqueezerPage Source # 
Instance details

Defined in GI.Adw.Objects.SqueezerPage

Methods

glibType :: IO GType

HasParentTypes SqueezerPage Source # 
Instance details

Defined in GI.Adw.Objects.SqueezerPage

IsGValue (Maybe SqueezerPage) Source #

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

Instance details

Defined in GI.Adw.Objects.SqueezerPage

Methods

gvalueGType_ :: IO GType

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

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

type ParentTypes SqueezerPage Source # 
Instance details

Defined in GI.Adw.Objects.SqueezerPage

type ParentTypes SqueezerPage = '[Object]

class (GObject o, IsDescendantOf SqueezerPage o) => IsSqueezerPage o Source #

Type class for types which can be safely cast to SqueezerPage, for instance with toSqueezerPage.

Instances

Instances details
(GObject o, IsDescendantOf SqueezerPage o) => IsSqueezerPage o Source # 
Instance details

Defined in GI.Adw.Objects.SqueezerPage

toSqueezerPage :: (MonadIO m, IsSqueezerPage o) => o -> m SqueezerPage Source #

Cast to SqueezerPage, for types for which this is known to be safe. For general casts, use castTo.

Methods

getChild

squeezerPageGetChild Source #

Arguments

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

self: a squeezer page

-> m Widget

Returns: the child to which self belongs

Deprecated: (Since version 1.4)See the migration guide

Returns the squeezer child to which self belongs.

getEnabled

squeezerPageGetEnabled Source #

Arguments

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

self: a squeezer page

-> m Bool

Returns: whether self is enabled

Deprecated: (Since version 1.4)See the migration guide

Gets whether self is enabled.

setEnabled

squeezerPageSetEnabled Source #

Arguments

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

self: a squeezer page

-> Bool

enabled: whether self is enabled

-> m () 

Deprecated: (Since version 1.4)See the migration guide

Sets whether self is enabled.

If a child is disabled, it will be ignored when looking for the child fitting the available size best.

This allows to programmatically and prematurely hide a child even if it fits in the available space.

This can be used e.g. to ensure a certain child is hidden below a certain window width, or any other constraint you find suitable.

Properties

child

The the squeezer child to which the page belongs.

constructSqueezerPageChild :: (IsSqueezerPage o, MonadIO m, IsWidget a) => a -> m (GValueConstruct o) Source #

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

getSqueezerPageChild :: (MonadIO m, IsSqueezerPage o) => o -> m Widget Source #

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

get squeezerPage #child

enabled

Whether the child is enabled.

If a child is disabled, it will be ignored when looking for the child fitting the available size best.

This allows to programmatically and prematurely hide a child even if it fits in the available space.

This can be used e.g. to ensure a certain child is hidden below a certain window width, or any other constraint you find suitable.

constructSqueezerPageEnabled :: (IsSqueezerPage o, MonadIO m) => Bool -> m (GValueConstruct o) Source #

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

getSqueezerPageEnabled :: (MonadIO m, IsSqueezerPage o) => o -> m Bool Source #

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

get squeezerPage #enabled

setSqueezerPageEnabled :: (MonadIO m, IsSqueezerPage o) => o -> Bool -> m () Source #

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

set squeezerPage [ #enabled := value ]