gi-wnck-3.0.4: Wnck bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Wnck.Structs.WorkspaceLayout

Contents

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

newtype WorkspaceLayout Source #

Memory-managed wrapper type.

Constructors

WorkspaceLayout (ManagedPtr WorkspaceLayout) 
Instances
WrappedPtr WorkspaceLayout Source # 
Instance details

Defined in GI.Wnck.Structs.WorkspaceLayout

tag ~ AttrSet => Constructible WorkspaceLayout tag Source # 
Instance details

Defined in GI.Wnck.Structs.WorkspaceLayout

Methods

new :: MonadIO m => (ManagedPtr WorkspaceLayout -> WorkspaceLayout) -> [AttrOp WorkspaceLayout tag] -> m WorkspaceLayout

newZeroWorkspaceLayout :: MonadIO m => m WorkspaceLayout Source #

Construct a WorkspaceLayout struct initialized to zero.

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 ]