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

Segment * Rosegarden::Clipboard::getSingleSegment (  )  const

Return the single segment contained by the clipboard. If the clipboard is empty or contains more than one segment, returns null. (Use the iterator accessors begin()/end() to read from a clipboard for which isSingleSegment is false.)

Definition at line 82 of file Clipboard.cpp.

References isSingleSegment().

Referenced by Rosegarden::PasteEventsCommand::isPossible(), and Rosegarden::PasteEventsCommand::PasteEventsCommand().

    if (isSingleSegment()) return *begin();
    else return 0;

Generated by  Doxygen 1.6.0   Back to index