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 |
GI.Dazzle.Interfaces.DockItem
Description
No description available in the introspection data.
Synopsis
- newtype DockItem = DockItem (ManagedPtr DockItem)
- class (GObject o, IsDescendantOf DockItem o) => IsDockItem o
- toDockItem :: (MonadIO m, IsDockItem o) => o -> m DockItem
- dockItemAdopt :: (HasCallStack, MonadIO m, IsDockItem a, IsDockItem b) => a -> b -> m Bool
- dockItemClose :: (HasCallStack, MonadIO m, IsDockItem a) => a -> m Bool
- dockItemEmitPresented :: (HasCallStack, MonadIO m, IsDockItem a) => a -> m ()
- dockItemGetCanClose :: (HasCallStack, MonadIO m, IsDockItem a) => a -> m Bool
- dockItemGetCanMinimize :: (HasCallStack, MonadIO m, IsDockItem a) => a -> m Bool
- dockItemGetChildVisible :: (HasCallStack, MonadIO m, IsDockItem a, IsDockItem b) => a -> b -> m Bool
- dockItemGetIconName :: (HasCallStack, MonadIO m, IsDockItem a) => a -> m (Maybe Text)
- dockItemGetManager :: (HasCallStack, MonadIO m, IsDockItem a) => a -> m (Maybe DockManager)
- dockItemGetParent :: (HasCallStack, MonadIO m, IsDockItem a) => a -> m (Maybe DockItem)
- dockItemGetTitle :: (HasCallStack, MonadIO m, IsDockItem a) => a -> m (Maybe Text)
- dockItemHasWidgets :: (HasCallStack, MonadIO m, IsDockItem a) => a -> m Bool
- dockItemMinimize :: (HasCallStack, MonadIO m, IsDockItem a, IsDockItem b) => a -> b -> PositionType -> m (Bool, PositionType)
- dockItemNeedsAttention :: (HasCallStack, MonadIO m, IsDockItem a) => a -> m ()
- dockItemPresent :: (HasCallStack, MonadIO m, IsDockItem a) => a -> m ()
- dockItemPresentChild :: (HasCallStack, MonadIO m, IsDockItem a, IsDockItem b) => a -> b -> m ()
- dockItemRefGicon :: (HasCallStack, MonadIO m, IsDockItem a) => a -> m (Maybe Icon)
- dockItemRelease :: (HasCallStack, MonadIO m, IsDockItem a, IsDockItem b) => a -> b -> m ()
- dockItemSetChildVisible :: (HasCallStack, MonadIO m, IsDockItem a, IsDockItem b) => a -> b -> Bool -> m ()
- dockItemSetManager :: (HasCallStack, MonadIO m, IsDockItem a, IsDockManager b) => a -> Maybe b -> m ()
- dockItemUpdateVisibility :: (HasCallStack, MonadIO m, IsDockItem a) => a -> m ()
- type DockItemManagerSetCallback = DockManager -> IO ()
- afterDockItemManagerSet :: (IsDockItem a, MonadIO m) => a -> ((?self :: a) => DockItemManagerSetCallback) -> m SignalHandlerId
- onDockItemManagerSet :: (IsDockItem a, MonadIO m) => a -> ((?self :: a) => DockItemManagerSetCallback) -> m SignalHandlerId
- type DockItemNeedsAttentionCallback = IO ()
- afterDockItemNeedsAttention :: (IsDockItem a, MonadIO m) => a -> ((?self :: a) => DockItemNeedsAttentionCallback) -> m SignalHandlerId
- onDockItemNeedsAttention :: (IsDockItem a, MonadIO m) => a -> ((?self :: a) => DockItemNeedsAttentionCallback) -> m SignalHandlerId
- type DockItemPresentedCallback = IO ()
- afterDockItemPresented :: (IsDockItem a, MonadIO m) => a -> ((?self :: a) => DockItemPresentedCallback) -> m SignalHandlerId
- onDockItemPresented :: (IsDockItem a, MonadIO m) => a -> ((?self :: a) => DockItemPresentedCallback) -> m SignalHandlerId
Exported types
Memory-managed wrapper type.
Instances
Eq DockItem Source # | |
GObject DockItem Source # | |
Defined in GI.Dazzle.Interfaces.DockItem | |
ManagedPtrNewtype DockItem Source # | |
Defined in GI.Dazzle.Interfaces.DockItem Methods toManagedPtr :: DockItem -> ManagedPtr DockItem | |
TypedObject DockItem Source # | |
Defined in GI.Dazzle.Interfaces.DockItem | |
HasParentTypes DockItem Source # | |
Defined in GI.Dazzle.Interfaces.DockItem | |
IsGValue (Maybe DockItem) Source # | Convert |
Defined in GI.Dazzle.Interfaces.DockItem Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe DockItem -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe DockItem) | |
type ParentTypes DockItem Source # | |
Defined in GI.Dazzle.Interfaces.DockItem type ParentTypes DockItem = '[Object, Widget] |
class (GObject o, IsDescendantOf DockItem o) => IsDockItem o Source #
Type class for types which can be safely cast to DockItem
, for instance with toDockItem
.
Instances
(GObject o, IsDescendantOf DockItem o) => IsDockItem o Source # | |
Defined in GI.Dazzle.Interfaces.DockItem |
toDockItem :: (MonadIO m, IsDockItem o) => o -> m DockItem Source #
Methods
Click to display all available methods, including inherited ones
Methods
activate, addAccelerator, addChild, addDeviceEvents, addEvents, addMnemonicLabel, addTickCallback, adopt, bindProperty, bindPropertyFull, canActivateAccel, childFocus, childNotify, classPath, close, 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, emitPresented, ensureStyle, errorBell, event, forceFloating, freezeChildNotify, freezeNotify, getv, grabAdd, grabDefault, grabFocus, grabRemove, hasDefault, hasFocus, hasGrab, hasRcStyle, hasScreen, hasVisibleFocus, hasWidgets, hide, hideOnDelete, inDestruction, initTemplate, inputShapeCombineRegion, insertActionGroup, intersect, isAncestor, isComposited, isDrawable, isFloating, isFocus, isSensitive, isToplevel, isVisible, keynavFailed, listAccelClosures, listActionPrefixes, listMnemonicLabels, map, minimize, mnemonicActivate, modifyBase, modifyBg, modifyCursor, modifyFg, modifyFont, modifyStyle, modifyText, needsAttention, notify, notifyByPspec, overrideBackgroundColor, overrideColor, overrideCursor, overrideFont, overrideSymbolicColor, parserFinished, path, present, presentChild, queueAllocate, queueComputeExpand, queueDraw, queueDrawArea, queueDrawRegion, queueResize, queueResizeNoRedraw, realize, ref, refGicon, refSink, regionIntersect, registerWindow, release, removeAccelerator, removeMnemonicLabel, removeTickCallback, renderIcon, renderIconPixbuf, reparent, resetRcStyles, resetStyle, runDispose, sendExpose, sendFocusChange, shapeCombineRegion, show, showAll, showNow, sizeAllocate, sizeAllocateWithBaseline, sizeRequest, stealData, stealQdata, styleAttach, styleGetProperty, thawChildNotify, thawNotify, translateCoordinates, triggerTooltipQuery, unmap, unparent, unrealize, unref, unregisterWindow, unsetStateFlags, updateVisibility, watchClosure.
Getters
getAccessible, getActionGroup, getAllocatedBaseline, getAllocatedHeight, getAllocatedSize, getAllocatedWidth, getAllocation, getAncestor, getAppPaintable, getCanClose, getCanDefault, getCanFocus, getCanMinimize, getChildRequisition, getChildVisible, getClip, getClipboard, getCompositeName, getData, getDeviceEnabled, getDeviceEvents, getDirection, getDisplay, getDoubleBuffered, getEvents, getFocusOnClick, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHasWindow, getHexpand, getHexpandSet, getIconName, getInternalChild, getManager, getMapped, getMarginBottom, getMarginEnd, getMarginLeft, getMarginRight, getMarginStart, getMarginTop, getModifierMask, getModifierStyle, getName, getNoShowAll, getOpacity, getPangoContext, getParent, getParentWindow, getPath, getPointer, getPreferredHeight, getPreferredHeightAndBaselineForWidth, getPreferredHeightForWidth, getPreferredSize, getPreferredWidth, getPreferredWidthForHeight, getProperty, getQdata, getRealized, getReceivesDefault, getRequestMode, getRequisition, getRootWindow, getScaleFactor, getScreen, getSensitive, getSettings, getSizeRequest, getState, getStateFlags, getStyle, getStyleContext, getSupportMultidevice, getTemplateChild, getTitle, getTooltipMarkup, getTooltipText, getTooltipWindow, getToplevel, getValign, getValignWithBaseline, getVexpand, getVexpandSet, getVisible, getVisual, getWindow.
Setters
setAccelPath, setAllocation, setAppPaintable, setBuildableProperty, setCanDefault, setCanFocus, setChildVisible, setClip, setCompositeName, setData, setDataFull, setDeviceEnabled, setDeviceEvents, setDirection, setDoubleBuffered, setEvents, setFocusOnClick, setFontMap, setFontOptions, setHalign, setHasTooltip, setHasWindow, setHexpand, setHexpandSet, setManager, setMapped, setMarginBottom, setMarginEnd, setMarginLeft, setMarginRight, setMarginStart, setMarginTop, setName, setNoShowAll, setOpacity, setParent, setParentWindow, setProperty, setRealized, setReceivesDefault, setRedrawOnAllocate, setSensitive, setSizeRequest, setState, setStateFlags, setStyle, setSupportMultidevice, setTooltipMarkup, setTooltipText, setTooltipWindow, setValign, setVexpand, setVexpandSet, setVisible, setVisual, setWindow.
adopt
dockItemAdopt :: (HasCallStack, MonadIO m, IsDockItem a, IsDockItem b) => a -> b -> m Bool Source #
No description available in the introspection data.
close
Arguments
:: (HasCallStack, MonadIO m, IsDockItem a) | |
=> a |
|
-> m Bool | Returns: |
This function will request that the dock item close itself.
emitPresented
dockItemEmitPresented Source #
Arguments
:: (HasCallStack, MonadIO m, IsDockItem a) | |
=> a |
|
-> m () |
Emits the DockItem::presented signal.
Containers should emit this when their descendant has been presented as the current visible child. This allows dock items to do lazy initialization of content once the widgetry is visible to the user.
Currently, this is best effort, as there are a number of situations that make covering all cases problematic.
Since: 3.30
getCanClose
Arguments
:: (HasCallStack, MonadIO m, IsDockItem a) | |
=> a |
|
-> m Bool | Returns: |
If this dock item can be closed by the user, this virtual function should be
implemented by the panel and return True
.
getCanMinimize
dockItemGetCanMinimize Source #
Arguments
:: (HasCallStack, MonadIO m, IsDockItem a) | |
=> a |
|
-> m Bool | Returns: |
No description available in the introspection data.
getChildVisible
dockItemGetChildVisible :: (HasCallStack, MonadIO m, IsDockItem a, IsDockItem b) => a -> b -> m Bool Source #
No description available in the introspection data.
getIconName
Arguments
:: (HasCallStack, MonadIO m, IsDockItem a) | |
=> a |
|
-> m (Maybe Text) | Returns: A newly allocated string or |
Gets the icon_name for the DockItem
.
Generally, you want to use a DockWidget
which has a "icon-name" property
you can set. But this can be helpful for integration of various container
widgets.
getManager
Arguments
:: (HasCallStack, MonadIO m, IsDockItem a) | |
=> a |
|
-> m (Maybe DockManager) | Returns: A |
Gets the dock manager for this dock item.
getParent
Arguments
:: (HasCallStack, MonadIO m, IsDockItem a) | |
=> a | |
-> m (Maybe DockItem) |
getTitle
Arguments
:: (HasCallStack, MonadIO m, IsDockItem a) | |
=> a |
|
-> m (Maybe Text) | Returns: A newly allocated string or |
Gets the title for the DockItem
.
Generally, you want to use a DockWidget
which has a "title" property you
can set. But this can be helpful for integration of various container
widgets.
hasWidgets
dockItemHasWidgets :: (HasCallStack, MonadIO m, IsDockItem a) => a -> m Bool Source #
No description available in the introspection data.
minimize
Arguments
:: (HasCallStack, MonadIO m, IsDockItem a, IsDockItem b) | |
=> a |
|
-> b |
|
-> PositionType |
|
-> m (Bool, PositionType) | Returns: |
This requests that self
minimize child
if it knows how.
If not, it should suggest the gravity for child
if it knows how to
determine that. For example, a DockBin
might know if the widget was part
of the right panel and therefore may set position
to PositionTypeRight
.
needsAttention
dockItemNeedsAttention Source #
Arguments
:: (HasCallStack, MonadIO m, IsDockItem a) | |
=> a |
|
-> m () |
Emits the "needs-attention" signal.
Since: 3.34
present
Arguments
:: (HasCallStack, MonadIO m, IsDockItem a) | |
=> a |
|
-> m () |
This widget will walk the widget hierarchy to ensure that the dock item is visible to the user.
presentChild
dockItemPresentChild :: (HasCallStack, MonadIO m, IsDockItem a, IsDockItem b) => a -> b -> m () Source #
No description available in the introspection data.
refGicon
Arguments
:: (HasCallStack, MonadIO m, IsDockItem a) | |
=> a |
|
-> m (Maybe Icon) |
release
Arguments
:: (HasCallStack, MonadIO m, IsDockItem a, IsDockItem b) | |
=> a |
|
-> b | |
-> m () |
This virtual method should remove child
from self
if the
dock item knows how to do so. For example, the DockStack
will remove child
from it's internal Stack
.
After the virtual function has been executed, child tracking
will be removed so that DockItem
implementations do not
need to implement themselves.
setChildVisible
dockItemSetChildVisible :: (HasCallStack, MonadIO m, IsDockItem a, IsDockItem b) => a -> b -> Bool -> m () Source #
No description available in the introspection data.
setManager
Arguments
:: (HasCallStack, MonadIO m, IsDockItem a, IsDockManager b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Sets the dock manager for this DockItem
.
updateVisibility
dockItemUpdateVisibility :: (HasCallStack, MonadIO m, IsDockItem a) => a -> m () Source #
No description available in the introspection data.
Signals
managerSet
type DockItemManagerSetCallback = DockManager -> IO () Source #
No description available in the introspection data.
afterDockItemManagerSet :: (IsDockItem a, MonadIO m) => a -> ((?self :: a) => DockItemManagerSetCallback) -> m SignalHandlerId Source #
Connect a signal handler for the managerSet signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
dockItem #managerSet callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onDockItemManagerSet :: (IsDockItem a, MonadIO m) => a -> ((?self :: a) => DockItemManagerSetCallback) -> m SignalHandlerId Source #
Connect a signal handler for the managerSet signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
dockItem #managerSet callback
needsAttention
type DockItemNeedsAttentionCallback = IO () Source #
No description available in the introspection data.
afterDockItemNeedsAttention :: (IsDockItem a, MonadIO m) => a -> ((?self :: a) => DockItemNeedsAttentionCallback) -> m SignalHandlerId Source #
Connect a signal handler for the needsAttention signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
dockItem #needsAttention callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onDockItemNeedsAttention :: (IsDockItem a, MonadIO m) => a -> ((?self :: a) => DockItemNeedsAttentionCallback) -> m SignalHandlerId Source #
Connect a signal handler for the needsAttention signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
dockItem #needsAttention callback
presented
type DockItemPresentedCallback = IO () Source #
No description available in the introspection data.
afterDockItemPresented :: (IsDockItem a, MonadIO m) => a -> ((?self :: a) => DockItemPresentedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the presented signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
dockItem #presented callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onDockItemPresented :: (IsDockItem a, MonadIO m) => a -> ((?self :: a) => DockItemPresentedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the presented signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
dockItem #presented callback