gi-wnck-3.0.10: Wnck bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Wnck.Objects.Tasklist

Description

The Tasklist struct contains only private fields and should not be directly accessed.

Synopsis

Exported types

newtype Tasklist Source #

Memory-managed wrapper type.

Constructors

Tasklist (ManagedPtr Tasklist) 

Instances

Instances details
Eq Tasklist Source # 
Instance details

Defined in GI.Wnck.Objects.Tasklist

GObject Tasklist Source # 
Instance details

Defined in GI.Wnck.Objects.Tasklist

ManagedPtrNewtype Tasklist Source # 
Instance details

Defined in GI.Wnck.Objects.Tasklist

Methods

toManagedPtr :: Tasklist -> ManagedPtr Tasklist

TypedObject Tasklist Source # 
Instance details

Defined in GI.Wnck.Objects.Tasklist

Methods

glibType :: IO GType

HasParentTypes Tasklist Source # 
Instance details

Defined in GI.Wnck.Objects.Tasklist

IsGValue (Maybe Tasklist) Source #

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

Instance details

Defined in GI.Wnck.Objects.Tasklist

Methods

gvalueGType_ :: IO GType

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

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

type ParentTypes Tasklist Source # 
Instance details

Defined in GI.Wnck.Objects.Tasklist

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

class (GObject o, IsDescendantOf Tasklist o) => IsTasklist o Source #

Type class for types which can be safely cast to Tasklist, for instance with toTasklist.

Instances

Instances details
(GObject o, IsDescendantOf Tasklist o) => IsTasklist o Source # 
Instance details

Defined in GI.Wnck.Objects.Tasklist

toTasklist :: (MonadIO m, IsTasklist o) => o -> m Tasklist Source #

Cast to Tasklist, 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, 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, getScrollEnabled, getSensitive, getSettings, getSizeHintList, getSizeRequest, getState, getStateFlags, getStyle, getStyleContext, getSupportMultidevice, getTemplateChild, getTooltipMarkup, getTooltipText, getTooltipWindow, getToplevel, getValign, getValignWithBaseline, getVexpand, getVexpandSet, getVisible, getVisual, getWindow.

Setters

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

getScrollEnabled

tasklistGetScrollEnabled Source #

Arguments

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

tasklist: a Tasklist.

-> m Bool 

Gets the scroll behavior of the tasklist.

Since: 3.24.0

getSizeHintList

tasklistGetSizeHintList Source #

Arguments

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

tasklist: a Tasklist.

-> Int32

nElements: return location for the number of elements in the array returned by this function. This number should always be pair.

-> m Int32

Returns: a list of size hints that can be used to allocate an appropriate size for tasklist.

Since a Tasklist does not have a fixed size (tWindow can be grouped when needed, for example), the standard size request mechanism in GTK+ is not enough to announce what sizes can be used by tasklist. The size hints mechanism is a solution for this. See panel_applet_set_size_hints() for more information.

new

tasklistNew Source #

Arguments

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

Returns: a newly created Tasklist.

Creates a new Tasklist. The Tasklist will list Window of the Screen it is on.

setButtonRelief

tasklistSetButtonRelief Source #

Arguments

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

tasklist: a Tasklist.

-> ReliefStyle

relief: a relief type.

-> m () 

Sets the relief type of the buttons in tasklist to relief. The main use of this function is proper integration of Tasklist in panels with non-system backgrounds.

Since: 2.12

setGrouping

tasklistSetGrouping Source #

Arguments

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

tasklist: a Tasklist.

-> TasklistGroupingType

grouping: a grouping policy.

-> m () 

Sets the grouping policy for tasklist to grouping.

setGroupingLimit

tasklistSetGroupingLimit Source #

Arguments

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

tasklist: a Tasklist.

-> Int32

limit: a size in pixels.

-> m () 

Sets the maximum size of buttons in tasklist before tasklist tries to group Window in the same Application in only one button. This limit is valid only when the grouping policy of tasklist is TasklistGroupingTypeAutoGroup.

setIncludeAllWorkspaces

tasklistSetIncludeAllWorkspaces Source #

Arguments

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

tasklist: a Tasklist.

-> Bool

includeAllWorkspaces: whether to display Window from all Workspace in tasklist.

-> m () 

Sets tasklist to display Window from all Workspace or not, according to includeAllWorkspaces.

Note that if the active Workspace has a viewport and if includeAllWorkspaces is False, then only the Window visible in the viewport are displayed in tasklist. The rationale for this is that the viewport is generally used to implement workspace-like behavior. A side-effect of this is that, when using multiple Workspace with viewport, it is not possible to show all Window from a Workspace (even those that are not visible in the viewport) in tasklist without showing all Window from all Workspace.

setMiddleClickClose

tasklistSetMiddleClickClose Source #

Arguments

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

tasklist: a Tasklist.

-> Bool

middleClickClose: whether to close windows with middle click on button.

-> m () 

Sets tasklist to close windows with mouse middle click on button, according to middleClickClose.

Since: 3.4.6

setOrientation

tasklistSetOrientation Source #

Arguments

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

tasklist: a Tasklist.

-> Orientation

orient: a GtkOrientation.

-> m () 

Set the orientation of the tasklist to match orient. This function can be used to integrate a Tasklist in vertical panels.

Since: 3.4.6

setScrollEnabled

tasklistSetScrollEnabled Source #

Arguments

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

tasklist: a Tasklist.

-> Bool

scrollEnabled: a boolean.

-> m () 

Sets the scroll behavior of the tasklist. When set to True, a scroll event over the tasklist will change the current window accordingly.

Since: 3.24.0

setSwitchWorkspaceOnUnminimize

tasklistSetSwitchWorkspaceOnUnminimize Source #

Arguments

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

tasklist: a Tasklist.

-> Bool

switchWorkspaceOnUnminimize: whether to activate the Workspace a Window is on when unminimizing it.

-> m () 

Sets tasklist to activate or not the Workspace a Window is on when unminimizing it, according to switchWorkspaceOnUnminimize.

FIXME: does it still work?

Signals

taskEnterNotify

type C_TasklistTaskEnterNotifyCallback = Ptr () -> Ptr () -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type TasklistTaskEnterNotifyCallback Source #

Arguments

 = Ptr ()

windows: the List with all the Window belonging to the task.

-> IO () 

Emitted when the task is entered.

afterTasklistTaskEnterNotify :: (IsTasklist a, MonadIO m) => a -> TasklistTaskEnterNotifyCallback -> m SignalHandlerId Source #

Connect a signal handler for the taskEnterNotify signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after tasklist #taskEnterNotify callback

onTasklistTaskEnterNotify :: (IsTasklist a, MonadIO m) => a -> TasklistTaskEnterNotifyCallback -> m SignalHandlerId Source #

Connect a signal handler for the taskEnterNotify signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on tasklist #taskEnterNotify callback

taskLeaveNotify

type C_TasklistTaskLeaveNotifyCallback = Ptr () -> Ptr () -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type TasklistTaskLeaveNotifyCallback Source #

Arguments

 = Ptr ()

windows: the List with all the Window belonging to the task.

-> IO () 

Emitted when the task is entered.

afterTasklistTaskLeaveNotify :: (IsTasklist a, MonadIO m) => a -> TasklistTaskLeaveNotifyCallback -> m SignalHandlerId Source #

Connect a signal handler for the taskLeaveNotify signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after tasklist #taskLeaveNotify callback

onTasklistTaskLeaveNotify :: (IsTasklist a, MonadIO m) => a -> TasklistTaskLeaveNotifyCallback -> m SignalHandlerId Source #

Connect a signal handler for the taskLeaveNotify signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on tasklist #taskLeaveNotify callback