gi-dazzle-1.0.2: libdazzle bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Dazzle.Objects.CenteringBin

Description

First off, you probably want to use GtkBox with a center widget instead of this widget. However, the case where this widget is useful is when you cannot control your layout within the width of the toplevel, but still want your child centered within the toplevel.

This is done by translating coordinates of the widget with respect to the toplevel and anchoring the child at TRUE_CENTER-(alloc.width/2).

Synopsis

Exported types

newtype CenteringBin Source #

Memory-managed wrapper type.

Constructors

CenteringBin (ManagedPtr CenteringBin) 

Instances

Instances details
Eq CenteringBin Source # 
Instance details

Defined in GI.Dazzle.Objects.CenteringBin

GObject CenteringBin Source # 
Instance details

Defined in GI.Dazzle.Objects.CenteringBin

ManagedPtrNewtype CenteringBin Source # 
Instance details

Defined in GI.Dazzle.Objects.CenteringBin

Methods

toManagedPtr :: CenteringBin -> ManagedPtr CenteringBin

TypedObject CenteringBin Source # 
Instance details

Defined in GI.Dazzle.Objects.CenteringBin

Methods

glibType :: IO GType

HasParentTypes CenteringBin Source # 
Instance details

Defined in GI.Dazzle.Objects.CenteringBin

IsGValue (Maybe CenteringBin) Source #

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

Instance details

Defined in GI.Dazzle.Objects.CenteringBin

Methods

gvalueGType_ :: IO GType

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

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

type ParentTypes CenteringBin Source # 
Instance details

Defined in GI.Dazzle.Objects.CenteringBin

type ParentTypes CenteringBin = '[Bin, Container, Widget, Object, ImplementorIface, Buildable]

class (GObject o, IsDescendantOf CenteringBin o) => IsCenteringBin o Source #

Type class for types which can be safely cast to CenteringBin, for instance with toCenteringBin.

Instances

Instances details
(GObject o, IsDescendantOf CenteringBin o) => IsCenteringBin o Source # 
Instance details

Defined in GI.Dazzle.Objects.CenteringBin

toCenteringBin :: (MonadIO m, IsCenteringBin o) => o -> m CenteringBin Source #

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

activate, add, addAccelerator, addChild, addDeviceEvents, addEvents, addMnemonicLabel, addTickCallback, bindProperty, bindPropertyFull, canActivateAccel, checkResize, childFocus, childGetProperty, childNotify, childNotifyByPspec, childSetProperty, childType, classPath, computeExpand, constructChild, createPangoContext, createPangoLayout, customFinished, customTagEnd, customTagStart, destroy, destroyed, deviceIsShadowed, dragBegin, dragBeginWithCoordinates, dragCheckThreshold, dragDestAddImageTargets, dragDestAddTextTargets, dragDestAddUriTargets, dragDestFindTarget, dragDestGetTargetList, dragDestGetTrackMotion, dragDestSet, dragDestSetProxy, dragDestSetTargetList, dragDestSetTrackMotion, dragDestUnset, dragGetData, dragHighlight, dragSourceAddImageTargets, dragSourceAddTextTargets, dragSourceAddUriTargets, dragSourceGetTargetList, dragSourceSet, dragSourceSetIconGicon, dragSourceSetIconName, dragSourceSetIconPixbuf, dragSourceSetIconStock, dragSourceSetTargetList, dragSourceUnset, dragUnhighlight, draw, ensureStyle, errorBell, event, forall, forceFloating, foreach, freezeChildNotify, freezeNotify, getv, grabAdd, grabDefault, grabFocus, grabRemove, hasDefault, hasFocus, hasGrab, hasRcStyle, hasScreen, hasVisibleFocus, hide, hideOnDelete, inDestruction, initTemplate, inputShapeCombineRegion, insertActionGroup, intersect, isAncestor, isComposited, isDrawable, isFloating, isFocus, isSensitive, isToplevel, isVisible, keynavFailed, listAccelClosures, listActionPrefixes, listMnemonicLabels, map, mnemonicActivate, modifyBase, modifyBg, modifyCursor, modifyFg, modifyFont, modifyStyle, modifyText, notify, notifyByPspec, overrideBackgroundColor, overrideColor, overrideCursor, overrideFont, overrideSymbolicColor, parserFinished, path, propagateDraw, queueAllocate, queueComputeExpand, queueDraw, queueDrawArea, queueDrawRegion, queueResize, queueResizeNoRedraw, realize, ref, refSink, regionIntersect, registerWindow, remove, removeAccelerator, removeMnemonicLabel, removeTickCallback, renderIcon, renderIconPixbuf, reparent, resetRcStyles, resetStyle, resizeChildren, runDispose, sendExpose, sendFocusChange, shapeCombineRegion, show, showAll, showNow, sizeAllocate, sizeAllocateWithBaseline, sizeRequest, stealData, stealQdata, styleAttach, styleGetProperty, thawChildNotify, thawNotify, translateCoordinates, triggerTooltipQuery, unmap, unparent, unrealize, unref, unregisterWindow, unsetFocusChain, unsetStateFlags, watchClosure.

Getters

getAccessible, getActionGroup, getAllocatedBaseline, getAllocatedHeight, getAllocatedSize, getAllocatedWidth, getAllocation, getAncestor, getAppPaintable, getBorderWidth, getCanDefault, getCanFocus, getChild, getChildRequisition, getChildVisible, getChildren, getClip, getClipboard, getCompositeName, getData, getDeviceEnabled, getDeviceEvents, getDirection, getDisplay, getDoubleBuffered, getEvents, getFocusChain, getFocusChild, getFocusHadjustment, getFocusOnClick, getFocusVadjustment, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHasWindow, getHexpand, getHexpandSet, getInternalChild, getMapped, getMarginBottom, getMarginEnd, getMarginLeft, getMarginRight, getMarginStart, getMarginTop, getModifierMask, getModifierStyle, getName, getNoShowAll, getOpacity, getPangoContext, getParent, getParentWindow, getPath, getPathForChild, getPointer, getPreferredHeight, getPreferredHeightAndBaselineForWidth, getPreferredHeightForWidth, getPreferredSize, getPreferredWidth, getPreferredWidthForHeight, getProperty, getQdata, getRealized, getReceivesDefault, getRequestMode, getRequisition, getResizeMode, getRootWindow, getScaleFactor, getScreen, getSensitive, getSettings, getSizeRequest, getState, getStateFlags, getStyle, getStyleContext, getSupportMultidevice, getTemplateChild, getTooltipMarkup, getTooltipText, getTooltipWindow, getToplevel, getValign, getValignWithBaseline, getVexpand, getVexpandSet, getVisible, getVisual, getWindow.

Setters

setAccelPath, setAllocation, setAppPaintable, setBorderWidth, setBuildableProperty, setCanDefault, setCanFocus, setChildVisible, setClip, setCompositeName, setData, setDataFull, setDeviceEnabled, setDeviceEvents, setDirection, setDoubleBuffered, setEvents, setFocusChain, setFocusChild, setFocusHadjustment, setFocusOnClick, setFocusVadjustment, setFontMap, setFontOptions, setHalign, setHasTooltip, setHasWindow, setHexpand, setHexpandSet, setMapped, setMarginBottom, setMarginEnd, setMarginLeft, setMarginRight, setMarginStart, setMarginTop, setName, setNoShowAll, setOpacity, setParent, setParentWindow, setProperty, setRealized, setReallocateRedraws, setReceivesDefault, setRedrawOnAllocate, setResizeMode, setSensitive, setSizeRequest, setState, setStateFlags, setStyle, setSupportMultidevice, setTooltipMarkup, setTooltipText, setTooltipWindow, setValign, setVexpand, setVexpandSet, setVisible, setVisual, setWindow.

new

centeringBinNew :: (HasCallStack, MonadIO m) => m CenteringBin Source #

No description available in the introspection data.

Properties

maxWidthRequest

No description available in the introspection data.

constructCenteringBinMaxWidthRequest :: (IsCenteringBin o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #

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

getCenteringBinMaxWidthRequest :: (MonadIO m, IsCenteringBin o) => o -> m Int32 Source #

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

get centeringBin #maxWidthRequest

setCenteringBinMaxWidthRequest :: (MonadIO m, IsCenteringBin o) => o -> Int32 -> m () Source #

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

set centeringBin [ #maxWidthRequest := value ]