home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / include / x11 / xaw / simplemenp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-17  |  3.3 KB  |  100 lines

  1. /*
  2.  * $XConsortium: SimpleMenP.h,v 1.14 94/04/17 20:12:44 kaleb Exp $
  3.  *
  4. Copyright (c) 1989, 1994  X Consortium
  5.  
  6. Permission is hereby granted, free of charge, to any person obtaining a copy
  7. of this software and associated documentation files (the "Software"), to deal
  8. in the Software without restriction, including without limitation the rights
  9. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  10. copies of the Software, and to permit persons to whom the Software is
  11. furnished to do so, subject to the following conditions:
  12.  
  13. The above copyright notice and this permission notice shall be included in
  14. all copies or substantial portions of the Software.
  15.  
  16. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  17. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  18. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  19. X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  20. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  21. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  22.  
  23. Except as contained in this notice, the name of the X Consortium shall not be
  24. used in advertising or otherwise to promote the sale, use or other dealings
  25. in this Software without prior written authorization from the X Consortium.
  26.  *
  27.  */
  28.  
  29. /*
  30.  * SimpleMenuP.h - Private Header file for SimpleMenu widget.
  31.  *
  32.  * Date:    April 3, 1989
  33.  *
  34.  * By:      Chris D. Peterson
  35.  *          MIT X Consortium
  36.  *          kit@expo.lcs.mit.edu
  37.  */
  38.  
  39. #ifndef _SimpleMenuP_h
  40. #define _SimpleMenuP_h
  41.  
  42. #include <X11/Xaw/SimpleMenu.h>
  43. #include <X11/Xaw/SmeP.h>
  44. #include <X11/ShellP.h>
  45.  
  46. typedef struct {
  47.     XtPointer extension;        /* For future needs. */
  48. } SimpleMenuClassPart;
  49.  
  50. typedef struct _SimpleMenuClassRec {
  51.   CoreClassPart              core_class;
  52.   CompositeClassPart      composite_class;
  53.   ShellClassPart          shell_class;
  54.   OverrideShellClassPart  override_shell_class;
  55.   SimpleMenuClassPart      simpleMenu_class;
  56. } SimpleMenuClassRec;
  57.  
  58. extern SimpleMenuClassRec simpleMenuClassRec;
  59.  
  60. typedef struct _SimpleMenuPart {
  61.  
  62.   /* resources */
  63.  
  64.   String       label_string;    /* The string for the label or NULL. */
  65.   SmeObject   label;        /* If label_string is non-NULL then this is
  66.                    the label widget. */
  67.   WidgetClass  label_class;    /* Widget Class of the menu label object. */
  68.  
  69.   Dimension    top_margin;    /* Top and bottom margins. */
  70.   Dimension    bottom_margin;
  71.   Dimension    row_height;    /* height of each row (menu entry) */
  72.  
  73.   Cursor       cursor;        /* The menu's cursor. */
  74.   SmeObject popup_entry;    /* The entry to position the cursor on for
  75.                    when using XawPositionSimpleMenu. */
  76.   Boolean      menu_on_screen;    /* Force the menus to be fully on the screen.*/
  77.   int          backing_store;    /* What type of backing store to use. */
  78.  
  79.   /* private state */
  80.  
  81.   Boolean recursive_set_values;    /* contain a possible infinite loop. */
  82.  
  83.   Boolean menu_width;        /* If true then force width to remain 
  84.                    core.width */
  85.   Boolean menu_height;        /* Just like menu_width, but for height. */
  86.  
  87.   SmeObject entry_set;        /* The entry that is currently set or
  88.                    highlighted. */
  89. } SimpleMenuPart;
  90.  
  91. typedef struct _SimpleMenuRec {
  92.   CorePart        core;
  93.   CompositePart     composite;
  94.   ShellPart             shell;
  95.   OverrideShellPart     override;
  96.   SimpleMenuPart    simple_menu;
  97. } SimpleMenuRec;
  98.  
  99. #endif /* _SimpleMenuP_h */
  100.