gi-wnck-3.0.9: Wnck bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Wnck.Structs.WorkspaceLayout

Description

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

Exported types

newZeroWorkspaceLayout :: MonadIO m => m WorkspaceLayout Source #

Construct a WorkspaceLayout struct initialized to zero.

Methods

Overloaded methods

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 ]