Logo Search packages:      
Sourcecode: inkscape version File versions

gboolean cr_num_is_fixed_length ( CRNum a_this  ) 

Tests if the current instance of CRNum is a fixed length value or not. Typically a fixed length value is anything from NUM_LENGTH_EM to NUM_LENGTH_PC. See the definition of CRNumType to see what we mean.

TRUE if the instance of CRNum is a fixed length number, FALSE otherwise.

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

References _CRNum::type.

        gboolean result = FALSE;

        g_return_val_if_fail (a_this, FALSE);

        if (a_this->type >= NUM_LENGTH_EM 
            && a_this->type <= NUM_LENGTH_PC) {
                result = TRUE ;
        return result ;

Generated by  Doxygen 1.6.0   Back to index