Back to index

plt-scheme  4.2.1
Functions | Variables
xwButton.c File Reference
#include <X11/IntrinsicP.h>
#include <X11/StringDefs.h>
#include <./xwButtonP.h>

Go to the source code of this file.

Functions

static void activate ()
static void enter ()
static void leave ()
static void _resolve_inheritance ()
static void activate (Widget self, XEvent *event, String *params, Cardinal *num_params)
static void enter (Widget self, XEvent *event, String *params, Cardinal *num_params)
static void leave (Widget self, XEvent *event, String *params, Cardinal *num_params)
static void _resolve_inheritance (WidgetClass class)

Variables

static XtActionsRec actionsList []
static char defaultTranslations []
static XtResource resources []
XfwfButtonClassRec xfwfButtonClassRec
WidgetClass xfwfButtonWidgetClass = (WidgetClass) &xfwfButtonClassRec

Function Documentation

static void _resolve_inheritance ( ) [static]
static void _resolve_inheritance ( WidgetClass  class) [static]

Definition at line 143 of file xwButton.c.

{
  XfwfButtonWidgetClass c = (XfwfButtonWidgetClass) class;
  XfwfButtonWidgetClass super;
  static CompositeClassExtensionRec extension_rec = {
    NULL, NULLQUARK, XtCompositeExtensionVersion,
    sizeof(CompositeClassExtensionRec), True};
  CompositeClassExtensionRec *ext;
  ext = (XtPointer)XtMalloc(sizeof(*ext));
  *ext = extension_rec;
  ext->next_extension = c->composite_class.extension;
  c->composite_class.extension = ext;
  if (class == xfwfButtonWidgetClass) return;
  super = (XfwfButtonWidgetClass)class->core_class.superclass;
}
static void activate ( ) [static]
static void activate ( Widget  self,
XEvent*  event,
String*  params,
Cardinal*  num_params 
) [static]

Definition at line 125 of file xwButton.c.

{
    if (((XfwfButtonWidget)self)->xfwfFrame.frameType == XfwfSunken)
      XtCallCallbackList(self, ((XfwfButtonWidget)self)->xfwfButton.activate, event);
}
static void enter ( ) [static]

Here is the caller graph for this function:

static void enter ( Widget  self,
XEvent*  event,
String*  params,
Cardinal*  num_params 
) [static]

Definition at line 132 of file xwButton.c.

{
    XtCallCallbackList(self, ((XfwfButtonWidget)self)->xfwfButton.enter, event);
}
static void leave ( ) [static]
static void leave ( Widget  self,
XEvent*  event,
String*  params,
Cardinal*  num_params 
) [static]

Definition at line 138 of file xwButton.c.

{
    XtCallCallbackList(self, ((XfwfButtonWidget)self)->xfwfButton.leave, event);
}

Variable Documentation

XtActionsRec actionsList[] [static]
Initial value:
 {
{"activate", activate},
{"enter", enter},
{"leave", leave},
}

Definition at line 23 of file xwButton.c.

char defaultTranslations[] [static]
Initial value:
"\
<Btn1Down>: set_shadow(sunken) \n\
<Btn1Up>: activate() set_shadow() \n\
Button1<Leave>: set_shadow() leave() \n\
Button1<Enter>: set_shadow(sunken) enter() \n\
<Key>Return: set_shadow(sunken) activate() set_shadow() \n\
<EnterNotify>: enter() \n\
<LeaveNotify>: leave() \n\
"

Definition at line 29 of file xwButton.c.

XtResource resources[] [static]
Initial value:
 {
{XtNactivate,XtCActivate,XtRCallback,sizeof(((XfwfButtonRec*)NULL)->xfwfButton.activate),XtOffsetOf(XfwfButtonRec,xfwfButton.activate),XtRImmediate,(XtPointer)NULL },
{XtNenter,XtCEnter,XtRCallback,sizeof(((XfwfButtonRec*)NULL)->xfwfButton.enter),XtOffsetOf(XfwfButtonRec,xfwfButton.enter),XtRImmediate,(XtPointer)NULL },
{XtNleave,XtCLeave,XtRCallback,sizeof(((XfwfButtonRec*)NULL)->xfwfButton.leave),XtOffsetOf(XfwfButtonRec,xfwfButton.leave),XtRImmediate,(XtPointer)NULL },
{XtNframeWidth,XtCFrameWidth,XtRDimension,sizeof(((XfwfButtonRec*)NULL)->xfwfFrame.frameWidth),XtOffsetOf(XfwfButtonRec,xfwfFrame.frameWidth),XtRImmediate,(XtPointer)2 },
{XtNtraversalOn,XtCTraversalOn,XtRBoolean,sizeof(((XfwfButtonRec*)NULL)->xfwfCommon.traversalOn),XtOffsetOf(XfwfButtonRec,xfwfCommon.traversalOn),XtRImmediate,(XtPointer)True },
}

Definition at line 44 of file xwButton.c.

Definition at line 52 of file xwButton.c.

WidgetClass xfwfButtonWidgetClass = (WidgetClass) &xfwfButtonClassRec

Definition at line 123 of file xwButton.c.