a9a30eb530a24b402261ab9ac5cb08f636a7ea23
[hildon] / src / hildon-remote-texture-private.h
1 /*
2  * This file is a part of hildon
3  *
4  * Copyright (C) 2008 Nokia Corporation, all rights reserved.
5  *
6  * Contact: Rodrigo Novo <rodrigo.novo@nokia.com>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public License
10  * as published by the Free Software Foundation; version 2.1 of
11  * the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21  * 02110-1301 USA
22  *
23  */
24
25 #ifndef                                         __HILDON_REMOTE_TEXTURE_PRIVATE_H__
26 #define                                         __HILDON_REMOTE_TEXTURE_PRIVATE_H__
27
28
29 #include <gtk/gtk.h>
30 #include <sys/types.h>
31
32 G_BEGIN_DECLS
33
34 typedef struct                                  _HildonRemoteTexturePrivate HildonRemoteTexturePrivate;
35
36 #define                                         HILDON_REMOTE_TEXTURE_GET_PRIVATE(obj) \
37                                                 (G_TYPE_INSTANCE_GET_PRIVATE ((obj), \
38                                                 HILDON_TYPE_REMOTE_TEXTURE, HildonRemoteTexturePrivate));
39
40 struct                                          _HildonRemoteTexturePrivate
41 {
42     guint   ready : 1;
43
44     guint   set_shm : 1;
45     guint   set_damage : 1;
46     guint   set_show : 1;
47     guint   set_position : 1;
48     guint   set_scale : 1;
49     guint   set_parent : 1;
50
51     key_t   shm_key;
52     guint   shm_width;
53     guint   shm_height;
54     guint   shm_bpp;
55
56     gint    damage_x1;
57     gint    damage_y1;
58     gint    damage_x2;
59     gint    damage_y2;
60
61     guint   show;
62     guint   opacity;
63
64     double   position_x;
65     double   position_y;
66
67     double  scale_x;
68     double  scale_y;
69
70     GtkWindow* parent;
71     gulong  parent_map_event_cb_id;
72
73     gulong  map_event_cb_id;
74 };
75
76 G_END_DECLS
77
78 #endif                                          /* __HILDON_REMOTE_TEXTURE_PRIVATE_H__ */