Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:15:24

0001 /*
0002  * Motif
0003  *
0004  * Copyright (c) 1987-2012, The Open Group. All rights reserved.
0005  *
0006  * These libraries and programs are free software; you can
0007  * redistribute them and/or modify them under the terms of the GNU
0008  * Lesser General Public License as published by the Free Software
0009  * Foundation; either version 2 of the License, or (at your option)
0010  * any later version.
0011  *
0012  * These libraries and programs are distributed in the hope that
0013  * they will be useful, but WITHOUT ANY WARRANTY; without even the
0014  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
0015  * PURPOSE. See the GNU Lesser General Public License for more
0016  * details.
0017  *
0018  * You should have received a copy of the GNU Lesser General Public
0019  * License along with these librararies and programs; if not, write
0020  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
0021  * Floor, Boston, MA 02110-1301 USA
0022  * 
0023  */
0024 #ifndef _XmDataFP_h
0025 #define _XmDataFP_h
0026 
0027 #include <Xm/DataF.h>
0028 #include <Xm/XmP.h>
0029 #include <Xm/ExtP.h>
0030 #include <Xm/TextFP.h>
0031 #include <Xm/Picture.h>
0032 
0033 #ifdef __cplusplus
0034 extern "C" {
0035 #endif
0036 
0037 /*
0038  * Motif doesn't define this:  go figure
0039  */
0040 #ifndef XmTextFieldIndex
0041 #define XmTextFieldIndex (XmPrimitiveIndex + 1)
0042 #endif
0043 
0044 #define XmDataFieldIndex (XmTextFieldIndex)
0045 
0046 typedef struct _XmDataFieldClassPart {
0047     XtPointer extension;
0048 } XmDataFieldClassPart;
0049 
0050 typedef struct _XmDataFieldClassRec {
0051     CoreClassPart        core_class;
0052     XmPrimitiveClassPart primitive_class;
0053     XmDataFieldClassPart data_class;
0054 } XmDataFieldClassRec;
0055 
0056 typedef struct _XmDataFieldPart {
0057     unsigned char   alignment;  /* XmALIGNMENT_BEGINNING by default */
0058     String          picture_source;
0059     XmPicture       picture;
0060     Boolean         auto_fill;
0061     XtCallbackList  picture_error_cb;
0062     XtCallbackList  validate_cb;
0063 } XmDataFieldPart;
0064 
0065 typedef struct _XmDataFieldRec {
0066     CorePart core;
0067     XmPrimitivePart primitive;
0068     XmTextFieldPart text;
0069     XmDataFieldPart data;
0070 } XmDataFieldRec;
0071     
0072 extern XmDataFieldClassRec xmDataFieldClassRec;
0073 
0074 #define XmTextF_activate_callback(w) (((XmDataFieldWidget)(w))->text.activate_callback)
0075 #define XmTextF_focus_callback(w) (((XmDataFieldWidget)(w))->text.focus_callback)
0076 #define XmTextF_losing_focus_callback(w) (((XmDataFieldWidget)(w))->text.losing_focus_callback)
0077 #define XmTextF_modify_verify_callback(w) (((XmDataFieldWidget)(w))->text.modify_verify_callback)
0078 #define XmTextF_wcs_modify_verify_callback(w) (((XmDataFieldWidget)(w))->text.wcs_modify_verify_callback)
0079 #define XmTextF_motion_verify_callback(w) (((XmDataFieldWidget)(w))->text.motion_verify_callback)
0080 #define XmTextF_gain_primary_callback(w) (((XmDataFieldWidget)(w))->text.gain_primary_callback)
0081 #define XmTextF_lose_primary_callback(w) (((XmDataFieldWidget)(w))->text.lose_primary_callback)
0082 #define XmTextF_value_changed_callback(w) (((XmDataFieldWidget)(w))->text.value_changed_callback)
0083 #define XmTextF_value(w) (((XmDataFieldWidget)(w))->text.value)
0084 #define XmTextF_wc_value(w) (((XmDataFieldWidget)(w))->text.wc_value)
0085 #define XmTextF_font_list(w) (((XmDataFieldWidget)(w))->text.font_list)
0086 #define XmTextF_font(w) ((XFontStruct*)(((XmDataFieldWidget)(w))->text.font))
0087 #define XmTextF_selection_array(w) (((XmDataFieldWidget)(w))->text.selection_array)
0088 #define XmTextF_highlight(w) (((XmDataFieldWidget)(w))->text.highlight)
0089 #define XmTextF_gc(w) (((XmDataFieldWidget)(w))->text.gc)
0090 #define XmTextF_image_gc(w) (((XmDataFieldWidget)(w))->text.image_gc)
0091 #define XmTextF_save_gc(w) (((XmDataFieldWidget)(w))->text.save_gc)
0092 #define XmTextF_ibeam_off(w) (((XmDataFieldWidget)(w))->text.ibeam_off)
0093 #define XmTextF_add_mode_cursor(w) (((XmDataFieldWidget)(w))->text.add_mode_cursor)
0094 #define XmTextF_cursor(w) (((XmDataFieldWidget)(w))->text.cursor)
0095 #define XmTextF_putback(w) (((XmDataFieldWidget)(w))->text.putback)
0096 #define XmTextF_stipple_tile(w) (((XmDataFieldWidget)(w))->text.stipple_tile)
0097 #define XmTextF_image_clip(w) (((XmDataFieldWidget)(w))->text.image_clip)
0098 #define XmTextF_cursor_position(w) (((XmDataFieldWidget)(w))->text.cursor_position)
0099 #define XmTextF_new_h_offset(w) (((XmDataFieldWidget)(w))->text.new_h_offset)
0100 #define XmTextF_h_offset(w) (((XmDataFieldWidget)(w))->text.h_offset)
0101 #define XmTextF_orig_left(w) (((XmDataFieldWidget)(w))->text.orig_left)
0102 #define XmTextF_orig_right(w) (((XmDataFieldWidget)(w))->text.orig_right)
0103 #define XmTextF_prim_pos_left(w) (((XmDataFieldWidget)(w))->text.prim_pos_left)
0104 #define XmTextF_prim_pos_right(w) (((XmDataFieldWidget)(w))->text.prim_pos_right)
0105 #define XmTextF_prim_anchor(w) (((XmDataFieldWidget)(w))->text.prim_anchor)
0106 #define XmTextF_sec_pos_left(w) (((XmDataFieldWidget)(w))->text.sec_pos_left)
0107 #define XmTextF_sec_pos_right(w) (((XmDataFieldWidget)(w))->text.sec_pos_right)
0108 #define XmTextF_sec_anchor(w) (((XmDataFieldWidget)(w))->text.sec_anchor)
0109 #define XmTextF_stuff_pos(w) (((XmDataFieldWidget)(w))->text.stuff_pos)
0110 #define XmTextF_select_pos_x(w) (((XmDataFieldWidget)(w))->text.select_pos_x)
0111 #define XmTextF_prim_time(w) (((XmDataFieldWidget)(w))->text.prim_time)
0112 #define XmTextF_dest_time(w) (((XmDataFieldWidget)(w))->text.dest_time)
0113 #define XmTextF_sec_time(w) (((XmDataFieldWidget)(w))->text.sec_time)
0114 #define XmTextF_last_time(w) (((XmDataFieldWidget)(w))->text.last_time)
0115 #define XmTextF_timer_id(w) (((XmDataFieldWidget)(w))->text.timer_id)
0116 #define XmTextF_select_id(w) (((XmDataFieldWidget)(w))->text.select_id)
0117 #define XmTextF_blink_rate(w) (((XmDataFieldWidget)(w))->text.blink_rate)
0118 #define XmTextF_selection_array_count(w) (((XmDataFieldWidget)(w))->text.selection_array_count)
0119 #define XmTextF_threshold(w) (((XmDataFieldWidget)(w))->text.threshold)
0120 #define XmTextF_size_allocd(w) (((XmDataFieldWidget)(w))->text.size_allocd)
0121 #define XmTextF_string_length(w) (((XmDataFieldWidget)(w))->text.string_length)
0122 #define XmTextF_cursor_height(w) (((XmDataFieldWidget)(w))->text.cursor_height)
0123 #define XmTextF_cursor_width(w) (((XmDataFieldWidget)(w))->text.cursor_width)
0124 #define XmTextF_sarray_index(w) (((XmDataFieldWidget)(w))->text.sarray_index)
0125 #define XmTextF_max_length(w) (((XmDataFieldWidget)(w))->text.max_length)
0126 #define XmTextF_max_char_size(w) (((XmDataFieldWidget)(w))->text.max_char_size)
0127 #define XmTextF_columns(w) (((XmDataFieldWidget)(w))->text.columns)
0128 #define XmTextF_margin_width(w) (((XmDataFieldWidget)(w))->text.margin_width)
0129 #define XmTextF_margin_height(w) (((XmDataFieldWidget)(w))->text.margin_height)
0130 #define XmTextF_average_char_width(w) (((XmDataFieldWidget)(w))->text.average_char_width)
0131 #define XmTextF_margin_top(w) (((XmDataFieldWidget)(w))->text.margin_top)
0132 #define XmTextF_margin_bottom(w) (((XmDataFieldWidget)(w))->text.margin_bottom)
0133 #define XmTextF_font_ascent(w) (((XmDataFieldWidget)(w))->text.font_ascent)
0134 #define XmTextF_font_descent(w) (((XmDataFieldWidget)(w))->text.font_descent)
0135 #define XmTextF_resize_width(w) (((XmDataFieldWidget)(w))->text.resize_width)
0136 #define XmTextF_pending_delete(w) (((XmDataFieldWidget)(w))->text.pending_delete)
0137 #define XmTextF_editable(w) (((XmDataFieldWidget)(w))->text.editable)
0138 #define XmTextF_verify_bell(w) (((XmDataFieldWidget)(w))->text.verify_bell)
0139 #define XmTextF_cursor_position_visible(w) (((XmDataFieldWidget)(w))->text.cursor_position_visible)
0140 #define XmTextF_traversed(w) (((XmDataFieldWidget)(w))->text.traversed)
0141 #define XmTextF_add_mode(w) (((XmDataFieldWidget)(w))->text.add_mode)
0142 #define XmTextF_has_focus(w) (((XmDataFieldWidget)(w))->text.has_focus)
0143 #define XmTextF_blink_on(w) (((XmDataFieldWidget)(w))->text.blink_on)
0144 #define XmTextF_cursor_on(w) (((XmDataFieldWidget)(w))->text.cursor_on)
0145 #define XmTextF_refresh_ibeam_off(w) (((XmDataFieldWidget)(w))->text.refresh_ibeam_off)
0146 #define XmTextF_have_inverted_image_gc(w) (((XmDataFieldWidget)(w))->text.have_inverted_image_gc)
0147 #define XmTextF_has_primary(w) (((XmDataFieldWidget)(w))->text.has_primary)
0148 #define XmTextF_has_secondary(w) (((XmDataFieldWidget)(w))->text.has_secondary)
0149 #define XmTextF_has_destination(w) (((XmDataFieldWidget)(w))->text.has_destination)
0150 #define XmTextF_sec_drag(w) (((XmDataFieldWidget)(w))->text.sec_drag)
0151 #define XmTextF_selection_move(w) (((XmDataFieldWidget)(w))->text.selection_move)
0152 #define XmTextF_pending_off(w) (((XmDataFieldWidget)(w))->text.pending_off)
0153 #define XmTextF_fontlist_created(w) (((XmDataFieldWidget)(w))->text.fontlist_created)
0154 #define XmTextF_has_rect(w) (((XmDataFieldWidget)(w))->text.has_rect)
0155 #define XmTextF_do_drop(w) (((XmDataFieldWidget)(w))->text.do_drop)
0156 #define XmTextF_cancel(w) (((XmDataFieldWidget)(w))->text.cancel)
0157 #define XmTextF_extending(w) (((XmDataFieldWidget)(w))->text.extending)
0158 #define XmTextF_sec_extending(w) (((XmDataFieldWidget)(w))->text.sec_extending)
0159 #define XmTextF_in_setvalues(w) (((XmDataFieldWidget)(w))->text.in_setvalues)
0160 #define XmTextF_do_resize(w) (((XmDataFieldWidget)(w))->text.do_resize)
0161 #define XmTextF_sel_start(w) (((XmDataFieldWidget)(w))->text.sel_start)
0162 #define XmTextF_check_set_render_table(w) (((XmDataFieldWidget)(w))->text.check_set_render_table)
0163 #define XmTextF_extension(w) (((XmDataFieldWidget)(w))->text.extension)
0164 #define XmTextF_overstrike(w) (((XmDataFieldWidget)(w))->text.overstrike)
0165 #define XmTextF_redisplay(w) (((XmDataFieldWidget)(w))->text.redisplay)
0166 #define XmTextF_have_fontset(w) (((XmDataFieldWidget)(w))->text.have_fontset)
0167 #ifdef USE_XFT
0168 #define XmTextF_use_xft(w) (((XmDataFieldWidget)(w))->text.use_xft)
0169 #define XmTextF_xft_font(w) (((XftFont*)((XmDataFieldWidget)(w))->text.font))
0170 #endif
0171 #define XmTextF_changed_visible(w) (((XmDataFieldWidget)(w))->text.changed_visible)
0172 
0173 #define XmDataField_alignment(w) (((XmDataFieldWidget)(w))->data.alignment)
0174 #define XmDataField_picture_source(w) (((XmDataFieldWidget)(w))->data.picture_source)
0175 #define XmDataField_picture(w) (((XmDataFieldWidget)(w))->data.picture)
0176 #define XmDataField_picture_state(w) (((XmDataFieldWidget)(w))->data.picture_state)
0177 #define XmDataField_auto_fill(w) (((XmDataFieldWidget)(w))->data.auto_fill)
0178 #define XmDataField_picture_error_cb(w) (((XmDataFieldWidget)(w))->data.picture_error_cb)
0179 #define XmDataField_validate_cb(w) (((XmDataFieldWidget)(w))->data.validate_cb)
0180 
0181 #ifdef __cplusplus
0182 } /* extern "C" */
0183 #endif
0184 
0185 #endif /* _XmDataFP_h */