1998-09-29 22:36:29 +00:00
|
|
|
/* workspace.c- Workspace management
|
2004-10-12 21:28:27 +00:00
|
|
|
*
|
1998-10-21 14:43:47 +00:00
|
|
|
* Window Maker window manager
|
2004-10-12 21:28:27 +00:00
|
|
|
*
|
2003-01-16 23:30:45 +00:00
|
|
|
* Copyright (c) 1997-2003 Alfredo K. Kojima
|
2004-10-12 21:28:27 +00:00
|
|
|
*
|
1998-09-29 22:36:29 +00:00
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
2010-10-08 01:32:11 +02:00
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
1998-09-29 22:36:29 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef WMWORKSPACE_H_
|
|
|
|
|
#define WMWORKSPACE_H_
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct WWorkspace {
|
|
|
|
|
char *name;
|
|
|
|
|
struct WDock *clip;
|
2014-12-04 13:37:36 +07:00
|
|
|
RImage *map;
|
1998-09-29 22:36:29 +00:00
|
|
|
} WWorkspace;
|
|
|
|
|
|
|
|
|
|
void wWorkspaceMake(WScreen *scr, int count);
|
|
|
|
|
int wWorkspaceNew(WScreen *scr);
|
2014-10-19 23:53:58 +02:00
|
|
|
int wGetWorkspaceNumber(WScreen *scr, const char *value);
|
1999-01-06 15:22:33 +00:00
|
|
|
Bool wWorkspaceDelete(WScreen *scr, int workspace);
|
1998-09-29 22:36:29 +00:00
|
|
|
void wWorkspaceChange(WScreen *scr, int workspace);
|
|
|
|
|
void wWorkspaceForceChange(WScreen *scr, int workspace);
|
|
|
|
|
WMenu *wWorkspaceMenuMake(WScreen *scr, Bool titled);
|
2014-10-19 23:53:58 +02:00
|
|
|
void wWorkspaceMenuUpdate(WScreen *scr, WMenu *menu);
|
1998-09-29 22:36:29 +00:00
|
|
|
void wWorkspaceMenuEdit(WScreen *scr);
|
2014-10-19 23:53:58 +02:00
|
|
|
void wWorkspaceSaveState(WScreen *scr, WMPropList *old_state);
|
1998-09-29 22:36:29 +00:00
|
|
|
void wWorkspaceRestoreState(WScreen *scr);
|
2013-06-16 17:57:48 +02:00
|
|
|
void wWorkspaceRename(WScreen *scr, int workspace, const char *name);
|
1999-01-06 15:22:33 +00:00
|
|
|
void wWorkspaceRelativeChange(WScreen *scr, int amount);
|
|
|
|
|
|
1998-09-29 22:36:29 +00:00
|
|
|
#endif
|