Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

unsigned Inkscape::XML::SimpleNode::position (  )  const [virtual, inherited]

Get the index of this node in parent's child order.

If this method is used on a node that doesn't have a parent, the method will return 0, and a warning will be printed on the console.

The node's index, or 0 if the node does not have a parent

Implements Inkscape::XML::Node.

Definition at line 238 of file simple-node.cpp.

References Inkscape::XML::SimpleNode::_childPosition().

    g_return_val_if_fail(_parent != NULL, 0);
    return _parent->_childPosition(*this);

Generated by  Doxygen 1.6.0   Back to index