home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume2 / xbrowser / part03 / toggleP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-01-03  |  1.8 KB  |  82 lines

  1. /*
  2.  * Systems Sciences Laboratory, Webster Research Center
  3.  *
  4.  * Copyright (c) 1988 Xerox Corporation.  All rights reserved.
  5.  *
  6.  * Copyright protection claimed includes all forms and matters of copyrightable
  7.  * material and information now allowed by statutory or judicial lay or
  8.  * herinafter granted, including without limitation, material generated from
  9.  * the software programs which are displayed on the screen such as icons,
  10.  * screen display looks, etc.
  11.  */
  12.  
  13. /* 
  14.  * ToggleP.h - Private definitions for Toggle widget
  15.  * 
  16.  */
  17.  
  18. #ifndef _XtToggleP_h
  19. #define _XtToggleP_h
  20.  
  21. #include "toggle.h"
  22. #include <X11/CommandP.h>
  23.  
  24. /***********************************************************************
  25.  *
  26.  * Toggle Widget Private Data
  27.  *
  28.  ***********************************************************************/
  29.  
  30. /************************************
  31.  *
  32.  *  Class structure
  33.  *
  34.  ***********************************/
  35.  
  36.  
  37.    /* New fields for the Command widget class record */
  38. typedef struct _ToggleClass 
  39.   {
  40.     int makes_compiler_happy;  /* not used */
  41.   } ToggleClassPart;
  42.  
  43.    /* Full class record declaration */
  44. typedef struct _ToggleClassRec {
  45.     CoreClassPart    core_class;
  46.     SimpleClassPart    simple_class;
  47.     LabelClassPart    label_class;
  48.     CommandClassPart  command_class;
  49.     ToggleClassPart    toggle_class;
  50. } ToggleClassRec;
  51.  
  52. extern ToggleClassRec toggleClassRec;
  53.  
  54. /***************************************
  55.  *
  56.  *  Instance (widget) structure 
  57.  *
  58.  **************************************/
  59.  
  60.     /* New fields for the Command widget record */
  61. typedef struct {
  62.     /* resources */
  63.     XtState   state;
  64. } TogglePart;
  65.  
  66.  
  67.    /* Full widget declaration */
  68. typedef struct _ToggleRec {
  69.     CorePart        core;
  70.     SimplePart        simple;
  71.     LabelPart        label;
  72.     CommandPart    command;
  73.     TogglePart        toggle;
  74. } ToggleRec;
  75.  
  76. #define XtCState    "State"
  77. #define XtRState    "State"
  78.  
  79. #endif _XtToggleP_h
  80.  
  81.  
  82.