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

_CRBox Struct Reference

The CRBox class. More...

#include <cr-box.h>


Data Fields

enum CRBoxType type
CRBoxEdge inner_edge
 The inner edge, or content edge.

CRBoxEdge padding_edge
 The padding edge.

CRBoxEdge border_edge
 The border edge.

CRBoxEdge outer_edge
 The outer edge aka margin edge.

CRBoxContentcontent
 The content (text or image) of this box.

gboolean as_simple_content
 if TRUE, it means that this box has a simple content.

CRStylestyle
 The value infered from what has been found in the css stylesheet.

CRBoxparent
 the containing box

CRBoxnext
 the next box in the flow

CRBoxprev
 the previous box in the flow

CRBoxchildren
 the children (contained) boxes

CRBoxModelbox_model
CRBoxDatabox_data
 some custom data used by libcroco

gpointer * app_data
 some application data that will never be used by libcroco.

gulong ref_count


Detailed Description

The CRBox class.

Abstracts the css2 box as defined in the css2 spec in chapter 8. It is actually a tree of boxes, each being "generated" by an xml document tree node.

Definition at line 136 of file cr-box.h.


Field Documentation

gpointer* _CRBox::app_data
 

some application data that will never be used by libcroco.

Applications are free to use it.

Definition at line 227 of file cr-box.h.

gboolean _CRBox::as_simple_content
 

if TRUE, it means that this box has a simple content.

Simple content means either a text or image content. Normally, to be logic, if this is set to TRUE, the children pointer should be NULL ... see what I mean ?

Definition at line 199 of file cr-box.h.

CRBoxEdge _CRBox::border_edge
 

The border edge.

It includes the padding edge plus a surrounding area called "border". If the border is inexistant, the border edge equals the padding edge.

Definition at line 168 of file cr-box.h.

Referenced by cr_box_to_string().

CRBoxData* _CRBox::box_data
 

some custom data used by libcroco

Definition at line 222 of file cr-box.h.

Referenced by cr_box_to_string().

CRBoxModel* _CRBox::box_model
 

Definition at line 219 of file cr-box.h.

Referenced by cr_box_append_child(), and cr_box_insert_sibling().

CRBox* _CRBox::children
 

the children (contained) boxes

Definition at line 217 of file cr-box.h.

Referenced by cr_box_append_child(), cr_box_destroy(), and cr_box_to_string().

CRBoxContent* _CRBox::content
 

The content (text or image) of this box.

Definition at line 189 of file cr-box.h.

Referenced by cr_box_destroy().

CRBoxEdge _CRBox::inner_edge
 

The inner edge, or content edge.

Is the one that immediately wraps the content of the box. The content of the box may be a text, an image, or a set of boxes. If the content is a set of boxes, then this set is inevitably the set of children boxes of this current box.

Definition at line 150 of file cr-box.h.

Referenced by cr_box_to_string(), and cr_box_view_new_from_xml_css_bufs().

CRBox* _CRBox::next
 

the next box in the flow

Definition at line 211 of file cr-box.h.

Referenced by cr_box_append_child(), cr_box_destroy(), cr_box_insert_sibling(), and cr_box_to_string().

CRBoxEdge _CRBox::outer_edge
 

The outer edge aka margin edge.

It includes the border edge plus a surrounding area called "margin". If the border is inexistant, the outer edge equals the border_edge.

Definition at line 177 of file cr-box.h.

Referenced by cr_box_to_string().

CRBoxEdge _CRBox::padding_edge
 

The padding edge.

It includes the inner_edge plus a a surrounding area called "padding". When the padding is inexistent, the padding edge equals the inner or content edge.

Definition at line 159 of file cr-box.h.

Referenced by cr_box_to_string().

CRBox* _CRBox::parent
 

the containing box

Definition at line 208 of file cr-box.h.

Referenced by cr_box_append_child(), cr_box_insert_sibling(), and cr_box_to_string().

CRBox* _CRBox::prev
 

the previous box in the flow

Definition at line 214 of file cr-box.h.

Referenced by cr_box_append_child(), cr_box_destroy(), cr_box_insert_sibling(), and cr_box_to_string().

gulong _CRBox::ref_count
 

Definition at line 229 of file cr-box.h.

Referenced by cr_box_ref(), and cr_box_unref().

CRStyle* _CRBox::style
 

The value infered from what has been found in the css stylesheet.

Definition at line 205 of file cr-box.h.

Referenced by cr_box_destroy().

enum CRBoxType _CRBox::type
 

Definition at line 138 of file cr-box.h.

Referenced by cr_box_to_string().


The documentation for this struct was generated from the following file:
Generated on Wed Oct 1 01:36:53 2003 for Libcroco by doxygen 1.3.3