Back to index

plt-scheme  4.2.1
xwHScrollb.c
Go to the documentation of this file.
00001 /* Generated by wbuild
00002  * (generator version 3.2)
00003  */
00004 #include <X11/IntrinsicP.h>
00005 #include <X11/StringDefs.h>
00006 #include <./xwHScrollbP.h>
00007 
00008 static char defaultTranslations[] = "\
00009 Ctrl<Key>Left: Scroll(pageLeft) \n\
00010 Ctrl<Key>Right: Scroll(pageRight) \n\
00011 <Key>Left: Scroll(left) \n\
00012 <Key>Right: Scroll(right) \n\
00013 Shift<Key>Home: Scroll(rightSide) \n\
00014 <Key>Home: Scroll(leftSide) \n\
00015 ";
00016 static void _resolve_inheritance(
00017 #if NeedFunctionPrototypes
00018 WidgetClass
00019 #endif
00020 );
00021 
00022 static XtResource resources[] = {
00023 #line 21 "XWidgets/xwHScrollb.w"
00024 {XtNvertical,XtCVertical,XtRBoolean,sizeof(((XfwfHScrollbarRec*)NULL)->xfwfScrollbar.vertical),XtOffsetOf(XfwfHScrollbarRec,xfwfScrollbar.vertical),XtRImmediate,(XtPointer)False },
00025 };
00026 
00027 XfwfHScrollbarClassRec xfwfHScrollbarClassRec = {
00028 { /* core_class part */
00029 /* superclass        */  (WidgetClass) &xfwfScrollbarClassRec,
00030 /* class_name        */  "XfwfHScrollbar",
00031 /* widget_size       */  sizeof(XfwfHScrollbarRec),
00032 /* class_initialize  */  NULL,
00033 /* class_part_initialize*/  _resolve_inheritance,
00034 /* class_inited      */  FALSE,
00035 /* initialize        */  NULL,
00036 /* initialize_hook   */  NULL,
00037 /* realize           */  XtInheritRealize,
00038 /* actions           */  NULL,
00039 /* num_actions       */  0,
00040 /* resources         */  resources,
00041 /* num_resources     */  1,
00042 /* xrm_class         */  NULLQUARK,
00043 /* compres_motion    */  True ,
00044 /* compress_exposure        */  XtExposeCompressMultiple ,
00045 /* compress_enterleave      */  True ,
00046 /* visible_interest  */  False ,
00047 /* destroy           */  NULL,
00048 /* resize            */  XtInheritResize,
00049 /* expose            */  XtInheritExpose,
00050 /* set_values        */  NULL,
00051 /* set_values_hook   */  NULL,
00052 /* set_values_almost        */  XtInheritSetValuesAlmost,
00053 /* get_values+hook   */  NULL,
00054 /* accept_focus      */  XtInheritAcceptFocus,
00055 /* version           */  XtVersion,
00056 /* callback_private  */  NULL,
00057 /* tm_table          */  defaultTranslations,
00058 /* query_geometry    */  XtInheritQueryGeometry,
00059 /* display_acceleator       */  XtInheritDisplayAccelerator,
00060 /* extension         */  NULL 
00061 },
00062 { /* composite_class part */
00063 XtInheritGeometryManager,
00064 XtInheritChangeManaged,
00065 XtInheritInsertChild,
00066 XtInheritDeleteChild,
00067 NULL
00068 },
00069 { /* XfwfCommon_class part */
00070 XtInherit_compute_inside,
00071 XtInherit_total_frame_width,
00072 XtInherit__expose,
00073 XtInherit_highlight_border,
00074 XtInherit_unhighlight_border,
00075 XtInherit_hilite_callbacks,
00076 XtInherit_would_accept_focus,
00077 XtInherit_traverse,
00078 XtInherit_lighter_color,
00079 XtInherit_darker_color,
00080 XtInherit_set_color,
00081 /* traversal_trans */  NULL ,
00082 /* traversal_trans_small */  NULL ,
00083 /* travMode */  1 ,
00084 },
00085 { /* XfwfFrame_class part */
00086  /* dummy */  0
00087 },
00088 { /* XfwfBoard_class part */
00089 XtInherit_set_abs_location,
00090 },
00091 { /* XfwfScrollbar_class part */
00092 XtInherit_scroll_response,
00093 },
00094 { /* XfwfHScrollbar_class part */
00095  /* dummy */  0
00096 },
00097 };
00098 WidgetClass xfwfHScrollbarWidgetClass = (WidgetClass) &xfwfHScrollbarClassRec;
00099 static void _resolve_inheritance(class)
00100 WidgetClass class;
00101 {
00102   XfwfHScrollbarWidgetClass c = (XfwfHScrollbarWidgetClass) class;
00103   XfwfHScrollbarWidgetClass super;
00104   static CompositeClassExtensionRec extension_rec = {
00105     NULL, NULLQUARK, XtCompositeExtensionVersion,
00106     sizeof(CompositeClassExtensionRec), True};
00107   CompositeClassExtensionRec *ext;
00108   ext = (XtPointer)XtMalloc(sizeof(*ext));
00109   *ext = extension_rec;
00110   ext->next_extension = c->composite_class.extension;
00111   c->composite_class.extension = ext;
00112   if (class == xfwfHScrollbarWidgetClass) return;
00113   super = (XfwfHScrollbarWidgetClass)class->core_class.superclass;
00114 }