Logo Search packages:      
Sourcecode: inkscape version File versions

bool Inkscape::Text::Layout::_directions_are_orthogonal ( Direction  d1,
Direction  d2 
) [static, private]

so that LEFT_TO_RIGHT == RIGHT_TO_LEFT but != TOP_TO_BOTTOM

Definition at line 35 of file Layout-TNG.cpp.

Referenced by Inkscape::Text::Layout::Calculator::_measureUnbrokenSpan(), Inkscape::Text::Layout::Calculator::_outputLine(), characterBoundingBox(), createSelectionShape(), getNearestCursorPositionTo(), and queryCursorShape().

{
    if (d1 == BOTTOM_TO_TOP) d1 = TOP_TO_BOTTOM;
    if (d2 == BOTTOM_TO_TOP) d2 = TOP_TO_BOTTOM;
    if (d1 == RIGHT_TO_LEFT) d1 = LEFT_TO_RIGHT;
    if (d2 == RIGHT_TO_LEFT) d2 = LEFT_TO_RIGHT;
    return d1 != d2;
}


Generated by  Doxygen 1.6.0   Back to index