Logo Search packages:      
Sourcecode: hildon-theme-tools version File versions  Download package

common.h

/* 
 * GPL license, Copyright (c) 2006 by Nokia Corporation                       
 *                                                                            
 * Authors:                                                                   
 *      Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>               
 *                                                                            
 * 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, version 2.                                                                  
 *                                                                            
 * 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.                      
 *
 */

#include <glib.h>
#include <math.h>
#include <string.h>

00026 struct                          _Template 
{
        gint Width;
        gint Height;
        GSList *ElementList;
        GSList *ColorList;
} typedef                       Template;

00034 struct                          _Element 
{
        gchar *Name;
        gint X;
        gint Y;
        gint Width;
        gint Height;
        gboolean ForcedAlpha;
        gboolean NoAlpha;
} typedef                       Element;

00045 struct                          _Color
{
        gchar *Name;
        gint X;
        gint Y;
} typedef                       Color;
 
Template*                       read_template (gchar *template_file);

Element*                        new_element_from_key (GKeyFile *key_file, gchar *name);

void                            free_element (Element *element);

void                            free_color (Color *color);

void                            show_template (Template *templ);

Color*                          new_color_from_key (GKeyFile *key_file, gchar *name);

void                            free_template (Template *templ);

Generated by  Doxygen 1.6.0   Back to index