Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

cr-box-view.h

Go to the documentation of this file.
00001 /* -*- Mode: C; indent-tabs-mode:nil; c-basic-offset: 8-*- */
00002 
00003 /*
00004  * This file is part of The Croco Library
00005  *
00006  * Copyright (C) 2002-2003 Dodji Seketeli <dodji@seketeli.org>
00007  *
00008  * This program is free software; you can redistribute it and/or
00009  * modify it under the terms of version 2.1 of 
00010  * the GNU Lesser General Public
00011  * License as published by the Free Software Foundation.
00012  *
00013  * This program is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the 
00019  * GNU Lesser General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00022  * USA
00023  */
00024 
00025 /*
00026  *$Id: cr-box-view.h,v 1.7 2003/06/29 15:14:50 dodji Exp $
00027  */
00028 #ifndef __CR_BOX_VIEW__
00029 #define __CR_BOX_VIEW__
00030 
00031 
00032 #include <gnome.h>
00033 #include <cr-box.h>/*the box model*/
00034 
00035 G_BEGIN_DECLS
00036 
00037 #define CR_TYPE_BOX_VIEW            (cr_box_view_get_type ())
00038 #define CR_BOX_VIEW(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), CR_TYPE_BOX_VIEW, CRBoxView))
00039 #define CR_BOX_VIEW_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), CR_TYPE_BOX_VIEW, CRBoxViewClass))
00040 #define CR_IS_BOX_VIEW(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CR_TYPE_BOX_VIEW))
00041 #define CR_IS_BOX_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CR_TYPE_BOX_VIEW))
00042 #define CR_BOX_VIEW_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), CR_TYPE_BOX_VIEW, CRBoxViewClass))
00043 
00044 typedef struct _CRBoxView CRBoxView ;
00045 typedef struct _CRBoxViewClass CRBoxViewClass ;
00046 typedef struct _CRBoxViewPriv CRBoxViewPriv ;
00047 
00048 struct _CRBoxView
00049 {
00050         GtkLayout parent_widget ;
00051         CRBoxViewPriv *priv ;
00052 } ;
00053 
00054 struct _CRBoxViewClass
00055 {
00056         GtkLayoutClass parent_class ;
00057 } ;
00058 
00059 
00060 GType
00061 cr_box_view_get_type (void) ;
00062 
00063 CRBoxView *
00064 cr_box_view_new_from_xml_css_bufs (const guchar *a_xml_buf,
00065                                    const guchar *a_css_buf) ;
00066 enum CRStatus
00067 cr_box_view_get_box_model (CRBoxView *a_this, CRBoxModel **a_box_model) ;
00068 
00069 enum CRStatus
00070 cr_box_view_set_box_model (CRBoxView *a_this,
00071                            CRBoxModel *a_box_model) ;
00072 CRBoxView *
00073 cr_box_view_new_from_bm (CRBoxModel *a_box_root) ;
00074 
00075 enum CRStatus
00076 cr_box_view_layout (CRBoxView *a_this) ;
00077 
00078 void
00079 cr_box_view_destroy (GtkObject *a_this) ;
00080 
00081 G_END_DECLS
00082 
00083 #endif

Generated on Wed Oct 1 01:36:44 2003 for Libcroco by doxygen 1.3.3