/*
 * libaudgui-gtk.h
 * Copyright 2010 Audacious Development Team
 *
 * This file is part of Audacious.
 *
 * Audacious 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, version 2 or version 3 of the License.
 *
 * Audacious 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * Audacious. If not, see <http://www.gnu.org/licenses/>.
 *
 * The Audacious team does not consider modular code linking to Audacious or
 * using our public API to be a derived work.
 */

#ifndef LIBAUDGUI_GTK_H
#define LIBAUDGUI_GTK_H

#include <gtk/gtk.h>

/* effects-menu.c */
GtkWidget * audgui_create_effects_menu (void);

/* iface-menu.c */
GtkWidget * audgui_create_iface_menu (void);

void audgui_playlist_manager_update(void);
void audgui_playlist_manager_ui_show(GtkWidget *mainwin);
void audgui_playlist_manager_destroy(void);

/* library-store.c */
enum
{
    AUDGUI_LIBRARY_STORE_TITLE, /* G_TYPE_STRING */
    AUDGUI_LIBRARY_STORE_FONT_WEIGHT, /* PANGO_TYPE_WEIGHT */
    AUDGUI_LIBRARY_STORE_ENTRY_COUNT, /* G_TYPE_INT */
    AUDGUI_LIBRARY_STORE_COLUMNS
};

GtkTreeModel * audgui_get_library_store (void);

/* util.c */
void audgui_hide_on_delete (GtkWidget * widget);
void audgui_hide_on_escape (GtkWidget * widget);
void audgui_destroy_on_escape (GtkWidget * widget);
void audgui_simple_message (GtkWidget * * widget, GtkMessageType type,
 const gchar * title, const gchar * text);
void audgui_connect_check_box (GtkWidget * box, gboolean * setting);

GdkPixbuf * audgui_pixbuf_from_data (void * data, gint size);
GdkPixbuf * audgui_pixbuf_for_file (const gchar * filename);
void audgui_pixbuf_scale_within (GdkPixbuf * * pixbuf, gint size);

#endif
