Logo Search packages:      
Sourcecode: inkscape version File versions

enum CRStatus cr_num_set ( CRNum a_this,
gdouble  a_val,
enum CRNumType  a_type 
)

Sets an instance of CRNum.

Parameters:
a_this the current instance of CRNum to be set.
a_val the new numerical value to be hold by the current instance of CRNum
a_type the new type of CRNum.

Definition at line 255 of file cr-num.c.

References _CRNum::type, and _CRNum::val.

Referenced by cr_style_set_props_to_default_values(), and cr_style_set_props_to_initial_values().

{
        g_return_val_if_fail (a_this, CR_BAD_PARAM_ERROR);

        a_this->val = a_val;
        a_this->type = a_type;

        return CR_OK;
}


Generated by  Doxygen 1.6.0   Back to index