/usr/include/Xm/TabStackP.h is in libmotif-dev 2.3.4-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 | /*
* Motif
*
* Copyright (c) 1987-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these librararies and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*
*/
#ifndef _XmTabStackP_h_
#define _XmTabStackP_h_
#include <Xm/XmP.h>
#include <Xm/ManagerP.h>
#include <Xm/BulletinBP.h>
#include <Xm/ExtP.h>
#include <Xm/TabBox.h>
#include <Xm/TabList.h>
#include <Xm/TabStack.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _XmTabStackClassPart {
String drag_translations;
XtPointer extension;
} XmTabStackClassPart;
typedef struct _XmTabStackClassRec {
CoreClassPart core_class;
CompositeClassPart composite_class;
ConstraintClassPart constraint_class;
XmManagerClassPart manager_class;
XmBulletinBoardClassPart bulletin_board_class;
XmTabStackClassPart tab_stack_class;
} XmTabStackClassRec;
externalref XmTabStackClassRec xmTabStackClassRec;
typedef struct _XmTabStackPart {
/* Resources for the Tab Stack */
XtCallbackList tab_select_callback;
/* Resource to pass down to Tab Box */
XmFontList font_list;
XmTabStyle tab_style;
XmTabMode tab_mode;
XmTabSide tab_side;
XmTabOrientation tab_orientation;
XmString tear_off_label;
Boolean allow_tear_offs;
Boolean uniform_tab_size;
Boolean use_image_cache;
Boolean stacked_effect;
Boolean tab_auto_select;
Dimension tab_margin_width;
Dimension tab_margin_height;
Dimension tab_label_spacing;
Dimension tab_offset;
Dimension highlight_thickness;
Pixel select_color;
Pixel select_pixmap;
int tab_corner_percent;
Widget tab_box;
/* Private Values */
XmTabbedStackList _tab_list;
XRectangle _size;
Widget _active_child;
GC _gc;
Boolean _inited;
Boolean _set_tab_list;
Widget _menu;
Widget _tear_off_button;
/* Drag And Drop Stuff */
Pixmap _source_pixmap;
Pixmap _source_mask;
Pixmap _invalid_pixmap;
Pixmap _invalid_mask;
Widget _source_icon;
Widget _invalid_icon;
Widget _selected_tab; /* used within realize method */
Boolean _selected_notify; /* used within realize method */
Boolean do_notify; /* for notify XmNtabSelectedCallback */
Boolean check_set_render_table;
} XmTabStackPart;
#define XmTabStack_tab_select_callback(w) (((XmTabStackWidget)(w))->tab_stack.tab_select_callback)
#define XmTabStack_font_list(w) (((XmTabStackWidget)(w))->tab_stack.font_list)
#define XmTabStack_tab_style(w) (((XmTabStackWidget)(w))->tab_stack.tab_style)
#define XmTabStack_tab_mode(w) (((XmTabStackWidget)(w))->tab_stack.tab_mode)
#define XmTabStack_tab_side(w) (((XmTabStackWidget)(w))->tab_stack.tab_side)
#define XmTabStack_tab_orientation(w) (((XmTabStackWidget)(w))->tab_stack.tab_orientation)
#define XmTabStack_tear_off_label(w) (((XmTabStackWidget)(w))->tab_stack.tear_off_label)
#define XmTabStack_allow_tear_offs(w) (((XmTabStackWidget)(w))->tab_stack.allow_tear_offs)
#define XmTabStack_uniform_tab_size(w) (((XmTabStackWidget)(w))->tab_stack.uniform_tab_size)
#define XmTabStack_use_image_cache(w) (((XmTabStackWidget)(w))->tab_stack.use_image_cache)
#define XmTabStack_stacked_effect(w) (((XmTabStackWidget)(w))->tab_stack.stacked_effect)
#define XmTabStack_tab_auto_select(w) (((XmTabStackWidget)(w))->tab_stack.tab_auto_select)
#define XmTabStack_tab_margin_width(w) (((XmTabStackWidget)(w))->tab_stack.tab_margin_width)
#define XmTabStack_tab_margin_height(w) (((XmTabStackWidget)(w))->tab_stack.tab_margin_height)
#define XmTabStack_tab_label_spacing(w) (((XmTabStackWidget)(w))->tab_stack.tab_label_spacing)
#define XmTabStack_tab_offset(w) (((XmTabStackWidget)(w))->tab_stack.tab_offset)
#define XmTabStack_highlight_thickness(w) (((XmTabStackWidget)(w))->tab_stack.highlight_thickness)
#define XmTabStack_select_color(w) (((XmTabStackWidget)(w))->tab_stack.select_color)
#define XmTabStack_select_pixmap(w) (((XmTabStackWidget)(w))->tab_stack.select_pixmap)
#define XmTabStack_tab_corner_percent(w) (((XmTabStackWidget)(w))->tab_stack.tab_corner_percent)
#define XmTabStack_tab_box(w) (((XmTabStackWidget)(w))->tab_stack.tab_box)
#define XmTabStack__tab_list(w) (((XmTabStackWidget)(w))->tab_stack._tab_list)
#define XmTabStack__size(w) (((XmTabStackWidget)(w))->tab_stack._size)
#define XmTabStack__active_child(w) (((XmTabStackWidget)(w))->tab_stack._active_child)
#define XmTabStack__gc(w) (((XmTabStackWidget)(w))->tab_stack._gc)
#define XmTabStack__inited(w) (((XmTabStackWidget)(w))->tab_stack._inited)
#define XmTabStack__set_tab_list(w) (((XmTabStackWidget)(w))->tab_stack._set_tab_list)
#define XmTabStack__menu(w) (((XmTabStackWidget)(w))->tab_stack._menu)
#define XmTabStack__tear_off_button(w) (((XmTabStackWidget)(w))->tab_stack._tear_off_button)
#define XmTabStack__source_pixmap(w) (((XmTabStackWidget)(w))->tab_stack._source_pixmap)
#define XmTabStack__source_mask(w) (((XmTabStackWidget)(w))->tab_stack._source_mask)
#define XmTabStack__invalid_pixmap(w) (((XmTabStackWidget)(w))->tab_stack._invalid_pixmap)
#define XmTabStack__invalid_mask(w) (((XmTabStackWidget)(w))->tab_stack._invalid_mask)
#define XmTabStack__source_icon(w) (((XmTabStackWidget)(w))->tab_stack._source_icon)
#define XmTabStack__invalid_icon(w) (((XmTabStackWidget)(w))->tab_stack._invalid_icon)
#define XmTabStack__selected_tab(w) (((XmTabStackWidget)(w))->tab_stack._selected_tab)
#define XmTabStack__selected_notify(w) (((XmTabStackWidget)(w))->tab_stack._selected_notify)
#define XmTabStack_do_notify(w) (((XmTabStackWidget)(w))->tab_stack.do_notify)
typedef struct _XmTabStackRec {
CorePart core;
CompositePart composite;
ConstraintPart constraint;
XmManagerPart manager;
XmBulletinBoardPart bulletin_board;
XmTabStackPart tab_stack;
} XmTabStackRec;
typedef struct _XmTabStackConstraintPart {
XmString tab_label_string;
XmStringDirection tab_string_direction;
unsigned char tab_alignment;
Pixmap tab_label_pixmap;
XmPixmapPlacement tab_pixmap_placement;
Pixel tab_foreground;
Pixel tab_background;
Pixmap tab_background_pixmap;
Boolean free_tab_pixmap;
Boolean tear_off_enabled;
/* Private Memebers */
int index;
Dimension width;
Dimension height;
} XmTabStackConstraintPart;
#define XmTabStackC_tab_label_string(w) \
(((XmTabStackConstraintPtr)((w)->core.constraints))->tab_stack.tab_label_string)
#define XmTabStackC_tab_string_direction(w) \
(((XmTabStackConstraintPtr)((w)->core.constraints))->tab_stack.tab_string_direction)
#define XmTabStackC_tab_alignment(w) \
(((XmTabStackConstraintPtr)((w)->core.constraints))->tab_stack.tab_alignment)
#define XmTabStackC_tab_label_pixmap(w) \
(((XmTabStackConstraintPtr)((w)->core.constraints))->tab_stack.tab_label_pixmap)
#define XmTabStackC_tab_pixmap_placement(w) \
(((XmTabStackConstraintPtr)((w)->core.constraints))->tab_stack.tab_pixmap_placement)
#define XmTabStackC_tab_foreground(w) \
(((XmTabStackConstraintPtr)((w)->core.constraints))->tab_stack.tab_foreground)
#define XmTabStackC_tab_background(w) \
(((XmTabStackConstraintPtr)((w)->core.constraints))->tab_stack.tab_background)
#define XmTabStackC_tab_background_pixmap(w) \
(((XmTabStackConstraintPtr)((w)->core.constraints))->tab_stack.tab_background_pixmap)
#define XmTabStackC_free_tab_pixmap(w) \
(((XmTabStackConstraintPtr)((w)->core.constraints))->tab_stack.free_tab_pixmap)
#define XmTabStackC_tear_off_enabled(w) \
(((XmTabStackConstraintPtr)((w)->core.constraints))->tab_stack.tear_off_enabled)
#define XmTabStackC_index(w) \
(((XmTabStackConstraintPtr)((w)->core.constraints))->tab_stack.index)
#define XmTabStackC_width(w) \
(((XmTabStackConstraintPtr)((w)->core.constraints))->tab_stack.width)
#define XmTabStackC_height(w) \
(((XmTabStackConstraintPtr)((w)->core.constraints))->tab_stack.height)
typedef struct _XmTabStackConstraintRec {
XmManagerConstraintPart manager;
XmTabStackConstraintPart tab_stack;
} XmTabStackConstraintRec, * XmTabStackConstraintPtr;
#define XmNillegalUniformTabSizeMsg \
"XmNuniformTabSize must be true if XmNtabMode is XmTABS_STACKED or\n\
XmTABS_STACKED_STATIC."
#define XmTabStackIndex (XmBulletinBoardIndex + 1)
#ifdef __cplusplus
} /* Close scope of 'extern "C"' declaration */
#endif
#endif /* _TabStackP_h_ */
|