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_offset : 1;
49
    guint   set_scale : 1;
50
    guint   set_parent : 1;
51
52
    key_t   shm_key;
53
    guint   shm_width;
54
    guint   shm_height;
55
    guint   shm_bpp;
56
57
    gint    damage_x1;
58
    gint    damage_y1;
59
    gint    damage_x2;
60
    gint    damage_y2;
61
62
    guint   show;
63
    guint   opacity;
64
65
    gint    x;
66
    gint    y;
67
    gint    width;
68
    gint    height;
69
70
    double   offset_x;
71
    double   offset_y;
72
73
    double  scale_x;
74
    double  scale_y;
75
76
    GtkWindow* parent;
77
    gulong  parent_map_event_cb_id;
78
79
    gulong  map_event_cb_id;
80
};
81
82
G_END_DECLS
83
84
#endif                                          /* __HILDON_REMOTE_TEXTURE_PRIVATE_H__ */