/usr/include/libaudgui/libaudgui-gtk.h is in audacious-dev 3.9-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | /*
* libaudgui-gtk.h
* Copyright 2010-2012 John Lindgren
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions, and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions, and the following disclaimer in the documentation
* provided with the distribution.
*
* This software is provided "as is" and without any warranty, express or
* implied. In no event shall the authors be liable for any damages arising from
* the use of this software.
*/
#ifndef LIBAUDGUI_GTK_H
#define LIBAUDGUI_GTK_H
#include <stdint.h>
#include <gtk/gtk.h>
#include <libaudcore/objects.h>
#define audgui_create_widgets(b, w) audgui_create_widgets_with_domain (b, w, PACKAGE)
enum class AudMenuID;
struct PreferencesWidget;
typedef void (* AudguiCallback) (void * data);
class AudguiPixbuf : public SmartPtr<GdkPixbuf, aud::typed_func<GdkPixbuf, g_object_unref>>
{
public:
AudguiPixbuf () : SmartPtr () {}
explicit AudguiPixbuf (GdkPixbuf * ptr) : SmartPtr (ptr) {}
int width ()
{ return gdk_pixbuf_get_width (get ()); }
int height ()
{ return gdk_pixbuf_get_height (get ()); }
AudguiPixbuf ref ()
{ return AudguiPixbuf (get () ? (GdkPixbuf *) g_object_ref (get ()) : nullptr); }
};
/* pixbufs.c */
AudguiPixbuf audgui_pixbuf_from_data (const void * data, int64_t size);
AudguiPixbuf audgui_pixbuf_fallback ();
void audgui_pixbuf_scale_within (AudguiPixbuf & pixbuf, int size);
AudguiPixbuf audgui_pixbuf_request (const char * filename, bool * queued = nullptr);
AudguiPixbuf audgui_pixbuf_request_current (bool * queued = nullptr);
/* plugin-menu.c */
GtkWidget * audgui_get_plugin_menu (AudMenuID id);
/* prefs-widget.c */
void audgui_create_widgets_with_domain (GtkWidget * box,
ArrayRef<PreferencesWidget> widgets, const char * domain);
/* scaled-image.c -- okay to use without audgui_init() */
GtkWidget * audgui_scaled_image_new (GdkPixbuf * pixbuf);
void audgui_scaled_image_set (GtkWidget * widget, GdkPixbuf * pixbuf);
/* util.c -- okay to use without audgui_init() */
int audgui_get_dpi ();
int audgui_to_native_dpi (int size);
int audgui_to_portable_dpi (int size);
int audgui_get_digit_width (GtkWidget * widget);
void audgui_get_mouse_coords (GtkWidget * widget, int * x, int * y);
void audgui_get_mouse_coords (GdkScreen * screen, int * x, int * y);
void audgui_get_monitor_geometry (GdkScreen * screen, int x, int y, GdkRectangle * geom);
void audgui_destroy_on_escape (GtkWidget * widget);
void audgui_simple_message (GtkWidget * * widget, GtkMessageType type,
const char * title, const char * text);
GtkWidget * audgui_button_new (const char * text, const char * icon,
AudguiCallback callback, void * data);
GtkWidget * audgui_file_entry_new (GtkFileChooserAction action, const char * title);
String audgui_file_entry_get_uri (GtkWidget * entry);
void audgui_file_entry_set_uri (GtkWidget * entry, const char * uri);
GtkWidget * audgui_dialog_new (GtkMessageType type, const char * title,
const char * text, GtkWidget * button1, GtkWidget * button2);
void audgui_dialog_add_widget (GtkWidget * dialog, GtkWidget * widget);
#endif
|