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 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.
Synopsis
- newtype Bin = Bin (ManagedPtr Bin)
- class (GObject o, IsDescendantOf Bin o) => IsBin o
- toBin :: (MonadIO m, IsBin o) => o -> m Bin
- binGetChild :: (HasCallStack, MonadIO m, IsBin a) => a -> m (Maybe Widget)
- binNew :: (HasCallStack, MonadIO m) => m Bin
- binSetChild :: (HasCallStack, MonadIO m, IsBin a, IsWidget b) => a -> Maybe b -> m ()
- clearBinChild :: (MonadIO m, IsBin o) => o -> m ()
- constructBinChild :: (IsBin o, MonadIO m, IsWidget a) => a -> m (GValueConstruct o)
- getBinChild :: (MonadIO m, IsBin o) => o -> m (Maybe Widget)
- setBinChild :: (MonadIO m, IsBin o, IsWidget a) => o -> a -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq Bin Source # | |
GObject Bin Source # | |
Defined in GI.Adw.Objects.Bin | |
ManagedPtrNewtype Bin Source # | |
Defined in GI.Adw.Objects.Bin toManagedPtr :: Bin -> ManagedPtr Bin | |
TypedObject Bin Source # | |
Defined in GI.Adw.Objects.Bin | |
HasParentTypes Bin Source # | |
Defined in GI.Adw.Objects.Bin | |
IsGValue (Maybe Bin) Source # | Convert |
Defined in GI.Adw.Objects.Bin gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Bin -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Bin) | |
type ParentTypes Bin Source # | |
Defined in GI.Adw.Objects.Bin type ParentTypes Bin = '[Widget, Object, Accessible, Buildable, ConstraintTarget] |
class (GObject o, IsDescendantOf Bin o) => IsBin o Source #
Instances
(GObject o, IsDescendantOf Bin o) => IsBin o Source # | |
Defined in GI.Adw.Objects.Bin |
Methods
Click to display all available methods, including inherited ones
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, updateNextAccessibleSibling, updateProperty, updateRelation, updateState, watchClosure.
Getters
getAccessibleParent, getAccessibleRole, getAllocatedBaseline, getAllocatedHeight, getAllocatedWidth, getAllocation, getAncestor, getAtContext, getBounds, getBuildableId, getCanFocus, getCanTarget, getChild, getChildVisible, getClipboard, getColor, getCssClasses, getCssName, getCursor, getData, getDirection, getDisplay, getFirstAccessibleChild, getFirstChild, getFocusChild, getFocusOnClick, getFocusable, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHeight, getHexpand, getHexpandSet, getLastChild, getLayoutManager, getMapped, getMarginBottom, getMarginEnd, getMarginStart, getMarginTop, getName, getNative, getNextAccessibleSibling, getNextSibling, getOpacity, getOverflow, getPangoContext, getParent, getPlatformState, 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
setAccessibleParent, 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
:: (HasCallStack, MonadIO m, IsBin a) | |
=> a |
|
-> m (Maybe Widget) | Returns: the child widget of |
Gets the child widget of self
.
new
:: (HasCallStack, MonadIO m) | |
=> m Bin | Returns: the new created |
Creates a new AdwBin
.
setChild
:: (HasCallStack, MonadIO m, IsBin a, IsWidget b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Sets the child widget of self
.
Properties
child
The child widget of the AdwBin
.
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 ]