libcss
Loading...
Searching...
No Matches
Functions
computed.h File Reference
#include <libcss/computed.h>
#include <libcss/hint.h>
#include <libcss/unit.h>
#include "autogenerated_computed.h"
#include "calc.h"

Go to the source code of this file.

Functions

css_error css__computed_style_create (css_computed_style **result, css_calculator *calc)
 
css_error css__computed_style_initialise (css_computed_style *style, struct css_select_handler *handler, void *pw)
 
css_error css__computed_style_clone (const css_computed_style *orig, css_computed_style **clone_out)
 
css_error css__compute_absolute_values (const css_computed_style *parent, css_computed_style *style, const css_unit_ctx *unit_ctx)
 

Function Documentation

◆ css__compute_absolute_values()

css_error css__compute_absolute_values ( const css_computed_style parent,
css_computed_style style,
const css_unit_ctx unit_ctx 
)

Compute the absolute values of a style

Parameters
parentParent style, or NULL for tree root
styleComputed style to process
unit_ctxClient length conversion context.
Returns
CSS_OK on success.

◆ css__computed_style_clone()

css_error css__computed_style_clone ( const css_computed_style orig,
css_computed_style **  clone_out 
)

Clone a computed style

Parameters
origStyle to copy
clone_outReturns cloned style on success
Returns
CSS_OK on success.

◆ css__computed_style_create()

css_error css__computed_style_create ( css_computed_style **  result,
css_calculator calc 
)

Create a computed style

Parameters
resultPointer to location to receive result
Returns
CSS_OK on success, CSS_NOMEM on memory exhaustion, CSS_BADPARM on bad parameters.

◆ css__computed_style_initialise()

css_error css__computed_style_initialise ( css_computed_style style,
css_select_handler handler,
void *  pw 
)

Populate a blank computed style with Initial values

Parameters
styleComputed style to populate
handlerDispatch table of handler functions
pwClient-specific private data for handler functions
Returns
CSS_OK on success.