Back to index

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

Go to the source code of this file.

Functions

static void _resolve_inheritance ()
static void realize ()
static Boolean set_values ()
static void _resolve_inheritance (WidgetClass class)
static void realize (Widget self, XtValueMask *mask, XSetWindowAttributes *attributes)
static Boolean set_values (Widget old, Widget request, Widget self, ArgList args, Cardinal *num_args)

Variables

static XtResource resources []
XfwfCanvasClassRec xfwfCanvasClassRec
WidgetClass xfwfCanvasWidgetClass = (WidgetClass) &xfwfCanvasClassRec

Function Documentation

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

Definition at line 96 of file xwCanvas.c.

{
  XfwfCanvasWidgetClass c = (XfwfCanvasWidgetClass) class;
  XfwfCanvasWidgetClass 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 == xfwfCanvasWidgetClass) return;
  super = (XfwfCanvasWidgetClass)class->core_class.superclass;
}

Here is the call graph for this function:

static void realize ( ) [static]

Here is the caller graph for this function:

static void realize ( Widget  self,
XtValueMask *  mask,
XSetWindowAttributes *  attributes 
) [static]

Definition at line 116 of file xwCanvas.c.

{
    if ((((XfwfCanvasWidget)self)->xfwfCanvas.backingStore == Always)
    ||  (((XfwfCanvasWidget)self)->xfwfCanvas.backingStore == NotUseful)
    ||  (((XfwfCanvasWidget)self)->xfwfCanvas.backingStore == WhenMapped)) {
       *mask |= CWBackingStore;
       attributes->backing_store = ((XfwfCanvasWidget)self)->xfwfCanvas.backingStore;
    } else {
       *mask &= ~CWBackingStore;
    }
    /* chain to parent method */
    xfwfBoardClassRec.core_class.realize(self, mask, attributes);
}
static Boolean set_values ( ) [static]
static Boolean set_values ( Widget  old,
Widget  request,
Widget  self,
ArgList  args,
Cardinal *  num_args 
) [static]

Definition at line 134 of file xwCanvas.c.

{
    if (((XfwfCanvasWidget)old)->xfwfCanvas.backingStore != ((XfwfCanvasWidget)self)->xfwfCanvas.backingStore) {
       if ((((XfwfCanvasWidget)self)->xfwfCanvas.backingStore == Always)
       ||  (((XfwfCanvasWidget)self)->xfwfCanvas.backingStore == NotUseful)
       ||  (((XfwfCanvasWidget)self)->xfwfCanvas.backingStore == WhenMapped)) {
           XSetWindowAttributes attributes;
           unsigned long     mask = CWBackingStore;

           attributes.backing_store = ((XfwfCanvasWidget)self)->xfwfCanvas.backingStore;
           XChangeWindowAttributes(XtDisplay(self), XtWindow(self), mask, &attributes);
       }
    }

    return FALSE; /* there is no need to redraw */
}

Variable Documentation

XtResource resources[] [static]
Initial value:
 {
{XtNbackingStore,XtCBackingStore,XtRInt,sizeof(((XfwfCanvasRec*)NULL)->xfwfCanvas.backingStore),XtOffsetOf(XfwfCanvasRec,xfwfCanvas.backingStore),XtRImmediate,(XtPointer)NotUseful },
}

Definition at line 23 of file xwCanvas.c.

Definition at line 27 of file xwCanvas.c.

WidgetClass xfwfCanvasWidgetClass = (WidgetClass) &xfwfCanvasClassRec

Definition at line 95 of file xwCanvas.c.