home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / tcl / tclmotif.1 / tclmotif / tm.1.2 / src / tmSubResources.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-03  |  1.3 KB  |  52 lines

  1. /*
  2.  * tmSubResources.c --
  3.  *    This module implements the interface to the
  4.  *    subresources of widgets such as Text.
  5.  *
  6.  * Copyright 1993 Jan Newmarch, University of Canberra.
  7.  * Permission to use, copy, modify, and distribute this
  8.  * software and its documentation for any purpose and without
  9.  * fee is hereby granted, provided that the above copyright
  10.  * notice appear in all copies.  The author
  11.  * makes no representations about the suitability of this
  12.  * software for any purpose.  It is provided "as is" without
  13.  * express or implied warranty.
  14.  */
  15.  
  16. #include <Xm/BaseClassP.h>
  17. #ifdef DEBUG_MALLOC
  18. #include <dbmalloc.h>
  19. #endif
  20.  
  21. /*
  22.  *--------------------------------------------------------------
  23.  *
  24.  * Tm_GetSecondaryResources --
  25.  *
  26.  *    Get the list of secondary resources from a widget class
  27.  *
  28.  * Results:
  29.  *
  30.  *    returns the list and number in "sub_resources" and
  31.  *    "num_sub_resources"
  32.  *
  33.  * Side effects:
  34.  *
  35.  *    none
  36.  *--------------------------------------------------------------
  37.  */
  38.  
  39. void
  40. Tm_GetSecondaryResources(class, sub_resources, num_sub_resources)
  41.     WidgetClass class;
  42.     XmSecondaryResourceData **sub_resources;
  43.     Cardinal *num_sub_resources;
  44. {
  45.     XtPointer extension;
  46.     XtResourceList rl;
  47.  
  48.  
  49.     *num_sub_resources = 
  50.     ((XmBaseClassExtRec *) extension)->getSecResData(class, sub_resources);
  51. }
  52.