Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
The Tasklist
struct contains only private fields and should not be
directly accessed.
Synopsis
- newtype Tasklist = Tasklist (ManagedPtr Tasklist)
- class GObject o => IsTasklist o
- toTasklist :: (MonadIO m, IsTasklist o) => o -> m Tasklist
- noTasklist :: Maybe Tasklist
- tasklistGetScrollEnabled :: (HasCallStack, MonadIO m, IsTasklist a) => a -> m Bool
- tasklistGetSizeHintList :: (HasCallStack, MonadIO m, IsTasklist a) => a -> Int32 -> m Int32
- tasklistNew :: (HasCallStack, MonadIO m) => m Tasklist
- tasklistSetButtonRelief :: (HasCallStack, MonadIO m, IsTasklist a) => a -> ReliefStyle -> m ()
- tasklistSetGrouping :: (HasCallStack, MonadIO m, IsTasklist a) => a -> TasklistGroupingType -> m ()
- tasklistSetGroupingLimit :: (HasCallStack, MonadIO m, IsTasklist a) => a -> Int32 -> m ()
- tasklistSetIncludeAllWorkspaces :: (HasCallStack, MonadIO m, IsTasklist a) => a -> Bool -> m ()
- tasklistSetMiddleClickClose :: (HasCallStack, MonadIO m, IsTasklist a) => a -> Bool -> m ()
- tasklistSetOrientation :: (HasCallStack, MonadIO m, IsTasklist a) => a -> Orientation -> m ()
- tasklistSetScrollEnabled :: (HasCallStack, MonadIO m, IsTasklist a) => a -> Bool -> m ()
- tasklistSetSwitchWorkspaceOnUnminimize :: (HasCallStack, MonadIO m, IsTasklist a) => a -> Bool -> m ()
Exported types
Memory-managed wrapper type.
Instances
GObject Tasklist Source # | |
Defined in GI.Wnck.Objects.Tasklist gobjectType :: Tasklist -> IO GType # | |
IsImplementorIface Tasklist Source # | |
Defined in GI.Wnck.Objects.Tasklist | |
IsObject Tasklist Source # | |
Defined in GI.Wnck.Objects.Tasklist | |
IsWidget Tasklist Source # | |
Defined in GI.Wnck.Objects.Tasklist | |
IsContainer Tasklist Source # | |
Defined in GI.Wnck.Objects.Tasklist | |
IsBuildable Tasklist Source # | |
Defined in GI.Wnck.Objects.Tasklist | |
IsTasklist Tasklist Source # | |
Defined in GI.Wnck.Objects.Tasklist |
class GObject o => IsTasklist o Source #
Type class for types which can be safely cast to Tasklist
, for instance with toTasklist
.
Instances
(GObject a, (UnknownAncestorError Tasklist a :: Constraint)) => IsTasklist a Source # | |
Defined in GI.Wnck.Objects.Tasklist | |
IsTasklist Tasklist Source # | |
Defined in GI.Wnck.Objects.Tasklist |
toTasklist :: (MonadIO m, IsTasklist o) => o -> m Tasklist Source #
Methods
getScrollEnabled
tasklistGetScrollEnabled Source #
:: (HasCallStack, MonadIO m, IsTasklist a) | |
=> a |
|
-> m Bool |
Gets the scroll behavior of the tasklist
.
Since: 3.24.0
getSizeHintList
tasklistGetSizeHintList Source #
:: (HasCallStack, MonadIO m, IsTasklist a) | |
=> a |
|
-> Int32 |
|
-> m Int32 | Returns: a list of size hints that can be used to allocate an
appropriate size for |
Since a Tasklist
does not have a fixed size (Window
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
:: (HasCallStack, MonadIO m) | |
=> m Tasklist | Returns: a newly created |
setButtonRelief
tasklistSetButtonRelief Source #
:: (HasCallStack, MonadIO m, IsTasklist a) | |
=> a |
|
-> ReliefStyle |
|
-> 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
:: (HasCallStack, MonadIO m, IsTasklist a) | |
=> a |
|
-> TasklistGroupingType |
|
-> m () |
Sets the grouping policy for tasklist
to grouping
.
setGroupingLimit
tasklistSetGroupingLimit Source #
:: (HasCallStack, MonadIO m, IsTasklist a) | |
=> a |
|
-> Int32 |
|
-> 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 #
:: (HasCallStack, MonadIO m, IsTasklist a) | |
=> a |
|
-> Bool |
|
-> 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 #
:: (HasCallStack, MonadIO m, IsTasklist a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets tasklist
to close windows with mouse middle click on button,
according to middleClickClose
.
Since: 3.4.6
setOrientation
tasklistSetOrientation Source #
:: (HasCallStack, MonadIO m, IsTasklist a) | |
=> a |
|
-> Orientation |
|
-> 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 #
:: (HasCallStack, MonadIO m, IsTasklist a) | |
=> a |
|
-> Bool |
|
-> 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 #
:: (HasCallStack, MonadIO m, IsTasklist a) | |
=> a |
|
-> Bool |
|
-> m () |