gi-handy-1.0.1: libhandy bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Handy.Objects.Clamp

Description

No description available in the introspection data.

Synopsis

Exported types

newtype Clamp Source #

Memory-managed wrapper type.

Constructors

Clamp (ManagedPtr Clamp) 

Instances

Instances details
Eq Clamp Source # 
Instance details

Defined in GI.Handy.Objects.Clamp

Methods

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

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

GObject Clamp Source # 
Instance details

Defined in GI.Handy.Objects.Clamp

ManagedPtrNewtype Clamp Source # 
Instance details

Defined in GI.Handy.Objects.Clamp

TypedObject Clamp Source # 
Instance details

Defined in GI.Handy.Objects.Clamp

Methods

glibType :: IO GType #

HasParentTypes Clamp Source # 
Instance details

Defined in GI.Handy.Objects.Clamp

IsGValue (Maybe Clamp) Source #

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

Instance details

Defined in GI.Handy.Objects.Clamp

type ParentTypes Clamp Source # 
Instance details

Defined in GI.Handy.Objects.Clamp

class (GObject o, IsDescendantOf Clamp o) => IsClamp o Source #

Type class for types which can be safely cast to Clamp, for instance with toClamp.

Instances

Instances details
(GObject o, IsDescendantOf Clamp o) => IsClamp o Source # 
Instance details

Defined in GI.Handy.Objects.Clamp

toClamp :: (MonadIO m, IsClamp o) => o -> m Clamp Source #

Cast to Clamp, 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, getMaximumSize, getModifierMask, getModifierStyle, getName, getNoShowAll, getOpacity, getOrientation, 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, getTighteningThreshold, 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, setMaximumSize, setName, setNoShowAll, setOpacity, setOrientation, setParent, setParentWindow, setProperty, setRealized, setReallocateRedraws, setReceivesDefault, setRedrawOnAllocate, setResizeMode, setSensitive, setSizeRequest, setState, setStateFlags, setStyle, setSupportMultidevice, setTighteningThreshold, setTooltipMarkup, setTooltipText, setTooltipWindow, setValign, setVexpand, setVexpandSet, setVisible, setVisual, setWindow.

getMaximumSize

clampGetMaximumSize Source #

Arguments

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

self: a Clamp

-> m Int32

Returns: the maximum size to allocate to the contained child.

Gets the maximum size to allocate to the contained child. It is the width if self is horizontal, or the height if it is vertical.

Since: 1.0

getTighteningThreshold

clampGetTighteningThreshold Source #

Arguments

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

self: a Clamp

-> m Int32

Returns: the size starting from which the clamp will tighten its grip on the child.

Gets the size starting from which the clamp will tighten its grip on the child.

Since: 1.0

new

clampNew Source #

Arguments

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

Returns: a new Clamp

Creates a new Clamp.

Since: 1.0

setMaximumSize

clampSetMaximumSize Source #

Arguments

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

self: a Clamp

-> Int32

maximumSize: the maximum size

-> m () 

Sets the maximum size to allocate to the contained child. It is the width if self is horizontal, or the height if it is vertical.

Since: 1.0

setTighteningThreshold

clampSetTighteningThreshold Source #

Arguments

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

self: a Clamp

-> Int32

tighteningThreshold: the tightening threshold

-> m () 

Sets the size starting from which the clamp will tighten its grip on the child.

Since: 1.0

Properties

maximumSize

The maximum size to allocate to the child. It is the width if the clamp is horizontal, or the height if it is vertical.

Since: 1.0

constructClampMaximumSize :: (IsClamp o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #

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

getClampMaximumSize :: (MonadIO m, IsClamp o) => o -> m Int32 Source #

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

get clamp #maximumSize

setClampMaximumSize :: (MonadIO m, IsClamp o) => o -> Int32 -> m () Source #

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

set clamp [ #maximumSize := value ]

tighteningThreshold

The size starting from which the clamp will tighten its grip on the child, slowly allocating less and less of the available size up to the maximum allocated size. Below that threshold and below the maximum width, the child will be allocated all the available size.

If the threshold is greater than the maximum size to allocate to the child, the child will be allocated all the width up to the maximum. If the threshold is lower than the minimum size to allocate to the child, that size will be used as the tightening threshold.

Effectively, tightening the grip on the child before it reaches its maximum size makes transitions to and from the maximum size smoother when resizing.

Since: 1.0

constructClampTighteningThreshold :: (IsClamp o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #

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

getClampTighteningThreshold :: (MonadIO m, IsClamp o) => o -> m Int32 Source #

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

get clamp #tighteningThreshold

setClampTighteningThreshold :: (MonadIO m, IsClamp o) => o -> Int32 -> m () Source #

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

set clamp [ #tighteningThreshold := value ]