Logo Search packages:      
Sourcecode: inkscape version File versions

CRStatement* cr_statement_at_media_get_from_list ( CRStatement *  a_this,
int  itemnr 
)

Use an index to get a CRStatement from the media rule list of rules.

Parameters:
a_this the current instance of CRStatement.
itemnr the index into the media rule list of rules.
Returns:
CRStatement at position itemnr, if itemnr > number of rules - 1, it will return NULL.

Definition at line 2134 of file cr-statement.c.

References AT_MEDIA_RULE_STMT, and cr_statement_get_from_list().

{
        g_return_val_if_fail (a_this
                              && a_this->type == AT_MEDIA_RULE_STMT
                              && a_this->kind.media_rule, NULL);

        return cr_statement_get_from_list (a_this->kind.media_rule->rulesets,
                                           itemnr);
}


Generated by  Doxygen 1.6.0   Back to index