#include <string.h>
#include "cr-box.h"
Go to the source code of this file.
Functions | |
CRBoxData * | cr_box_data_new (xmlNode *a_node) |
Instanciates a new CRBoxData. | |
void | cr_box_data_destroy (CRBoxData *a_this) |
Destructor of CRBoxData. | |
CRBoxContent * | cr_box_content_new_from_text (guchar *a_text) |
Instanciates a new CRBoxContent and set the content to text content. | |
void | cr_box_content_destroy (CRBoxContent *a_this) |
Destructor of CRBoxContent. | |
CRBoxModel * | cr_box_model_new (void) |
Creates a new box model. | |
void | cr_box_model_destroy (CRBoxModel *a_this) |
void | cr_box_model_ref (CRBoxModel *a_this) |
gboolean | cr_box_model_unref (CRBoxModel *a_this) |
CRBox * | cr_box_new (CRStyle *a_style, gboolean a_default_style) |
Instanciates a new box. | |
enum CRStatus | cr_box_append_child (CRBox *a_this, CRBox *a_to_append) |
Appends a child box to at the end of the current box's children. | |
enum CRStatus | cr_box_insert_sibling (CRBox *a_prev, CRBox *a_next, CRBox *a_to_insert) |
Inserts a sibling box between two adjacent sibling nodes. | |
enum CRStatus | cr_box_to_string (CRBox *a_this, gulong a_nb_indent, GString **a_string) |
This is for debug purposes ... | |
enum CRStatus | cr_box_dump_to_file (CRBox *a_this, gulong a_nb_indent, FILE *a_filep) |
enum CRStatus | cr_box_ref (CRBox *a_this) |
Increments the reference count of the current instance of CRBox. | |
gboolean | cr_box_unref (CRBox *a_this) |
Decrements the current instance's ref count. | |
void | cr_box_destroy (CRBox *a_this) |
Destructor of CRBox. |
Definition in file cr-box.c.
|
Appends a child box to at the end of the current box's children.
Definition at line 396 of file cr-box.c. References _CRBox::box_model, _CRBox::children, CR_BAD_PARAM_ERROR, CR_OK, _CRBox::next, _CRBox::parent, and _CRBox::prev. |
|
Destructor of CRBoxContent.
Definition at line 264 of file cr-box.c. References cr_utils_trace_info, TEXT_CONTENT_TYPE, _CRBoxContent::type, and _CRBoxContent::u. Referenced by cr_box_destroy(). |
|
Instanciates a new CRBoxContent and set the content to text content.
Definition at line 240 of file cr-box.c. References cr_utils_trace_info, TEXT_CONTENT_TYPE, _CRBoxContent::type, and _CRBoxContent::u. |
|
Destructor of CRBoxData.
|
|
Instanciates a new CRBoxData.
Definition at line 204 of file cr-box.c. References cr_utils_trace_info, and _CRBoxData::xml_node. |
|
Destructor of CRBox. recursively destroys all the children nodes of the current node.
Definition at line 701 of file cr-box.c. References _CRBox::children, _CRBox::content, cr_box_content_destroy(), cr_style_unref(), _CRBox::next, _CRBox::prev, and _CRBox::style. Referenced by cr_box_model_destroy(), cr_box_new(), cr_box_unref(), and cr_box_view_new_from_xml_css_bufs(). |
|
Definition at line 609 of file cr-box.c. References CR_BAD_PARAM_ERROR, cr_box_to_string(), CR_ERROR, CR_OK, cr_utils_trace_info, and CRStatus. |
|
Inserts a sibling box between two adjacent sibling nodes.
Definition at line 432 of file cr-box.c. References _CRBox::box_model, CR_BAD_PARAM_ERROR, CR_OK, _CRBox::next, _CRBox::parent, and _CRBox::prev. |
|
Definition at line 321 of file cr-box.c. References _CRBoxModel::box, and cr_box_destroy(). Referenced by cr_box_model_unref(). |
|
Creates a new box model. This box model contains an empty box tree. Box tree may be added by calling cr_box_append_child().
Definition at line 298 of file cr-box.c. References _CRBoxModel::box, BOX_TYPE_BOX_MODEL, and cr_utils_trace_info. Referenced by cr_lay_eng_create_box_model(). |
|
Definition at line 332 of file cr-box.c. References _CRBoxModel::ref_count. |
|
Definition at line 341 of file cr-box.c. References cr_box_model_destroy(), and _CRBoxModel::ref_count. |
|
Instanciates a new box. Everything is initialized to zero in it.
Definition at line 364 of file cr-box.c. References cr_box_destroy(), CR_OK, and cr_utils_trace_info. |
|
Increments the reference count of the current instance of CRBox.
Definition at line 659 of file cr-box.c. References CR_BAD_PARAM_ERROR, and _CRBox::ref_count. Referenced by cr_box_view_set_box_model(). |
|
This is for debug purposes ... Gives a string representation of the box tree.
Definition at line 462 of file cr-box.c. References _CRBox::border_edge, _CRBox::box_data, BOX_TYPE_ANONYMOUS_BLOCK, BOX_TYPE_ANONYMOUS_INLINE, BOX_TYPE_BLOCK, BOX_TYPE_BOX_MODEL, BOX_TYPE_COMPACT, BOX_TYPE_INLINE, BOX_TYPE_RUN_IN, _CRBox::children, CR_BAD_PARAM_ERROR, CR_ERROR, CR_OK, cr_utils_dump_n_chars2(), cr_utils_trace_info, _CRBox::inner_edge, _CRBox::next, _CRBox::outer_edge, _CRBox::padding_edge, _CRBox::parent, _CRBox::prev, _CRBox::type, and _CRBoxData::xml_node. Referenced by cr_box_dump_to_file(). |
|
Decrements the current instance's ref count. If the ref count reaches zero, the instance is destroyed.
Definition at line 677 of file cr-box.c. References cr_box_destroy(), and _CRBox::ref_count. Referenced by cr_box_view_destroy(), and cr_box_view_set_box_model(). |