home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / XfeWidgets / Xfe / Resources.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  3.5 KB  |  96 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18. /*-----------------------------------------*/
  19. /*                                                                        */
  20. /* Name:        <Xfe/Resources.h>                                        */
  21. /* Description:    Xfe widgets resources utilities.                        */
  22. /* Author:        Ramiro Estrugo <ramiro@netscape.com>                    */
  23. /*                                                                        */
  24. /*----------------------------------------------------------------------*/
  25.  
  26.  
  27. #ifndef _XfeResources_h_                        /* start Resources.h    */
  28. #define _XfeResources_h_
  29.  
  30. #include <Xm/Xm.h>                                /* Motif public defs    */
  31.  
  32. #ifdef __cplusplus                                /* start C++            */
  33. extern "C" {
  34. #endif
  35.  
  36. /*----------------------------------------------------------------------*/
  37. /*                                                                        */
  38. /* Read a single value from resource database.                            */
  39. /*                                                                        */
  40. /*----------------------------------------------------------------------*/
  41. extern Boolean
  42. XfeSubResourceGetBooleanValue        (Widget        parent,
  43.                                      String        widget_name,
  44.                                      String        widget_class_name,
  45.                                      String        resource_name,
  46.                                      String        resource_class,
  47.                                      Boolean    default_value);
  48. /*----------------------------------------------------------------------*/
  49. extern XmString
  50. XfeSubResourceGetXmStringValue        (Widget        parent,
  51.                                      String        widget_name,
  52.                                      String        widget_class_name,
  53.                                      String        resource_name,
  54.                                      String        resource_class,
  55.                                      XmString    default_value);
  56. /*----------------------------------------------------------------------*/
  57. extern String
  58. XfeSubResourceGetStringValue        (Widget        parent,
  59.                                      String        widget_name,
  60.                                      String        widget_class_name,
  61.                                      String        resource_name,
  62.                                      String        resource_class,
  63.                                      String        default_value);
  64. /*----------------------------------------------------------------------*/
  65. extern Pixel
  66. XfeSubResourceGetPixelValue            (Widget        parent,
  67.                                      String        widget_name,
  68.                                      String        widget_class,
  69.                                      String        resource_name,
  70.                                      String        resource_class,
  71.                                      Pixel        default_value);
  72. /*----------------------------------------------------------------------*/
  73. extern String
  74. XfeSubResourceGetWidgetStringValue    (Widget        w,
  75.                                      String        resource_name,
  76.                                      String        resource_class);
  77. /*----------------------------------------------------------------------*/
  78.  
  79. /*----------------------------------------------------------------------*/
  80. /*                                                                        */
  81. /* Check whether a child is enabled.                                    */
  82. /*                                                                        */
  83. /*----------------------------------------------------------------------*/
  84. extern Boolean
  85. XfeChildIsEnabled                    (Widget        parent,
  86.                                      String        child_name,
  87.                                      String        child_class,
  88.                                      Boolean    default_value);
  89. /*----------------------------------------------------------------------*/
  90.  
  91. #ifdef __cplusplus                                /* end C++                */
  92. }
  93. #endif
  94.  
  95. #endif                                            /* end Resources.h        */
  96.