gi-adwaita-1.0.3: 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.Bin

Description

A widget with one child.

<picture> <source srcset="bin-dark.png" media="(prefers-color-scheme: dark)"> <img src="bin.png" alt="bin"> </picture>

The AdwBin widget has only one child, set with the [propertybin:child] property.

It is useful for deriving subclasses, since it provides common code needed for handling a single child widget.

Since: 1.0

Synopsis

Exported types

newtype Bin Source #

Memory-managed wrapper type.

Constructors

Bin (ManagedPtr Bin) 

Instances

Instances details
Eq Bin Source # 
Instance details

Defined in GI.Adw.Objects.Bin

Methods

(==) :: Bin -> Bin -> Bool #

(/=) :: Bin -> Bin -> Bool #

GObject Bin Source # 
Instance details

Defined in GI.Adw.Objects.Bin

ManagedPtrNewtype Bin Source # 
Instance details

Defined in GI.Adw.Objects.Bin

Methods

toManagedPtr :: Bin -> ManagedPtr Bin

TypedObject Bin Source # 
Instance details

Defined in GI.Adw.Objects.Bin

Methods

glibType :: IO GType

HasParentTypes Bin Source # 
Instance details

Defined in GI.Adw.Objects.Bin

IsGValue (Maybe Bin) Source #

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

Instance details

Defined in GI.Adw.Objects.Bin

Methods

gvalueGType_ :: IO GType

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

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

type ParentTypes Bin Source # 
Instance details

Defined in GI.Adw.Objects.Bin

type ParentTypes Bin = '[Widget, Object, Accessible, Buildable, ConstraintTarget]

class (GObject o, IsDescendantOf Bin o) => IsBin o Source #

Type class for types which can be safely cast to Bin, for instance with toBin.

Instances

Instances details
(GObject o, IsDescendantOf Bin o) => IsBin o Source # 
Instance details

Defined in GI.Adw.Objects.Bin

toBin :: (MonadIO m, IsBin o) => o -> m Bin Source #

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

actionSetEnabled, activate, activateAction, activateDefault, addController, addCssClass, addMnemonicLabel, addTickCallback, allocate, bindProperty, bindPropertyFull, childFocus, computeBounds, computeExpand, computePoint, computeTransform, contains, createPangoContext, createPangoLayout, disposeTemplate, dragCheckThreshold, errorBell, forceFloating, freezeNotify, getv, grabFocus, hasCssClass, hasDefault, hasFocus, hasVisibleFocus, hide, inDestruction, initTemplate, insertActionGroup, insertAfter, insertBefore, isAncestor, isDrawable, isFloating, isFocus, isSensitive, isVisible, keynavFailed, listMnemonicLabels, map, measure, mnemonicActivate, notify, notifyByPspec, observeChildren, observeControllers, pick, queueAllocate, queueDraw, queueResize, realize, ref, refSink, removeController, removeCssClass, removeMnemonicLabel, removeTickCallback, resetProperty, resetRelation, resetState, runDispose, shouldLayout, show, sizeAllocate, snapshotChild, stealData, stealQdata, thawNotify, translateCoordinates, triggerTooltipQuery, unmap, unparent, unrealize, unref, unsetStateFlags, updateProperty, updateRelation, updateState, watchClosure.

Getters

getAccessibleRole, getAllocatedBaseline, getAllocatedHeight, getAllocatedWidth, getAllocation, getAncestor, getBuildableId, getCanFocus, getCanTarget, getChild, getChildVisible, getClipboard, getCssClasses, getCssName, getCursor, getData, getDirection, getDisplay, getFirstChild, getFocusChild, getFocusOnClick, getFocusable, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHeight, getHexpand, getHexpandSet, getLastChild, getLayoutManager, getMapped, getMarginBottom, getMarginEnd, getMarginStart, getMarginTop, getName, getNative, getNextSibling, getOpacity, getOverflow, getPangoContext, getParent, getPreferredSize, getPrevSibling, getPrimaryClipboard, getProperty, getQdata, getRealized, getReceivesDefault, getRequestMode, getRoot, getScaleFactor, getSensitive, getSettings, getSize, getSizeRequest, getStateFlags, getStyleContext, getTemplateChild, getTooltipMarkup, getTooltipText, getValign, getVexpand, getVexpandSet, getVisible, getWidth.

Setters

setCanFocus, setCanTarget, setChild, setChildVisible, setCssClasses, setCursor, setCursorFromName, setData, setDataFull, setDirection, setFocusChild, setFocusOnClick, setFocusable, setFontMap, setFontOptions, setHalign, setHasTooltip, setHexpand, setHexpandSet, setLayoutManager, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setOpacity, setOverflow, setParent, setProperty, setReceivesDefault, setSensitive, setSizeRequest, setStateFlags, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible.

getChild

binGetChild Source #

Arguments

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

self: a bin

-> m (Maybe Widget)

Returns: the child widget of self

Gets the child widget of self.

Since: 1.0

new

binNew Source #

Arguments

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

Returns: the new created AdwBin

Creates a new AdwBin.

Since: 1.0

setChild

binSetChild Source #

Arguments

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

self: a bin

-> Maybe b

child: the child widget

-> m () 

Sets the child widget of self.

Since: 1.0

Properties

child

The child widget of the AdwBin.

Since: 1.0

clearBinChild :: (MonadIO m, IsBin o) => o -> m () Source #

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

clear #child

constructBinChild :: (IsBin 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.

getBinChild :: (MonadIO m, IsBin o) => o -> m (Maybe Widget) Source #

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

get bin #child

setBinChild :: (MonadIO m, IsBin o, IsWidget a) => o -> a -> m () Source #

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

set bin [ #child := value ]