blob: 5a36dfc8617aeaa34bece662e5a21d334c2e3316 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
/*
* Copyright (C) 2001 Havoc Pennington
* Copyright (C) 2016 Alberts Muktupāvels
*
* 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.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef META_DRAW_SPEC_PRIVATE_H
#define META_DRAW_SPEC_PRIVATE_H
#include <gdk/gdk.h>
G_BEGIN_DECLS
typedef struct _MetaDrawSpec MetaDrawSpec;
typedef struct _MetaThemeMetacity MetaThemeMetacity;
typedef struct _MetaPositionExprEnv MetaPositionExprEnv;
struct _MetaPositionExprEnv
{
GdkRectangle rect;
/* size of an object being drawn, if it has a natural size */
int object_width;
int object_height;
/* global object sizes, always available */
int left_width;
int right_width;
int top_height;
int bottom_height;
int title_width;
int title_height;
int frame_x_center;
int frame_y_center;
int mini_icon_width;
int mini_icon_height;
int icon_width;
int icon_height;
};
G_GNUC_INTERNAL
MetaDrawSpec *meta_draw_spec_new (MetaThemeMetacity *metacity,
const char *expr,
GError **error);
G_GNUC_INTERNAL
void meta_draw_spec_free (MetaDrawSpec *spec);
G_GNUC_INTERNAL
gint meta_draw_spec_parse_x_position (MetaDrawSpec *spec,
const MetaPositionExprEnv *env);
G_GNUC_INTERNAL
gint meta_draw_spec_parse_y_position (MetaDrawSpec *spec,
const MetaPositionExprEnv *env);
G_GNUC_INTERNAL
gint meta_draw_spec_parse_size (MetaDrawSpec *spec,
const MetaPositionExprEnv *env);
G_END_DECLS
#endif
|