1 /*
2  * Copyright (C) 2000-2009 the xine project
3  *
4  * This file is part of xine, a unix video player.
5  *
6  * xine is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * xine is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
19  *
20  */
21 #ifndef HAVE_XITK_TABS_H
22 #define HAVE_XITK_TABS_H
23 
24 #include "_xitk.h"
25 
26 #define MAX_TABS 256
27 
28 typedef struct {
29   ImlibData              *imlibdata;
30   char                   *skin_element_name;
31   xitk_widget_t          *widget;
32   xitk_widget_t          *left;
33   xitk_widget_t          *right;
34 
35   int                     x, y, width;
36 
37   int                     num_entries;
38   char                  **entries;
39 
40   xitk_widget_t          *tabs[MAX_TABS];
41   btnlist_t              *bt[MAX_TABS];
42 
43   xitk_widget_list_t     *parent_wlist;
44 
45   int                     selected;
46   int                     old_selected;
47 
48   int                     offset;
49   int                     old_offset;
50   int                     bheight;
51   int                     gap_widthstart;
52 
53   xitk_state_callback_t  callback;
54   void                   *userdata;
55 
56 } tabs_private_data_t;
57 
58 #endif
59