| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Wnck.Objects.Pager
Description
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
- 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
- pagerSetScrollMode :: (HasCallStack, MonadIO m, IsPager a) => a -> PagerScrollMode -> m ()
- 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.
Constructors
| Pager (ManagedPtr Pager) |
Instances
| Eq Pager Source # | |
| IsGValue Pager Source # | Convert |
| ManagedPtrNewtype Pager Source # | |
Defined in GI.Wnck.Objects.Pager Methods toManagedPtr :: Pager -> ManagedPtr Pager # | |
| TypedObject Pager Source # | |
Defined in GI.Wnck.Objects.Pager | |
| GObject Pager Source # | |
Defined in GI.Wnck.Objects.Pager | |
| 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
Overloaded methods
getWrapOnScroll
Arguments
| :: (HasCallStack, MonadIO m, IsPager a) | |
| => a |
|
| -> m Bool | Returns: |
No description available in the introspection data.
Since: 3.24.0
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m Pager | Returns: a newly created |
setDisplayMode
Arguments
| :: (HasCallStack, MonadIO m, IsPager a) | |
| => a |
|
| -> PagerDisplayMode |
|
| -> m () |
Sets the display mode for pager to mode.
setNRows
Arguments
| :: (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
Arguments
| :: (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.
setScrollMode
Arguments
| :: (HasCallStack, MonadIO m, IsPager a) | |
| => a |
|
| -> PagerScrollMode |
|
| -> m () |
Sets pager to react to input device scrolling in one of the
available scroll modes.
setShadowType
Arguments
| :: (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
Arguments
| :: (HasCallStack, MonadIO m, IsPager a) | |
| => a |
|
| -> Bool |
|
| -> m () |
Sets pager to display all Workspace or not, according to
showAllWorkspaces.
setWrapOnScroll
Arguments
| :: (HasCallStack, MonadIO m, IsPager a) | |
| => a |
|
| -> Bool |
|
| -> m () |
Sets the wrapping behavior of the pager. Setting it to True will
wrap arround to the start when scrolling over the end and vice
versa. By default it is set to False.
Since: 3.24.0