Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
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