Mercurial > audlegacy-plugins
diff src/aosd/aosd_style_private.h @ 569:d401f87f89f7 trunk
[svn] - added Audacious OSD, yet-another-written-from-scratch plugin to display OSD, based on Ghosd library; currently untied from configure, to compile it you have to run make in its directory; will be added to configure after some testing
author | giacomo |
---|---|
date | Mon, 29 Jan 2007 06:40:04 -0800 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/aosd/aosd_style_private.h Mon Jan 29 06:40:04 2007 -0800 @@ -0,0 +1,71 @@ +/* +* +* Author: Giacomo Lozito <james@develia.org>, (C) 2005-2007 +* +* 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., +* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +* +*/ + +#ifndef _I_AOSD_STYLE_PRIVATE_H +#define _I_AOSD_STYLE_PRIVATE_H 1 + +#include "aosd_common.h" +#include "aosd_cfg.h" +#include <glib.h> +#include <cairo/cairo.h> +#include <pango/pangocairo.h> +#include "ghosd.h" + + +/* decoration render function parameter object + ---------------------------------------------------------- + layout pango layout that contains OSD text + text user-defined options for OSD text + decoration user-defined options for OSD decorations +*/ +typedef struct +{ + PangoLayout * layout; + aosd_cfg_osd_text_t * text; + aosd_cfg_osd_decoration_t * decoration; +} +aosd_deco_style_data_t; + + +/* decoration object + ---------------------------------------------------------- + desc description + render_func render function used to draw the decoration + colors_num number of user-definable colors + padding drawable space available around the text +*/ +typedef struct +{ + const gchar * desc; + void (*render_func)( Ghosd * , cairo_t * , aosd_deco_style_data_t * ); + gint colors_num; + struct + { + gint top; + gint bottom; + gint left; + gint right; + } + padding; +} +aosd_deco_style_t; + + +#endif /* !_I_AOSD_STYLE_PRIVATE_H */