Logo Search packages:      
Sourcecode: inkscape version File versions

unsigned sp_item_display_key_new ( unsigned  numkeys  ) 

Allocates unique integer keys.

Parameters:
numkeys Number of keys required.
Returns:
First allocated key; hence if the returned key is n you can use n, n + 1, ..., n + (numkeys - 1)

Definition at line 674 of file sp-item.cpp.

{
    static unsigned dkey = 0;

    dkey += numkeys;

    return dkey - numkeys;
}


Generated by  Doxygen 1.6.0   Back to index