"Fossies" - the Fresh Open Source Software Archive

Member "procmeter3-3.6+svn387/xaw/widgets/PMGenericP.h" (24 Dec 2010, 2782 Bytes) of package /linux/misc/procmeter3-3.6+svn387.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "PMGenericP.h" see the Fossies "Dox" file reference documentation.

    1 /***************************************
    2   $Header: /home/amb/CVS/procmeter3/xaw/widgets/PMGenericP.h,v 1.2 2001-01-04 19:26:46 amb Exp $
    3 
    4   ProcMeter Generic Widget Private header file (for ProcMeter 3.3).
    5   ******************/ /******************
    6   Written by Andrew M. Bishop
    7 
    8   This file Copyright 1996,98 Andrew M. Bishop
    9   It may be distributed under the GNU Public License, version 2, or
   10   any higher version.  See section COPYING of the GNU Public license
   11   for conditions under which this file may be redistributed.
   12   ***************************************/
   13 
   14 
   15 #ifndef PMGENERICP_H
   16 #define PMGENERICP_H    /*+ To stop multiple inclusions. +*/
   17 
   18 #include "PMGeneric.h"
   19 
   20 /*+ The Class Part of the Widget, shared among all instances of the ProcMeter Generic Widget. +*/
   21 typedef struct _ProcMeterGenericClassPart
   22 {
   23  void (*resize)(ProcMeterGenericWidget pmw);
   24  void (*update)(ProcMeterGenericWidget pmw);
   25 }
   26 ProcMeterGenericClassPart;
   27 
   28 /*+ The complete Class Record for the ProcMeter Generic Widget, includes the Core Widget Class Part. +*/
   29 typedef struct _ProcMeterGenericClassRec
   30 {
   31  CoreClassPart core_class;                          /*+ The Core Widget Class Part. +*/
   32  ProcMeterGenericClassPart procmeter_generic_class; /*+ The ProcMeter Generic Widget Class Part. +*/
   33 }
   34 ProcMeterGenericClassRec;
   35 
   36 /*+ The actual Class Record for the ProcMeter Generic Widget. +*/
   37 extern ProcMeterGenericClassRec procMeterGenericClassRec;
   38 
   39 /*+ The ProcMeter Generic Widget Part that is used in each of the ProcMeter Generic Widgets. +*/
   40 typedef struct _ProcMeterGenericPart
   41 {
   42  Pixel           body_pixel;       /*+ The body colour (Set & Get via Xt). +*/
   43  GC              body_gc;          /*+ The graphics context for the body. +*/
   44  Dimension       body_height;      /*+ The height of the body part. +*/
   45  Dimension       body_start;       /*+ The start position of the body part. +*/
   46 
   47  char*           label_string;     /*+ The label for the Widget (Set & Get via Xt). +*/
   48  Pixel           label_pixel;      /*+ The label colour (Set & Get via Xt). +*/
   49  GC              label_gc;         /*+ The graphics context for the label. +*/
   50  int             label_pos;        /*+ The position of the label (Set & Get via Xt). +*/
   51  XFontStruct*    label_font;       /*+ The font for the label (Set & Get via Xt). +*/
   52  Dimension       label_height;     /*+ The height of the label. +*/
   53  Dimension       label_x,label_y;  /*+ The position of the label. +*/
   54 }
   55 ProcMeterGenericPart;
   56 
   57 /*+ The complete Widget Record that is used per ProcMeter Generic Widget. +*/
   58 typedef struct _ProcMeterGenericRec
   59 {
   60  CorePart  core;                         /*+ The Core Widget Part. +*/
   61  ProcMeterGenericPart procmeter_generic; /*+ The ProcMeter Generic Widget Part. +*/
   62 }
   63 ProcMeterGenericRec;
   64 
   65 #endif /* PMGENERICP_H */