File: TabBookP.h

package info (click to toggle)
viewmol 2.4.1-13
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 7,212 kB
  • ctags: 2,054
  • sloc: ansic: 30,727; python: 1,849; sh: 921; awk: 433; makefile: 205
file content (112 lines) | stat: -rw-r--r-- 3,630 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
/*******************************************************************************
*                                                                              *
*                                   Viewmol                                    *
*                                                                              *
*                             T A B B O O K P . H                              *
*                                                                              *
*                 Copyright (c) Joerg-R. Hill, October 2003                    *
*                                                                              *
********************************************************************************
*
* $Id: TabBookP.h,v 1.2 2003/11/07 12:53:36 jrh Exp $
* $Log: TabBookP.h,v $
* Revision 1.2  2003/11/07 12:53:36  jrh
* Release 2.4
*
* Revision 1.1  2000/12/10 15:40:50  jrh
* Initial revision
*
*/
/* TabBook widget private definitions */

#ifndef _XcgTabBookP_h
#define _XcgTabBookP_h

#include "TabBook.h"
#include <X11/ConstrainP.h>

#ifdef MOTIF
#include <Xm/XmP.h>
# if XmVersion >= 1002	/* If motif version >= 1.2 */
#   include <Xm/ManagerP.h>
# endif
#include <Xm/BulletinBP.h>
#include <Xm/PrimitiveP.h>   
#endif

#define XtInheritLayout ((Boolean (*)())_XtInherit)

typedef struct {
  int dummy;
} TabBookClassPart;


typedef struct _TabBookClassRec {
    CoreClassPart	core_class;
    CompositeClassPart	composite_class;
    ConstraintClassPart	constraint_class;
#ifdef MOTIF
    XmManagerClassPart  manager_class;
    XmBulletinBoardClassPart    bulletin_class;
#endif
    TabBookClassPart tabBook_class;
} TabBookClassRec;

extern TabBookClassRec tabBookClassRec;

typedef struct _TabBookPart 
{
	int y_margin ;	/* reserved margin around each pushbutton ... */
	int x_margin ;	/* Used to draw Tab around it */
	int x_spacing;	/* x space between each button */
	int x_angle;	/* space on the right to draw andled line */
	int border;	/* border around entire TabBook */
	Dimension button_bot;	/* largest button goes this far */
	Dimension cur_width;
	Dimension cur_height;
	Boolean layout_completed;	/* layout was done at least once */
	Boolean managed_before;		/* manged was done at least once */
	Boolean auto_manage;	/* manager children are automatically mapped when appropriate */
	Widget active_tab;	/* the current page's tab Button */
	Widget active_manager;	/* the current page's manager widget */
	int active_page;	/* 1,2,.. */
	int total_buttons;
	int total_managers;
	int old_active_page;	/* 1,2,.. 0 means none, i.e. init */
	GC drawBackground_GC ;	/* the drawing area background */
	Pixel drawBackground_color;	/* ... and its color */
	GC drawForeground_GC ;	/* the drawing area foreground */
	Pixel drawForeground_color;	/* ... and its color */
	GC bot_shadow_GC;	/* for drawing lines, bottom shadow */
	Pixel bot_shadow_color;	/* ... and its color  */
	GC top_shadow_GC;	/* for drawing lines, top shadow */
	Pixel top_shadow_color;	/* ... and its color  */
	XtCallbackList newPageCallback;
	Widget clip;		/* clip the manager children */
} TabBookPart;

typedef struct _TabBookRec {
    CorePart		core;
    CompositePart	composite;
    ConstraintPart	constraint;
#ifdef MOTIF
    XmManagerPart  manager;
    XmBulletinBoardPart	bulletin_board;
#endif
    TabBookPart	tabBook;
} TabBookRec;


typedef struct _TabBookConstraintPart 
{
	int resize_child;	/* constraint resources */
	int anchor_child;
} TabBookConstraintPart;


typedef struct _TabBookConstraintRec {
    TabBookConstraintPart	tabBook;
} TabBookConstraintRec, *TabBookConstraints;


#endif /* _XcgTabBookP_h */