1
/* Metacity interface used by GTK+ UI to talk to core */
4
* Copyright (C) 2001 Havoc Pennington
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.
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.
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
25
/* Don't include core headers here */
29
void meta_core_get_client_size (Display *xdisplay,
34
Window meta_core_get_client_xwindow (Display *xdisplay,
35
Window frame_xwindow);
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);
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);
47
void meta_core_queue_frame_resize (Display *xdisplay,
48
Window frame_xwindow);
50
/* Move as a result of user operation */
51
void meta_core_user_move (Display *xdisplay,
55
void meta_core_user_resize (Display *xdisplay,
61
void meta_core_user_raise (Display *xdisplay,
62
Window frame_xwindow);
63
void meta_core_user_lower_and_unfocus (Display *xdisplay,
67
void meta_core_user_focus (Display *xdisplay,
71
/* get position of client, same coord space expected by move */
72
void meta_core_get_position (Display *xdisplay,
77
void meta_core_get_size (Display *xdisplay,
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,
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,
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,
113
void meta_core_get_frame_extents (Display *xdisplay,
114
Window frame_xwindow,
121
void meta_core_show_window_menu (Display *xdisplay,
122
Window frame_xwindow,
128
void meta_core_get_menu_accelerator (MetaMenuOp menu_op,
130
unsigned int *keysym,
131
MetaVirtualModifier *modifiers);
133
gboolean meta_core_begin_grab_op (Display *xdisplay,
134
Window frame_xwindow,
136
gboolean pointer_already_grabbed,
143
void meta_core_end_grab_op (Display *xdisplay,
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);
150
void meta_core_grab_buttons (Display *xdisplay,
151
Window frame_xwindow);
153
void meta_core_set_screen_cursor (Display *xdisplay,
154
Window frame_on_screen,
157
void meta_core_get_screen_size (Display *xdisplay,
158
Window frame_on_screen,
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.
166
void meta_core_increment_event_serial (Display *display);
168
int meta_ui_get_last_event_serial (Display *xdisplay);