Mercurial > audlegacy-plugins
view src/aosd/aosd_cfg.h @ 866:d8b8b36d2709 trunk
[svn] - prevent skin list overlap when it's first populated and user quickly switchs to other tabs in the prefswin
author | giacomo |
---|---|
date | Fri, 16 Mar 2007 18:47:24 -0700 |
parents | 1708b03e116c |
children | ca9907354db6 |
line wrap: on
line source
/* * * 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_CFG_H #define _I_AOSD_CFG_H 1 #include "aosd_common.h" #include <glib.h> /* in this release only one user font is supported */ #define AOSD_TEXT_FONTS_NUM 1 enum { AOSD_POSITION_PLACEMENT_TOPLEFT = 1, AOSD_POSITION_PLACEMENT_TOP, AOSD_POSITION_PLACEMENT_TOPRIGHT, AOSD_POSITION_PLACEMENT_MIDDLELEFT, AOSD_POSITION_PLACEMENT_MIDDLE, AOSD_POSITION_PLACEMENT_MIDDLERIGHT, AOSD_POSITION_PLACEMENT_BOTTOMLEFT, AOSD_POSITION_PLACEMENT_BOTTOM, AOSD_POSITION_PLACEMENT_BOTTOMRIGHT }; typedef struct { guint16 red; guint16 green; guint16 blue; guint16 alpha; } aosd_color_t; /* config portion containing osd decoration information */ typedef struct { gint code; GArray *colors; gchar *skin_file; } aosd_cfg_osd_decoration_t; /* config portion containing osd text information */ typedef struct { gchar *fonts_name[AOSD_TEXT_FONTS_NUM]; aosd_color_t fonts_color[AOSD_TEXT_FONTS_NUM]; gboolean fonts_draw_shadow[AOSD_TEXT_FONTS_NUM]; aosd_color_t fonts_shadow_color[AOSD_TEXT_FONTS_NUM]; } aosd_cfg_osd_text_t; /* config portion containing osd animation information */ typedef struct { gint timing_display; gint timing_fadein; gint timing_fadeout; } aosd_cfg_osd_animation_t; /* config portion containing osd position information */ typedef struct { gint placement; gint offset_x; gint offset_y; gint maxsize_width; gint multimon_id; } aosd_cfg_osd_position_t; /* config portion containing osd position information */ typedef struct { GArray *active; } aosd_cfg_osd_trigger_t; /* config portion containing all information */ typedef struct { aosd_cfg_osd_position_t position; aosd_cfg_osd_animation_t animation; aosd_cfg_osd_text_t text; aosd_cfg_osd_decoration_t decoration; aosd_cfg_osd_trigger_t trigger; } aosd_cfg_osd_t; /* config portion containing all config information */ typedef struct { gboolean set; aosd_cfg_osd_t * osd; } aosd_cfg_t; /* API */ aosd_cfg_t * aosd_cfg_new ( void ); void aosd_cfg_delete ( aosd_cfg_t * cfg ); aosd_cfg_osd_t * aosd_cfg_osd_new( void ); void aosd_cfg_osd_delete ( aosd_cfg_osd_t * cfg_osd ); aosd_cfg_osd_t * aosd_cfg_osd_copy ( aosd_cfg_osd_t * cfg_osd ); gint aosd_cfg_load ( aosd_cfg_t * cfg ); gint aosd_cfg_save ( aosd_cfg_t * cfg ); #endif /* !_I_AOSD_CFG_H */