• Home
  • Raw
  • Download

Lines Matching refs:success

65 …hStorage::allocateGlyphArray(le_int32 initialGlyphCount, le_bool rightToLeft, LEErrorCode &success)  in allocateGlyphArray()  argument
67 if (LE_FAILURE(success)) { in allocateGlyphArray()
72 success = LE_ILLEGAL_ARGUMENT_ERROR; in allocateGlyphArray()
81 success = LE_MEMORY_ALLOCATION_ERROR; in allocateGlyphArray()
92 success = LE_MEMORY_ALLOCATION_ERROR; in allocateGlyphArray()
119 success = LE_MEMORY_ALLOCATION_ERROR; in allocateGlyphArray()
126 le_int32 LEGlyphStorage::allocatePositions(LEErrorCode &success) in allocatePositions() argument
128 if (LE_FAILURE(success)) { in allocatePositions()
133 success = LE_INTERNAL_ERROR; in allocatePositions()
140 success = LE_MEMORY_ALLOCATION_ERROR; in allocatePositions()
148 le_int32 LEGlyphStorage::allocateAuxData(LEErrorCode &success) in allocateAuxData() argument
150 if (LE_FAILURE(success)) { in allocateAuxData()
155 success = LE_INTERNAL_ERROR; in allocateAuxData()
162 success = LE_MEMORY_ALLOCATION_ERROR; in allocateAuxData()
169 …lyphStorage::getCharIndices(le_int32 charIndices[], le_int32 indexBase, LEErrorCode &success) const in getCharIndices()
173 if (LE_FAILURE(success)) { in getCharIndices()
178 success = LE_ILLEGAL_ARGUMENT_ERROR; in getCharIndices()
183 success = LE_NO_LAYOUT_ERROR; in getCharIndices()
192 void LEGlyphStorage::getCharIndices(le_int32 charIndices[], LEErrorCode &success) const in getCharIndices()
194 if (LE_FAILURE(success)) { in getCharIndices()
199 success = LE_ILLEGAL_ARGUMENT_ERROR; in getCharIndices()
204 success = LE_NO_LAYOUT_ERROR; in getCharIndices()
212 void LEGlyphStorage::getGlyphs(le_uint32 glyphs[], le_uint32 extraBits, LEErrorCode &success) const in getGlyphs()
216 if (LE_FAILURE(success)) { in getGlyphs()
221 success = LE_ILLEGAL_ARGUMENT_ERROR; in getGlyphs()
226 success = LE_NO_LAYOUT_ERROR; in getGlyphs()
235 void LEGlyphStorage::getGlyphs(LEGlyphID glyphs[], LEErrorCode &success) const in getGlyphs()
237 if (LE_FAILURE(success)) { in getGlyphs()
242 success = LE_ILLEGAL_ARGUMENT_ERROR; in getGlyphs()
247 success = LE_NO_LAYOUT_ERROR; in getGlyphs()
254 LEGlyphID LEGlyphStorage::getGlyphID(le_int32 glyphIndex, LEErrorCode &success) const in getGlyphID()
256 if (LE_FAILURE(success)) { in getGlyphID()
261 success = LE_NO_LAYOUT_ERROR; in getGlyphID()
266 success = LE_INDEX_OUT_OF_BOUNDS_ERROR; in getGlyphID()
273 void LEGlyphStorage::setGlyphID(le_int32 glyphIndex, LEGlyphID glyphID, LEErrorCode &success) in setGlyphID() argument
275 if (LE_FAILURE(success)) { in setGlyphID()
280 success = LE_NO_LAYOUT_ERROR; in setGlyphID()
285 success = LE_INDEX_OUT_OF_BOUNDS_ERROR; in setGlyphID()
292 le_int32 LEGlyphStorage::getCharIndex(le_int32 glyphIndex, LEErrorCode &success) const in getCharIndex()
294 if (LE_FAILURE(success)) { in getCharIndex()
299 success = LE_NO_LAYOUT_ERROR; in getCharIndex()
304 success = LE_INDEX_OUT_OF_BOUNDS_ERROR; in getCharIndex()
311 void LEGlyphStorage::setCharIndex(le_int32 glyphIndex, le_int32 charIndex, LEErrorCode &success) in setCharIndex() argument
313 if (LE_FAILURE(success)) { in setCharIndex()
318 success = LE_NO_LAYOUT_ERROR; in setCharIndex()
323 success = LE_INDEX_OUT_OF_BOUNDS_ERROR; in setCharIndex()
330 void LEGlyphStorage::getAuxData(le_uint32 auxData[], LEErrorCode &success) const in getAuxData()
332 if (LE_FAILURE(success)) { in getAuxData()
337 success = LE_ILLEGAL_ARGUMENT_ERROR; in getAuxData()
342 success = LE_NO_LAYOUT_ERROR; in getAuxData()
349 le_uint32 LEGlyphStorage::getAuxData(le_int32 glyphIndex, LEErrorCode &success) const in getAuxData()
351 if (LE_FAILURE(success)) { in getAuxData()
356 success = LE_NO_LAYOUT_ERROR; in getAuxData()
361 success = LE_INDEX_OUT_OF_BOUNDS_ERROR; in getAuxData()
368 void LEGlyphStorage::setAuxData(le_int32 glyphIndex, le_uint32 auxData, LEErrorCode &success) in setAuxData() argument
370 if (LE_FAILURE(success)) { in setAuxData()
375 success = LE_NO_LAYOUT_ERROR; in setAuxData()
380 success = LE_INDEX_OUT_OF_BOUNDS_ERROR; in setAuxData()
387 void LEGlyphStorage::getGlyphPositions(float positions[], LEErrorCode &success) const in getGlyphPositions()
389 if (LE_FAILURE(success)) { in getGlyphPositions()
394 success = LE_ILLEGAL_ARGUMENT_ERROR; in getGlyphPositions()
399 success = LE_NO_LAYOUT_ERROR; in getGlyphPositions()
406 void LEGlyphStorage::getGlyphPosition(le_int32 glyphIndex, float &x, float &y, LEErrorCode &success in getGlyphPosition()
408 if (LE_FAILURE(success)) { in getGlyphPosition()
413 success = LE_INDEX_OUT_OF_BOUNDS_ERROR; in getGlyphPosition()
418 success = LE_NO_LAYOUT_ERROR; in getGlyphPosition()
426 void LEGlyphStorage::setPosition(le_int32 glyphIndex, float x, float y, LEErrorCode &success) in setPosition() argument
428 if (LE_FAILURE(success)) { in setPosition()
433 success = LE_INDEX_OUT_OF_BOUNDS_ERROR; in setPosition()
441 …yphStorage::adjustPosition(le_int32 glyphIndex, float xAdjust, float yAdjust, LEErrorCode &success) in adjustPosition() argument
443 if (LE_FAILURE(success)) { in adjustPosition()
448 success = LE_INDEX_OUT_OF_BOUNDS_ERROR; in adjustPosition()
518 LEErrorCode success = LE_NO_ERROR; in moveGlyph() local
520 LEGlyphID holdGlyph = getGlyphID(fromPosition,success); in moveGlyph()
521 le_int32 holdCharIndex = getCharIndex(fromPosition,success); in moveGlyph()
522 le_uint32 holdAuxData = getAuxData(fromPosition,success); in moveGlyph()
526 setGlyphID(i,getGlyphID(i+1,success),success); in moveGlyph()
527 setCharIndex(i,getCharIndex(i+1,success),success); in moveGlyph()
528 setAuxData(i,getAuxData(i+1,success),success); in moveGlyph()
532 setGlyphID(i,getGlyphID(i-1,success),success); in moveGlyph()
533 setCharIndex(i,getCharIndex(i-1,success),success); in moveGlyph()
534 setAuxData(i,getAuxData(i-1,success),success); in moveGlyph()
539 setGlyphID(toPosition,holdGlyph,success); in moveGlyph()
540 setCharIndex(toPosition,holdCharIndex,success); in moveGlyph()
541 setAuxData(toPosition,holdAuxData | marker,success); in moveGlyph()
553 …lyphID *LEGlyphStorage::insertGlyphs(le_int32 atIndex, le_int32 insertCount, LEErrorCode& success) in insertGlyphs() argument
555 return fInsertionList->insert(atIndex, insertCount, success); in insertGlyphs()