| 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 |
GI.Wnck.Objects.Pager
Contents
Description
The Pager struct contains only private fields and should not be
directly accessed.
Synopsis
- newtype Pager = Pager (ManagedPtr Pager)
- class GObject 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.
Constructors
| Pager (ManagedPtr Pager) |
Instances
| GObject Pager Source # | |
Defined in GI.Wnck.Objects.Pager Methods gobjectType :: Pager -> IO GType # | |
| IsImplementorIface Pager Source # | |
Defined in GI.Wnck.Objects.Pager | |
| IsObject Pager Source # | |
Defined in GI.Wnck.Objects.Pager | |
| IsWidget Pager Source # | |
Defined in GI.Wnck.Objects.Pager | |
| IsBuildable Pager Source # | |
Defined in GI.Wnck.Objects.Pager | |
| IsPager Pager Source # | |
Defined in GI.Wnck.Objects.Pager | |
class GObject o => IsPager o Source #
Instances
| (GObject a, (UnknownAncestorError Pager a :: Constraint)) => IsPager a Source # | |
Defined in GI.Wnck.Objects.Pager | |
| IsPager Pager Source # | |
Defined in GI.Wnck.Objects.Pager | |
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.
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 () |