~muktupavels/metacity/adwaita-icon-theme-lp-1414613

« back to all changes in this revision

Viewing changes to src/workspace.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2005-10-03 22:44:28 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20051003224428-ft31gkmz12qpzohj
Tags: 1:2.12.1-0ubuntu1
* New upstream release:
  - Thanks to Ray Strode, Havoc Pennington, and Elijah Newren for
    improvements in this release.
  - Truncate ridiculously long titles to avoid crashing or letting the
    pager crash (Ray, Havoc, Elijah) [#315070] (Ubuntu: #15995)
  - Get the tabbing window outline to work with gtk+ 2.8.4 again
    (Elijah) [#317528] (Ubuntu: #16589)
  - Translations: Mahay Alam Khan (bn), Francisco Javier F. Serrador (es), 
    Ivar Smolin (et), I\uffffaki Larra\uffffaga Murgoitio (eu), Luca 
    Ferretti (it), Christian Rose (sv), Clytie Siddall (vi), Funda 
    Wang (zh_CN)
* debian/control.in:
  - Bumped Standards-Version.
* debian/patches/003_bordersdrawingfix.patch:
  - dropped, fixed upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Metacity Workspaces */
 
2
 
 
3
/* 
 
4
 * Copyright (C) 2001 Havoc Pennington
 
5
 * 
 
6
 * This program is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU General Public License as
 
8
 * published by the Free Software Foundation; either version 2 of the
 
9
 * License, or (at your option) any later version.
 
10
 *
 
11
 * This program is distributed in the hope that it will be useful, but
 
12
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
 * General Public License for more details.
 
15
 * 
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with this program; if not, write to the Free Software
 
18
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
19
 * 02111-1307, USA.
 
20
 */
 
21
 
 
22
#ifndef META_WORKSPACE_H
 
23
#define META_WORKSPACE_H
 
24
 
 
25
#include "window.h"
 
26
 
 
27
/* Negative to avoid conflicting with real workspace
 
28
 * numbers
 
29
 */
 
30
typedef enum
 
31
{
 
32
  META_MOTION_UP = -1,
 
33
  META_MOTION_DOWN = -2,
 
34
  META_MOTION_LEFT = -3,
 
35
  META_MOTION_RIGHT = -4
 
36
} MetaMotionDirection;
 
37
 
 
38
struct _MetaWorkspace
 
39
{
 
40
  MetaScreen *screen;
 
41
  
 
42
  GList *windows;
 
43
  GList *mru_list;
 
44
 
 
45
  MetaRectangle all_work_areas;
 
46
  MetaRectangle *work_areas;
 
47
  GSList *left_struts;
 
48
  GSList *right_struts;
 
49
  GSList *top_struts;
 
50
  GSList *bottom_struts;
 
51
  guint work_areas_invalid : 1;
 
52
 
 
53
  guint showing_desktop : 1;
 
54
};
 
55
 
 
56
MetaWorkspace* meta_workspace_new           (MetaScreen    *screen);
 
57
void           meta_workspace_free          (MetaWorkspace *workspace);
 
58
void           meta_workspace_add_window    (MetaWorkspace *workspace,
 
59
                                             MetaWindow    *window);
 
60
void           meta_workspace_remove_window (MetaWorkspace *workspace,
 
61
                                             MetaWindow    *window);
 
62
void           meta_workspace_relocate_windows (MetaWorkspace *workspace,
 
63
                                                MetaWorkspace *new_home);
 
64
void           meta_workspace_activate_with_focus (MetaWorkspace *workspace,
 
65
                                                   MetaWindow    *focus_this,
 
66
                                                   Time           timestamp);
 
67
void           meta_workspace_activate            (MetaWorkspace *workspace,
 
68
                                                   Time           timestamp);
 
69
int            meta_workspace_index         (MetaWorkspace *workspace);
 
70
GList*         meta_workspace_list_windows  (MetaWorkspace *workspace);
 
71
 
 
72
void meta_workspace_invalidate_work_area (MetaWorkspace *workspace);
 
73
 
 
74
 
 
75
void meta_workspace_get_work_area_for_xinerama  (MetaWorkspace *workspace,
 
76
                                                 int            which_xinerama,
 
77
                                                 MetaRectangle *area);
 
78
void meta_workspace_get_work_area_all_xineramas (MetaWorkspace *workspace,
 
79
                                                 MetaRectangle *area);
 
80
 
 
81
void meta_workspace_focus_default_window (MetaWorkspace *workspace,
 
82
                                          MetaWindow    *not_this_one,
 
83
                                          Time           timestamp);
 
84
 
 
85
MetaWorkspace* meta_workspace_get_neighbor (MetaWorkspace      *workspace,
 
86
                                            MetaMotionDirection direction);
 
87
 
 
88
const char* meta_workspace_get_name (MetaWorkspace *workspace);
 
89
 
 
90
#endif
 
91
 
 
92
 
 
93
 
 
94