/* * widget-pixmap-combo.h - A pixmap selector combo box * Copyright 2000-2003, Ximian, Inc. * * Authors: * Jody Goldberg * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) version 3. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 * USA. */ #ifndef _GO_COMBO_PIXMAPS_H_ #define _GO_COMBO_PIXMAPS_H_ #include #include G_BEGIN_DECLS #define GO_TYPE_COMBO_PIXMAPS (go_combo_pixmaps_get_type ()) #define GO_COMBO_PIXMAPS(o) (G_TYPE_CHECK_INSTANCE_CAST((o), GO_TYPE_COMBO_PIXMAPS, GOComboPixmaps)) #define GO_IS_COMBO_PIXMAPS(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), GO_TYPE_COMBO_PIXMAPS)) typedef struct _GOComboPixmaps GOComboPixmaps; typedef struct _GOMenuPixmaps GOMenuPixmaps; GType go_combo_pixmaps_get_type (void); GOComboPixmaps *go_combo_pixmaps_new (int ncols); void go_combo_pixmaps_clear_elements (GOComboPixmaps *combo); void go_combo_pixmaps_add_element (GOComboPixmaps *combo, GdkPixbuf *pixbuf, int id, char const *tooltip); gboolean go_combo_pixmaps_select_index (GOComboPixmaps *combo, int index); gboolean go_combo_pixmaps_select_id (GOComboPixmaps *combo, int id); int go_combo_pixmaps_get_selected (GOComboPixmaps const *combo, int *index); GtkWidget *go_combo_pixmaps_get_preview (GOComboPixmaps const *combo); GType go_menu_pixmaps_get_type (void); GOMenuPixmaps *go_menu_pixmaps_new (int ncols); void go_menu_pixmaps_add_element (GOMenuPixmaps *menu, GdkPixbuf *pixbuf, int id, const char *tooltip); G_END_DECLS #endif /* _GO_COMBO_PIXMAPS_H_ */