~siretart/gxine/bug.542506

« back to all changes in this revision

Viewing changes to src/skin.h

  • Committer: Bazaar Package Importer
  • Author(s): Siggi Langauf
  • Date: 2005-01-05 01:49:18 UTC
  • mto: (2.1.1 etch) (1.1.9 upstream)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20050105014918-wgldiqcd79ck2b0v
Tags: upstream-0.4.1
ImportĀ upstreamĀ versionĀ 0.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2004 the xine-project
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or 
 
5
 * modify it under the terms of the GNU General Public License as 
 
6
 * published by the Free Software Foundation; either version 2 of the
 
7
 * License, or (at your option) any later version.
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 * GNU General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU General Public License
 
15
 * along with this program; if not, write to the Free Software
 
16
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 
17
 * USA
 
18
 *
 
19
 * $Id: skin.h,v 1.1 2004/06/17 08:38:05 guenter Exp $
 
20
 *
 
21
 * xml/javascript skin stuff 
 
22
 */
 
23
 
 
24
#ifndef HAVE_SKIN_H
 
25
#define HAVE_SKIN_H
 
26
 
 
27
#include <gdk/gdk.h>
 
28
#include <gdk-pixbuf/gdk-pixbuf.h>
 
29
#include <gtk/gtk.h>
 
30
#include <gdk/gdkx.h>
 
31
#include <X11/Xlib.h>
 
32
#include "xmlparser.h"
 
33
#include "script_engine.h"
 
34
 
 
35
typedef struct theme_s theme_t;
 
36
typedef struct view_s view_t;
 
37
typedef struct skin_widget_s skin_widget_t;
 
38
 
 
39
struct skin_widget_s {
 
40
 
 
41
  skin_widget_t *parent;
 
42
 
 
43
  view_t        *view;
 
44
 
 
45
  char          *id;
 
46
 
 
47
  char          *xscript, *yscript;
 
48
  char          *wscript, *hscript;
 
49
  int            x, y, w, h;
 
50
  int            zIndex;
 
51
  int            type;
 
52
 
 
53
  se_o_t        *se_obj;
 
54
 
 
55
  void (*layout)                  (skin_widget_t *w);
 
56
  void (*paint)                   (skin_widget_t *w, int xo, int yo);
 
57
  void (*handle_motion)           (skin_widget_t *w, int px, int py);
 
58
  gboolean (*handle_button_press) (skin_widget_t *w, int px, int py);
 
59
  void (*handle_button_release)   (skin_widget_t *w, int px, int py);
 
60
};
 
61
 
 
62
struct view_s {
 
63
 
 
64
  skin_widget_t widget;
 
65
 
 
66
  char         *basename;
 
67
 
 
68
  gboolean      is_moving;
 
69
  gboolean      repaint_needed;
 
70
 
 
71
  GList        *widgets;
 
72
 
 
73
  GtkWidget    *window, *fixed;
 
74
  GdkPixmap    *bg;
 
75
  GdkBitmap    *mask;
 
76
};
 
77
 
 
78
typedef struct subview_s subview_t;
 
79
 
 
80
struct subview_s {
 
81
 
 
82
  skin_widget_t widget;
 
83
 
 
84
  gboolean      tiled;
 
85
  char         *halign, *valign;
 
86
 
 
87
  GdkPixbuf    *pix;
 
88
 
 
89
  GList        *widgets;
 
90
};
 
91
 
 
92
struct theme_s {
 
93
 
 
94
  GList        *views;
 
95
 
 
96
  se_o_t       *se_obj;
 
97
  GList        *jobs;
 
98
};
 
99
 
 
100
#endif