view audacious/playlist_list.h @ 1252:ece68ef26b94 trunk

[svn] - we don't really have to unwire track 0 this way, as 0 will be selected by default if no subsong URI is given
author nenolod
date Thu, 15 Jun 2006 05:17:49 -0700
parents 3131795a78c4
children f8c976466f60
line wrap: on
line source

/*  BMP - Cross-platform multimedia player
 *  Copyright (C) 2003-2004  BMP development team.
 *
 *  Based on XMMS:
 *  Copyright (C) 1998-2003  XMMS development team.
 *
 *  This program 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) any later version.
 *
 *  This program 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 this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */

#ifndef PLAYLIST_LIST_H
#define PLAYLIST_LIST_H

#include <glib.h>
#include <gtk/gtk.h>
#include <gdk/gdk.h>

#include "widget.h"

#define PLAYLIST_LIST(x)    ((PlayList_List *)(x))
struct _PlayList_List {
    Widget pl_widget;
    gint pl_first, pl_fheight, pl_prev_selected, pl_prev_min, pl_prev_max;
    gint pl_num_visible, pl_drag_pos;
    gboolean pl_dragging, pl_auto_drag_down, pl_auto_drag_up;
    gint pl_auto_drag_up_tag, pl_auto_drag_down_tag;
    gboolean pl_drag_motion;
    gint drag_motion_x, drag_motion_y;
};

typedef struct _PlayList_List PlayList_List;

PlayList_List *create_playlist_list(GList ** wlist, GdkPixmap * parent,
                                    GdkGC * gc, gint x, gint y, gint w,
                                    gint h);
void playlist_list_move_up(PlayList_List * pl);
void playlist_list_move_down(PlayList_List * pl);
int playlist_list_get_playlist_position(PlayList_List * pl, gint x, gint y);
void playlist_list_set_font(const gchar * font);
GdkPixmap *rootpix;
GdkPixmap *shade_pixmap(GdkPixmap *in, gint x, gint y, gint x_offset, gint y_offset, gint w, gint h, GdkColor *shade_color);
GdkPixmap *get_transparency_pixmap(void);

#endif