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

« back to all changes in this revision

Viewing changes to src/core.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 interface used by GTK+ UI to talk to core */
 
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_CORE_H
 
23
#define META_CORE_H
 
24
 
 
25
/* Don't include core headers here */
 
26
#include <gdk/gdkx.h>
 
27
#include "common.h"
 
28
 
 
29
void meta_core_get_client_size (Display *xdisplay,
 
30
                                Window   frame_xwindow,
 
31
                                int     *width,
 
32
                                int     *height);
 
33
 
 
34
Window meta_core_get_client_xwindow (Display *xdisplay,
 
35
                                     Window   frame_xwindow);
 
36
 
 
37
MetaFrameFlags meta_core_get_frame_flags (Display *xdisplay,
 
38
                                          Window   frame_xwindow);
 
39
MetaFrameType  meta_core_get_frame_type   (Display *xdisplay,
 
40
                                           Window   frame_xwindow);
 
41
 
 
42
GdkPixbuf* meta_core_get_mini_icon (Display *xdisplay,
 
43
                                    Window   frame_xwindow);
 
44
GdkPixbuf* meta_core_get_icon      (Display *xdisplay,
 
45
                                    Window   frame_xwindow);
 
46
 
 
47
void meta_core_queue_frame_resize (Display *xdisplay,
 
48
                                   Window frame_xwindow);
 
49
 
 
50
/* Move as a result of user operation */
 
51
void meta_core_user_move    (Display *xdisplay,
 
52
                             Window   frame_xwindow,
 
53
                             int      x,
 
54
                             int      y);
 
55
void meta_core_user_resize  (Display *xdisplay,
 
56
                             Window   frame_xwindow,
 
57
                             int      gravity,
 
58
                             int      width,
 
59
                             int      height);
 
60
 
 
61
void meta_core_user_raise   (Display *xdisplay,
 
62
                             Window   frame_xwindow);
 
63
void meta_core_user_lower_and_unfocus (Display *xdisplay,
 
64
                                       Window   frame_xwindow,
 
65
                                       Time     timestamp);
 
66
 
 
67
void meta_core_user_focus   (Display *xdisplay,
 
68
                             Window   frame_xwindow,
 
69
                             Time     timestamp);
 
70
 
 
71
/* get position of client, same coord space expected by move */
 
72
void meta_core_get_position (Display *xdisplay,
 
73
                             Window   frame_xwindow,
 
74
                             int     *x,
 
75
                             int     *y);
 
76
 
 
77
void meta_core_get_size     (Display *xdisplay,
 
78
                             Window   frame_xwindow,
 
79
                             int     *width,
 
80
                             int     *height);
 
81
 
 
82
void meta_core_minimize         (Display *xdisplay,
 
83
                                 Window   frame_xwindow);
 
84
void meta_core_toggle_maximize  (Display *xdisplay,
 
85
                                 Window   frame_xwindow);
 
86
void meta_core_unmaximize       (Display *xdisplay,
 
87
                                 Window   frame_xwindow);
 
88
void meta_core_maximize         (Display *xdisplay,
 
89
                                 Window   frame_xwindow);
 
90
void meta_core_delete           (Display *xdisplay,
 
91
                                 Window   frame_xwindow,
 
92
                                 guint32  timestamp);
 
93
void meta_core_unshade          (Display *xdisplay,
 
94
                                 Window   frame_xwindow);
 
95
void meta_core_shade            (Display *xdisplay,
 
96
                                 Window   frame_xwindow);
 
97
void meta_core_unstick          (Display *xdisplay,
 
98
                                 Window   frame_xwindow);
 
99
void meta_core_stick            (Display *xdisplay,
 
100
                                 Window   frame_xwindow);
 
101
void meta_core_change_workspace (Display *xdisplay,
 
102
                                 Window   frame_xwindow,
 
103
                                 int      new_workspace);
 
104
 
 
105
int meta_core_get_num_workspaces (Screen  *xscreen);
 
106
int meta_core_get_active_workspace (Screen *xscreen);
 
107
int meta_core_get_frame_workspace (Display *xdisplay,
 
108
                                   Window frame_xwindow);
 
109
const char* meta_core_get_workspace_name_with_index (Display *xdisplay,
 
110
                                                     Window xroot,
 
111
                                                     int    index);
 
112
 
 
113
void  meta_core_get_frame_extents   (Display        *xdisplay,
 
114
                                     Window          frame_xwindow,
 
115
                                     int            *x,
 
116
                                     int            *y,
 
117
                                     int            *width,
 
118
                                     int            *height);
 
119
 
 
120
 
 
121
void meta_core_show_window_menu (Display *xdisplay,
 
122
                                 Window   frame_xwindow,
 
123
                                 int      root_x,
 
124
                                 int      root_y,
 
125
                                 int      button,
 
126
                                 Time     timestamp);
 
127
 
 
128
void meta_core_get_menu_accelerator (MetaMenuOp           menu_op,
 
129
                                     int                  workspace,
 
130
                                     unsigned int        *keysym,
 
131
                                     MetaVirtualModifier *modifiers);
 
132
 
 
133
gboolean   meta_core_begin_grab_op (Display    *xdisplay,
 
134
                                    Window      frame_xwindow,
 
135
                                    MetaGrabOp  op,
 
136
                                    gboolean    pointer_already_grabbed,
 
137
                                    int         event_serial,
 
138
                                    int         button,
 
139
                                    gulong      modmask,
 
140
                                    Time        timestamp,
 
141
                                    int         root_x,
 
142
                                    int         root_y);
 
143
void       meta_core_end_grab_op   (Display    *xdisplay,
 
144
                                    Time        timestamp);
 
145
MetaGrabOp meta_core_get_grab_op     (Display    *xdisplay);
 
146
Window     meta_core_get_grab_frame  (Display   *xdisplay);
 
147
int        meta_core_get_grab_button (Display  *xdisplay);
 
148
 
 
149
 
 
150
void       meta_core_grab_buttons  (Display *xdisplay,
 
151
                                    Window   frame_xwindow);
 
152
 
 
153
void       meta_core_set_screen_cursor (Display *xdisplay,
 
154
                                        Window   frame_on_screen,
 
155
                                        MetaCursor cursor);
 
156
 
 
157
void       meta_core_get_screen_size (Display *xdisplay,
 
158
                                      Window   frame_on_screen,
 
159
                                      int     *width,
 
160
                                      int     *height);
 
161
 
 
162
/* Used because we ignore EnterNotify when a window is unmapped that
 
163
 * really shouldn't cause focus changes, by comparing the event serial
 
164
 * of the EnterNotify and the UnmapNotify.
 
165
 */
 
166
void meta_core_increment_event_serial (Display *display);
 
167
 
 
168
int meta_ui_get_last_event_serial (Display *xdisplay);
 
169
 
 
170
#endif
 
171
 
 
172
 
 
173
 
 
174