~ubuntu-branches/ubuntu/jaunty/xvidcap/jaunty-proposed

« back to all changes in this revision

Viewing changes to Xw/BaseP.h

  • Committer: Bazaar Package Importer
  • Author(s): Christian Marillat
  • Date: 2004-08-29 10:53:42 UTC
  • Revision ID: james.westby@ubuntu.com-20040829105342-qgmnry37eadfkoxx
Tags: upstream-1.1.3
ImportĀ upstreamĀ versionĀ 1.1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * BaseP.h
 
3
 *
 
4
 * Copyright (C) 1998 Rasca Gmelch, Berlin
 
5
 * EMail: thron@gmx.de
 
6
 *
 
7
 * This library is free software; you can redistribute it and/or
 
8
 * modify it under the terms of the GNU Library General Public
 
9
 * License as published by the Free Software Foundation; either
 
10
 * version 2 of the License, or (at your option) any later version.
 
11
 *
 
12
 * This library is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
15
 * Library General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU Library General Public
 
18
 * License along with this library; if not, write to the Free Software
 
19
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
20
 */
 
21
 
 
22
#ifndef _BaseP_h
 
23
#define _BaseP_h
 
24
 
 
25
#include <X11/CoreP.h>
 
26
#include <Xw/Base.h>
 
27
 
 
28
/* new fields for the base widget class record
 
29
 */
 
30
typedef struct {
 
31
        /* XtWidgetProc draw_frame; */
 
32
        XtActionProc tab_action;
 
33
        XtActionProc focus_action;
 
34
        XtActionProc getfocus_action;
 
35
} XwBaseClassPart;
 
36
 
 
37
#define XtInheritTabAction ((XtActionProc) _XtInherit)
 
38
#define XtInheritFocusAction ((XtActionProc) _XtInherit)
 
39
#define XtInheritGetFocusAction ((XtActionProc) _XtInherit)
 
40
 
 
41
/*
 
42
 * full class record declaration
 
43
 */
 
44
typedef struct _XwBaseClassRec {
 
45
        CoreClassPart   core_class;
 
46
        XwBaseClassPart base_class;
 
47
} XwBaseClassRec;
 
48
 
 
49
/*
 
50
 * instance definitions
 
51
 */
 
52
typedef struct {
 
53
        /* resources */
 
54
        Pixel foreground_pixel;
 
55
        Pixel highlight_pixel;
 
56
        Pixel shadow_top_pixel;
 
57
        Pixel shadow_bottom_pixel;
 
58
        Pixel not_sensitive_pixel;
 
59
        Dimension shadow_width;
 
60
        int shadow_type;
 
61
        Boolean resize;
 
62
        Boolean acceptDrop;
 
63
        XtCallbackList tab_callbacks;
 
64
        Widget prev;
 
65
        Widget next;
 
66
        XtPointer data;         /* general purpose data pointer */
 
67
 
 
68
        /* private Widget state */
 
69
        GC downGC;
 
70
        GC upGC;
 
71
        GC blackGC;
 
72
} XwBasePart;
 
73
 
 
74
/*
 
75
 * full instance record declaration
 
76
 */
 
77
typedef struct _XwBaseRec {
 
78
        CorePart        core;
 
79
        XwBasePart      base;
 
80
} XwBaseRec;
 
81
 
 
82
extern XwBaseClassRec xwBaseClassRec;
 
83
 
 
84
#endif
 
85