2
* Copyright (C) 2004 the xine-project
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.
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.
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
19
* $Id: skin.h,v 1.1 2004/06/17 08:38:05 guenter Exp $
21
* xml/javascript skin stuff
28
#include <gdk-pixbuf/gdk-pixbuf.h>
32
#include "xmlparser.h"
33
#include "script_engine.h"
35
typedef struct theme_s theme_t;
36
typedef struct view_s view_t;
37
typedef struct skin_widget_s skin_widget_t;
39
struct skin_widget_s {
41
skin_widget_t *parent;
47
char *xscript, *yscript;
48
char *wscript, *hscript;
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);
69
gboolean repaint_needed;
73
GtkWidget *window, *fixed;
78
typedef struct subview_s subview_t;
85
char *halign, *valign;