• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ev_UnixFontCombo.h

Go to the documentation of this file.
00001 /*
00002  *  Copyright (C) 2005 Robert Staudinger
00003  *
00004  *  This software is free software; you can redistribute it and/or modify
00005  *  it under the terms of the GNU Library General Public License as published by
00006  *  the Free Software Foundation; either version 2, or (at your option)
00007  *  any later version.
00008  *
00009  *  This program is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *  GNU Library General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU Library General Public License
00015  *  along with this program; if not, write to the Free Software
00016  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00017  */
00018 
00019 #ifndef ABI_FONT_COMBO_H
00020 #define ABI_FONT_COMBO_H
00021 
00022 #include <gtk/gtk.h>
00023 
00024 G_BEGIN_DECLS
00025 
00026 #define ABI_TYPE_FONT_COMBO                  (abi_font_combo_get_type ())
00027 #define ABI_FONT_COMBO(obj)                  (G_TYPE_CHECK_INSTANCE_CAST ((obj), ABI_TYPE_FONT_COMBO, AbiFontCombo))
00028 #define ABI_FONT_COMBO_CLASS(klass)          (G_TYPE_CHECK_CLASS_CAST ((klass), ABI_TYPE_FONT_COMBO, AbiFontComboClass))
00029 #define ABI_IS_FONT_COMBO(obj)               (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ABI_TYPE_FONT_COMBO))
00030 #define ABI_IS_FONT_COMBO_CLASS(klass)       (G_TYPE_CHECK_CLASS_TYPE ((klass), ABI_TYPE_FONT_COMBO))
00031 #define ABI_FONT_COMBO_GET_CLASS(obj)        (G_TYPE_INSTANCE_GET_CLASS ((obj), ABI_TYPE_FONT_COMBO, AbiFontComboClass))
00032 
00033 typedef struct _AbiFontCombo        AbiFontCombo;
00034 typedef struct _AbiFontComboClass   AbiFontComboClass;
00035 
00036 struct _AbiFontCombo {
00037     GtkComboBox      parent;
00038     GtkTreeModel    *model;
00039     GtkTreeModel    *sort;
00040     gboolean     is_disposed;
00041 };
00042 
00043 struct _AbiFontComboClass {
00044     GtkComboBoxClass parent;
00045 
00046     void (* popup_opened) (GtkCellRenderer  *cell,
00047                    GdkRectangle *position);
00048     void (* prelight) (AbiFontCombo *self,
00049                const gchar  *text);
00050     void (* popup_closed) (AbiFontCombo *self);
00051 };
00052 
00053 GType abi_font_combo_get_type (void);
00054 
00055 GtkWidget *     abi_font_combo_new (void);
00056 void        abi_font_combo_insert_font (AbiFontCombo *self, const gchar *font, gboolean select);
00057 void        abi_font_combo_set_fonts (AbiFontCombo *self, const gchar **fonts);
00058 
00059 G_END_DECLS
00060 
00061 #endif /* ABI_FONT_COMBO_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1