home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / include / gdict-1.0 / gdict / gdict-entry.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-04-09  |  2.3 KB  |  71 lines

  1. /* gdict-entry.h - GtkEntry widget with dictionary completion
  2.  *
  3.  * Copyright (C) 2005  Emmanuele Bassi <ebassi@gmail.com>
  4.  *
  5.  * This library is free software; you can redistribute it and/or
  6.  * modify it under the terms of the GNU Library General Public
  7.  * License as published by the Free Software Foundation; either
  8.  * version 2 of the License, or (at your option) any later version.
  9.  *
  10.  * This library is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  13.  * Library General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU Library General Public
  16.  * License along with this library; if not, write to the
  17.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  18.  */
  19.  
  20. #ifndef __GDICT_ENTRY_H__
  21. #define __GDICT_ENTRY_H__
  22.  
  23. #include <gtk/gtk.h>
  24.  
  25. #include "gdict-context.h"
  26.  
  27. G_BEGIN_DECLS
  28.  
  29. #define GDICT_TYPE_ENTRY        (gdict_entry_get_type ())
  30. #define GDICT_ENTRY(obj)        (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDICT_TYPE_ENTRY, GdictEntry))
  31. #define GDICT_IS_ENTRY(obj)        (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDICT_TYPE_ENTRY))
  32. #define GDICT_ENTRY_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GDICT_TYPE_ENTRY, GdictEntryClass))
  33. #define GDICT_IS_ENTRY_CLASS(klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), GDICT_TYPE_ENTRY))
  34. #define GDICT_ENTRY_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), GDICT_TYPE_ENTRY, GdictEntryClass))
  35.  
  36. typedef struct _GdictEntry        GdictEntry;
  37. typedef struct _GdictEntryClass   GdictEntryClass;
  38. typedef struct _GdictEntryPrivate GdictEntryPrivate;
  39.  
  40. struct _GdictEntry
  41. {
  42.   /*< private >*/
  43.   GtkEntry parent_instance;
  44.   
  45.   GdictEntryPrivate *priv;
  46. };
  47.  
  48. struct _GdictEntryClass
  49. {
  50.   GtkEntryClass parent_class;
  51.   
  52.   /* padding for future expansion */
  53.   void (*_gdict_entry_1) (void);
  54.   void (*_gdict_entry_2) (void);
  55.   void (*_gdict_entry_3) (void);
  56.   void (*_gdict_entry_4) (void);
  57. };
  58.  
  59. GType         gdict_entry_get_type         (void) G_GNUC_CONST;
  60.  
  61. GtkWidget *   gdict_entry_new              (void);
  62. GtkWidget *   gdict_entry_new_with_context (GdictContext *context);
  63.  
  64. void          gdict_entry_set_context      (GdictEntry   *entry,
  65.                         GdictContext *context);
  66. GdictContext *gdict_entry_get_context      (GdictEntry   *entry);
  67.  
  68. G_END_DECLS
  69.  
  70. #endif /* __GDICT_ENTRY_H__ */
  71.