"Fossies" - the Fresh Open Source Software Archive

Member "procmeter3-3.6+svn387/gtk1/widgets/PMText.h" (24 Dec 2010, 1866 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 "PMText.h" see the Fossies "Dox" file reference documentation.

    1 /***************************************
    2   $Header: /home/amb/CVS/procmeter3/gtk1/widgets/PMText.h,v 1.1 2000-12-16 16:39:18 amb Exp $
    3 
    4   ProcMeter Text Widget include file (for ProcMeter 3.3).
    5   ******************/ /******************
    6   Written by Andrew M. Bishop
    7 
    8   This file Copyright 1996,98,2000 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 PMTEXT_H
   16 #define PMTEXT_H    /*+ To stop multiple inclusions. +*/
   17 
   18 #include <gdk/gdk.h>
   19 #include <gtk/gtkadjustment.h>
   20 
   21 #include "PMGeneric.h"
   22 
   23 #define GTK_TYPE_PROCMETERTEXT          (gtk_procmetertext_get_type())
   24 #define GTK_PROCMETERTEXT(obj)          GTK_CHECK_CAST((obj),GTK_TYPE_PROCMETERTEXT,ProcMeterText)
   25 #define GTK_PROCMETERTEXT_CLASS(klass)  GTK_CHECK_CLASS_CAST((klass),GTK_TYPE_PROCMETERTEXT,ProcMeterTextClass)
   26 #define GTK_IS_PROCMETERTEXT(obj)       GTK_CHECK_TYPE((obj),GTK_TYPE_PROCMETERTEXT)
   27 
   28 
   29 typedef struct _ProcMeterText       ProcMeterText;
   30 typedef struct _ProcMeterTextClass  ProcMeterTextClass;
   31 
   32 
   33 struct _ProcMeterText
   34 {
   35  ProcMeterGeneric generic;
   36 
   37  gchar*           text_string;     /*+ The text for the Widget. +*/
   38  GdkFont*         text_font;       /*+ The font for the text. +*/
   39  gushort          text_x,text_y;   /*+ The position of the text. +*/
   40 };
   41 
   42 struct _ProcMeterTextClass
   43 {
   44  ProcMeterGenericClass parent_class;
   45 
   46  void (*resize)(ProcMeterText *pmw);
   47  void (*update)(ProcMeterText *pmw,gboolean all);
   48 };
   49 
   50 guint      gtk_procmetertext_get_type(void);
   51 GtkWidget* gtk_procmetertext_new(void);
   52 
   53 
   54 /* Public functions */
   55 
   56 void ProcMeterTextSetFont(ProcMeterText *pmw,GdkFont *font);
   57 
   58 void ProcMeterTextChangeData(ProcMeterText *pmt,char *data);
   59 
   60 #endif /* PMTEXT_H */