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.
The AdwBin
widget has only one child, set with the Bin:child
property.
It is useful for deriving subclasses, since it provides common code needed for handling a single child widget.
Since: 1.0
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.
Bin (ManagedPtr Bin) |
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 | |
type ParentTypes Bin Source # | |
Defined in GI.Adw.Objects.Bin |
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, 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
:: (HasCallStack, MonadIO m, IsBin a) | |
=> a |
|
-> m (Maybe Widget) | Returns: the child widget of |
Gets the child widget of self
.
Since: 1.0
new
:: (HasCallStack, MonadIO m) | |
=> m Bin | Returns: the new created |
Creates a new AdwBin
.
Since: 1.0
setChild
:: (HasCallStack, MonadIO m, IsBin a, IsWidget b) | |
=> a |
|
-> Maybe b |
|
-> 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 ]