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 WorkspaceLayout
struct contains information about the layout of
Workspace
on a Screen
, and the exact position of a specific
Workspace
.
Since: 2.12
Synopsis
- newtype WorkspaceLayout = WorkspaceLayout (ManagedPtr WorkspaceLayout)
- newZeroWorkspaceLayout :: MonadIO m => m WorkspaceLayout
- noWorkspaceLayout :: Maybe WorkspaceLayout
- getWorkspaceLayoutCols :: MonadIO m => WorkspaceLayout -> m Int32
- setWorkspaceLayoutCols :: MonadIO m => WorkspaceLayout -> Int32 -> m ()
- getWorkspaceLayoutCurrentCol :: MonadIO m => WorkspaceLayout -> m Int32
- setWorkspaceLayoutCurrentCol :: MonadIO m => WorkspaceLayout -> Int32 -> m ()
- getWorkspaceLayoutCurrentRow :: MonadIO m => WorkspaceLayout -> m Int32
- setWorkspaceLayoutCurrentRow :: MonadIO m => WorkspaceLayout -> Int32 -> m ()
- getWorkspaceLayoutGrid :: MonadIO m => WorkspaceLayout -> m Int32
- setWorkspaceLayoutGrid :: MonadIO m => WorkspaceLayout -> Int32 -> m ()
- getWorkspaceLayoutGridArea :: MonadIO m => WorkspaceLayout -> m Int32
- setWorkspaceLayoutGridArea :: MonadIO m => WorkspaceLayout -> Int32 -> m ()
- getWorkspaceLayoutRows :: MonadIO m => WorkspaceLayout -> m Int32
- setWorkspaceLayoutRows :: MonadIO m => WorkspaceLayout -> Int32 -> m ()
Exported types
newtype WorkspaceLayout Source #
Memory-managed wrapper type.
WorkspaceLayout (ManagedPtr WorkspaceLayout) |
Instances
WrappedPtr WorkspaceLayout Source # | |
Defined in GI.Wnck.Structs.WorkspaceLayout wrappedPtrCalloc :: IO (Ptr WorkspaceLayout) wrappedPtrCopy :: WorkspaceLayout -> IO WorkspaceLayout wrappedPtrFree :: Maybe (GDestroyNotify WorkspaceLayout) | |
tag ~ AttrSet => Constructible WorkspaceLayout tag Source # | |
Defined in GI.Wnck.Structs.WorkspaceLayout new :: MonadIO m => (ManagedPtr WorkspaceLayout -> WorkspaceLayout) -> [AttrOp WorkspaceLayout tag] -> m WorkspaceLayout |
newZeroWorkspaceLayout :: MonadIO m => m WorkspaceLayout Source #
Construct a WorkspaceLayout
struct initialized to zero.
noWorkspaceLayout :: Maybe WorkspaceLayout Source #
A convenience alias for Nothing
:: Maybe
WorkspaceLayout
.
Properties
cols
number of columns in the layout grid.
getWorkspaceLayoutCols :: MonadIO m => WorkspaceLayout -> m Int32 Source #
Get the value of the “cols
” field.
When overloading is enabled, this is equivalent to
get
workspaceLayout #cols
setWorkspaceLayoutCols :: MonadIO m => WorkspaceLayout -> Int32 -> m () Source #
Set the value of the “cols
” field.
When overloading is enabled, this is equivalent to
set
workspaceLayout [ #cols:=
value ]
currentCol
column of the specific Workspace
, starting from 0.
getWorkspaceLayoutCurrentCol :: MonadIO m => WorkspaceLayout -> m Int32 Source #
Get the value of the “current_col
” field.
When overloading is enabled, this is equivalent to
get
workspaceLayout #currentCol
setWorkspaceLayoutCurrentCol :: MonadIO m => WorkspaceLayout -> Int32 -> m () Source #
Set the value of the “current_col
” field.
When overloading is enabled, this is equivalent to
set
workspaceLayout [ #currentCol:=
value ]
currentRow
row of the specific Workspace
, starting from 0.
getWorkspaceLayoutCurrentRow :: MonadIO m => WorkspaceLayout -> m Int32 Source #
Get the value of the “current_row
” field.
When overloading is enabled, this is equivalent to
get
workspaceLayout #currentRow
setWorkspaceLayoutCurrentRow :: MonadIO m => WorkspaceLayout -> Int32 -> m () Source #
Set the value of the “current_row
” field.
When overloading is enabled, this is equivalent to
set
workspaceLayout [ #currentRow:=
value ]
grid
array of size gridArea
containing the index (starting from 0) of
the Workspace
for each position in the layout grid, or -1 if the
position does not correspond to any Workspace
.
getWorkspaceLayoutGrid :: MonadIO m => WorkspaceLayout -> m Int32 Source #
Get the value of the “grid
” field.
When overloading is enabled, this is equivalent to
get
workspaceLayout #grid
setWorkspaceLayoutGrid :: MonadIO m => WorkspaceLayout -> Int32 -> m () Source #
Set the value of the “grid
” field.
When overloading is enabled, this is equivalent to
set
workspaceLayout [ #grid:=
value ]
gridArea
size of the grid containing all Workspace
. This can be
bigger than the number of Workspace
because the grid might not be
filled.
getWorkspaceLayoutGridArea :: MonadIO m => WorkspaceLayout -> m Int32 Source #
Get the value of the “grid_area
” field.
When overloading is enabled, this is equivalent to
get
workspaceLayout #gridArea
setWorkspaceLayoutGridArea :: MonadIO m => WorkspaceLayout -> Int32 -> m () Source #
Set the value of the “grid_area
” field.
When overloading is enabled, this is equivalent to
set
workspaceLayout [ #gridArea:=
value ]
rows
number of rows in the layout grid.
getWorkspaceLayoutRows :: MonadIO m => WorkspaceLayout -> m Int32 Source #
Get the value of the “rows
” field.
When overloading is enabled, this is equivalent to
get
workspaceLayout #rows
setWorkspaceLayoutRows :: MonadIO m => WorkspaceLayout -> Int32 -> m () Source #
Set the value of the “rows
” field.
When overloading is enabled, this is equivalent to
set
workspaceLayout [ #rows:=
value ]