Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
The Pager
struct contains only private fields and should not be
directly accessed.
Synopsis
- newtype Pager = Pager (ManagedPtr Pager)
- class (GObject o, IsDescendantOf Pager o) => IsPager o
- toPager :: (MonadIO m, IsPager o) => o -> m Pager
- noPager :: Maybe Pager
- pagerGetWrapOnScroll :: (HasCallStack, MonadIO m, IsPager a) => a -> m Bool
- pagerNew :: (HasCallStack, MonadIO m) => m Pager
- pagerSetDisplayMode :: (HasCallStack, MonadIO m, IsPager a) => a -> PagerDisplayMode -> m ()
- pagerSetNRows :: (HasCallStack, MonadIO m, IsPager a) => a -> Int32 -> m Bool
- pagerSetOrientation :: (HasCallStack, MonadIO m, IsPager a) => a -> Orientation -> m Bool
- pagerSetShadowType :: (HasCallStack, MonadIO m, IsPager a) => a -> ShadowType -> m ()
- pagerSetShowAll :: (HasCallStack, MonadIO m, IsPager a) => a -> Bool -> m ()
- pagerSetWrapOnScroll :: (HasCallStack, MonadIO m, IsPager a) => a -> Bool -> m ()
Exported types
Memory-managed wrapper type.
Instances
GObject Pager Source # | |
Defined in GI.Wnck.Objects.Pager gobjectType :: IO GType | |
HasParentTypes Pager Source # | |
Defined in GI.Wnck.Objects.Pager | |
type ParentTypes Pager Source # | |
Defined in GI.Wnck.Objects.Pager |
class (GObject o, IsDescendantOf Pager o) => IsPager o Source #
Instances
(GObject o, IsDescendantOf Pager o) => IsPager o Source # | |
Defined in GI.Wnck.Objects.Pager |
Methods
getWrapOnScroll
:: (HasCallStack, MonadIO m, IsPager a) | |
=> a |
|
-> m Bool | Returns: |
No description available in the introspection data.
Since: 3.24.0
new
:: (HasCallStack, MonadIO m) | |
=> m Pager | Returns: a newly created |
setDisplayMode
:: (HasCallStack, MonadIO m, IsPager a) | |
=> a |
|
-> PagerDisplayMode |
|
-> m () |
Sets the display mode for pager
to mode
.
setNRows
:: (HasCallStack, MonadIO m, IsPager a) | |
=> a |
|
-> Int32 |
|
-> m Bool | Returns: |
Tries to change the number of rows in the layout of Workspace
on the
Screen
pager
is watching. Since no more than one application should
set this property of a Screen
at a time, setting the layout is not
guaranteed to work.
If pager
has not been added to a widget hierarchy, the call will fail
because pager
can't know the screen on which to modify the layout.
setOrientation
:: (HasCallStack, MonadIO m, IsPager a) | |
=> a |
|
-> Orientation |
|
-> m Bool | Returns: |
Tries to change the orientation of the layout of Workspace
on the
Screen
pager
is watching. Since no more than one application should
set this property of a Screen
at a time, setting the layout is not
guaranteed to work.
If orientation
is OrientationHorizontal
, the Workspace
will be
laid out in rows, with the first Workspace
in the top left corner.
If orientation
is OrientationVertical
, the Workspace
will be
laid out in columns, with the first Workspace
in the top left corner.
For example, if the layout contains one row, but the orientation of the
layout is vertical, the Pager
will display a column of Workspace
.
Note that setting the orientation will have an effect on the geometry
management: if orientation
is OrientationHorizontal
,
SizeRequestModeWidthForHeight
will be used as request mode; if
orientation
is OrientationVertical
, GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH
will be used instead.
If pager
has not been added to a widget hierarchy, the call will fail
because pager
can't know the screen on which to modify the orientation.
setShadowType
:: (HasCallStack, MonadIO m, IsPager a) | |
=> a |
|
-> ShadowType |
|
-> m () |
Sets the shadow type for pager
to shadowType
. The main use of this
function is proper integration of Pager
in panels with non-system
backgrounds.
Since: 2.2
setShowAll
:: (HasCallStack, MonadIO m, IsPager a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets pager
to display all Workspace
or not, according to
showAllWorkspaces
.
setWrapOnScroll
:: (HasCallStack, MonadIO m, IsPager a) | |
=> a |
|
-> Bool |
|
-> m () |