00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef __CR_BOX_VIEW__
00029 #define __CR_BOX_VIEW__
00030
00031
00032 #include <gnome.h>
00033 #include <cr-box.h>
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