Mercurial > audlegacy-plugins
view src/skins/ui_skinned_button.h @ 2975:4d778b7a19c6
now sndfile can display Japanese file name.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Thu, 12 Feb 2009 01:50:09 +0900 |
parents | 51fc44b99b58 |
children |
line wrap: on
line source
/* * Audacious - a cross-platform multimedia player * Copyright (c) 2007 Tomasz Moń * * 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; under version 3 of the License. * * 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, 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 AUDACIOUS_UI_SKINNED_BUTTON_H #define AUDACIOUS_UI_SKINNED_BUTTON_H #include <gtk/gtk.h> #include "ui_skin.h" #define UI_SKINNED_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ui_skinned_button_get_type(), UiSkinnedButton)) #define UI_SKINNED_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ui_skinned_button_get_type(), UiSkinnedButtonClass)) #define UI_SKINNED_IS_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ui_skinned_button_get_type())) typedef struct _UiSkinnedButton UiSkinnedButton; typedef struct _UiSkinnedButtonClass UiSkinnedButtonClass; enum { TYPE_NOT_SET, TYPE_PUSH, TYPE_TOGGLE, TYPE_SMALL }; struct _UiSkinnedButton { GtkWidget widget; GdkWindow *event_window; gboolean button_down; gboolean pressed; gboolean hover; gboolean inside; gint type; gint x, y; }; struct _UiSkinnedButtonClass { GtkWidgetClass parent_class; void (* pressed) (UiSkinnedButton *button); void (* released) (UiSkinnedButton *button); void (* clicked) (UiSkinnedButton *button); void (* right_clicked) (UiSkinnedButton *button); void (* scaled) (UiSkinnedButton *button); }; GType ui_skinned_button_get_type(void) G_GNUC_CONST; GtkWidget* ui_skinned_button_new(); void ui_skinned_push_button_setup(GtkWidget *button, GtkWidget *fixed, gint x, gint y, gint w, gint h, gint nx, gint ny, gint px, gint py, SkinPixmapId si); void ui_skinned_toggle_button_setup(GtkWidget *button, GtkWidget *fixed, gint x, gint y, gint w, gint h, gint nx, gint ny, gint px, gint py, gint pnx, gint pny, gint ppx, gint ppy, SkinPixmapId si); void ui_skinned_small_button_setup(GtkWidget *button, GtkWidget *fixed, gint x, gint y, gint w, gint h); void ui_skinned_button_set_skin_index2(GtkWidget *button, SkinPixmapId si); void ui_skinned_button_move_relative(GtkWidget *button, gint x, gint y); void ui_skinned_button_set_inside(GtkWidget *widget, gboolean inside); #endif /* AUDACIOUS_UI_SKINNED_BUTTON_H */