File indexing completed on 2025-01-18 10:15:29
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024 #ifndef _XmTabBoxP_h_
0025 #define _XmTabBoxP_h_
0026
0027 #include <Xm/XmP.h>
0028 #include <Xm/ManagerP.h>
0029 #include <Xm/ExtP.h>
0030 #include <Xm/TabBox.h>
0031 #include <Xm/TabList.h>
0032
0033 #ifdef __cplusplus
0034 extern "C" {
0035 #endif
0036
0037
0038 typedef struct _XmTabBoxClassPart {
0039 XtPointer extension;
0040 } XmTabBoxClassPart;
0041
0042 typedef struct _XmTabBoxClassRec {
0043 CoreClassPart core_class;
0044 CompositeClassPart composite_class;
0045 ConstraintClassPart constraint_class;
0046 XmManagerClassPart manager_class;
0047 XmTabBoxClassPart tab_box_class;
0048 } XmTabBoxClassRec;
0049
0050 externalref XmTabBoxClassRec xmTabBoxClassRec;
0051
0052 typedef struct _XmTabBoxPart {
0053 XmFontList font_list;
0054 XmTabStyle tab_style;
0055 XmTabMode tab_mode;
0056 XmTabbedStackList tab_list;
0057 XmTabOrientation tab_orientation;
0058 XmTabEdge tab_edge;
0059 XmTabArrowPlacement arrow_placement;
0060 unsigned char orientation;
0061 Dimension tab_margin_width;
0062 Dimension tab_margin_height;
0063 Dimension tab_label_spacing;
0064 Dimension highlight_thickness;
0065 int tab_corner_percent;
0066 Dimension tab_offset;
0067 Boolean uniform_tab_size;
0068 Boolean tab_auto_select;
0069 Boolean use_image_cache;
0070
0071 Pixel select_color;
0072 Pixmap select_pixmap;
0073
0074 int num_stacks;
0075 int selected_index;
0076 int traversal_index;
0077
0078 Boolean stacked_effect;
0079
0080 XtCallbackList select_callback;
0081 XtCallbackList unselect_callback;
0082
0083
0084 GC _tab_GC;
0085 GC _text_GC;
0086 Pixmap _gray_stipple;
0087 XRectangle *_wanted;
0088 int _num_wanted;
0089 struct _XmTabRect *_actual;
0090 int _num_actual;
0091 int _selected;
0092 int _keyboard;
0093
0094 int _armed_tab;
0095
0096 int _scroll_x;
0097 XRectangle _scroll_rect;
0098
0099 int _corner_size;
0100
0101 int _num_columns;
0102 int _num_rows;
0103
0104
0105
0106
0107
0108 int _bitmap_width;
0109 int _bitmap_height;
0110 Pixmap _bitmap;
0111
0112 GC _zero_GC;
0113 GC _one_GC;
0114
0115 Widget _canvas;
0116 Widget _left_arrow;
0117 Widget _right_arrow;
0118
0119 Boolean _inited;
0120
0121 struct _XmCache *_cache;
0122 int _cache_size;
0123
0124 Boolean check_set_render_table;
0125 } XmTabBoxPart;
0126
0127
0128
0129
0130
0131 #define XmTabBox_font_list(w) (((XmTabBoxWidget)(w))->tab_box.font_list)
0132 #define XmTabBox_tab_style(w) (((XmTabBoxWidget)(w))->tab_box.tab_style)
0133 #define XmTabBox_tab_mode(w) (((XmTabBoxWidget)(w))->tab_box.tab_mode)
0134 #define XmTabBox_tab_list(w) (((XmTabBoxWidget)(w))->tab_box.tab_list)
0135 #define XmTabBox_tab_orientation(w) (((XmTabBoxWidget)(w))->tab_box.tab_orientation)
0136 #define XmTabBox_tab_edge(w) (((XmTabBoxWidget)(w))->tab_box.tab_edge)
0137 #define XmTabBox_arrow_placement(w) (((XmTabBoxWidget)(w))->tab_box.arrow_placement)
0138 #define XmTabBox_orientation(w) (((XmTabBoxWidget)(w))->tab_box.orientation)
0139 #define XmTabBox_tab_margin_width(w) (((XmTabBoxWidget)(w))->tab_box.tab_margin_width)
0140 #define XmTabBox_tab_margin_height(w) (((XmTabBoxWidget)(w))->tab_box.tab_margin_height)
0141 #define XmTabBox_tab_label_spacing(w) (((XmTabBoxWidget)(w))->tab_box.tab_label_spacing)
0142 #define XmTabBox_highlight_thickness(w) (((XmTabBoxWidget)(w))->tab_box.highlight_thickness)
0143 #define XmTabBox_tab_corner_percent(w) (((XmTabBoxWidget)(w))->tab_box.tab_corner_percent)
0144 #define XmTabBox_tab_offset(w) (((XmTabBoxWidget)(w))->tab_box.tab_offset)
0145 #define XmTabBox_uniform_tab_size(w) (((XmTabBoxWidget)(w))->tab_box.uniform_tab_size)
0146 #define XmTabBox_tab_auto_select(w) (((XmTabBoxWidget)(w))->tab_box.tab_auto_select)
0147 #define XmTabBox_use_image_cache(w) (((XmTabBoxWidget)(w))->tab_box.use_image_cache)
0148 #define XmTabBox_select_color(w) (((XmTabBoxWidget)(w))->tab_box.select_color)
0149 #define XmTabBox_select_pixmap(w) (((XmTabBoxWidget)(w))->tab_box.select_pixmap)
0150 #define XmTabBox_num_stacks(w) (((XmTabBoxWidget)(w))->tab_box.num_stacks)
0151 #define XmTabBox_selected_index(w) (((XmTabBoxWidget)(w))->tab_box.selected_index)
0152 #define XmTabBox_traversal_index(w) (((XmTabBoxWidget)(w))->tab_box.traversal_index)
0153 #define XmTabBox_stacked_effect(w) (((XmTabBoxWidget)(w))->tab_box.stacked_effect)
0154 #define XmTabBox_select_callback(w) (((XmTabBoxWidget)(w))->tab_box.select_callback)
0155 #define XmTabBox_unselect_callback(w) (((XmTabBoxWidget)(w))->tab_box.unselect_callback)
0156 #define XmTabBox__tab_GC(w) (((XmTabBoxWidget)(w))->tab_box._tab_GC)
0157 #define XmTabBox__text_GC(w) (((XmTabBoxWidget)(w))->tab_box._text_GC)
0158 #define XmTabBox__gray_stipple(w) (((XmTabBoxWidget)(w))->tab_box._gray_stipple)
0159 #define XmTabBox__wanted(w) (((XmTabBoxWidget)(w))->tab_box._wanted)
0160 #define XmTabBox__num_wanted(w) (((XmTabBoxWidget)(w))->tab_box._num_wanted)
0161 #define XmTabBox__actual(w) (((XmTabBoxWidget)(w))->tab_box._actual)
0162 #define XmTabBox__num_actual(w) (((XmTabBoxWidget)(w))->tab_box._num_actual)
0163 #define XmTabBox__selected(w) (((XmTabBoxWidget)(w))->tab_box._selected)
0164 #define XmTabBox__keyboard(w) (((XmTabBoxWidget)(w))->tab_box._keyboard)
0165 #define XmTabBox__armed_tab(w) (((XmTabBoxWidget)(w))->tab_box._armed_tab)
0166 #define XmTabBox__scroll_x(w) (((XmTabBoxWidget)(w))->tab_box._scroll_x)
0167 #define XmTabBox__scroll_rect(w) (((XmTabBoxWidget)(w))->tab_box._scroll_rect)
0168 #define XmTabBox__corner_size(w) (((XmTabBoxWidget)(w))->tab_box._corner_size)
0169 #define XmTabBox__num_columns(w) (((XmTabBoxWidget)(w))->tab_box._num_columns)
0170 #define XmTabBox__num_rows(w) (((XmTabBoxWidget)(w))->tab_box._num_rows)
0171 #define XmTabBox__bitmap_width(w) (((XmTabBoxWidget)(w))->tab_box._bitmap_width)
0172 #define XmTabBox__bitmap_height(w) (((XmTabBoxWidget)(w))->tab_box._bitmap_height)
0173 #define XmTabBox__bitmap(w) (((XmTabBoxWidget)(w))->tab_box._bitmap)
0174 #define XmTabBox__zero_GC(w) (((XmTabBoxWidget)(w))->tab_box._zero_GC)
0175 #define XmTabBox__one_GC(w) (((XmTabBoxWidget)(w))->tab_box._one_GC)
0176 #define XmTabBox__canvas(w) (((XmTabBoxWidget)(w))->tab_box._canvas)
0177 #define XmTabBox__left_arrow(w) (((XmTabBoxWidget)(w))->tab_box._left_arrow)
0178 #define XmTabBox__right_arrow(w) (((XmTabBoxWidget)(w))->tab_box._right_arrow)
0179 #define XmTabBox__inited(w) (((XmTabBoxWidget)(w))->tab_box._inited)
0180 #define XmTabBox__cache(w) (((XmTabBoxWidget)(w))->tab_box._cache)
0181 #define XmTabBox__cache_size(w) (((XmTabBoxWidget)(w))->tab_box._cache_size)
0182
0183 typedef struct _XmTabBoxRec {
0184 CorePart core;
0185 CompositePart composite;
0186 ConstraintPart constraint;
0187 XmManagerPart manager;
0188 XmTabBoxPart tab_box;
0189 } XmTabBoxRec;
0190
0191 #ifdef __cplusplus
0192 }
0193 #endif
0194
0195 #if defined(VMS) || defined(__VMS)
0196 #include <X11/apienvrst.h>
0197 #endif
0198
0199 #endif