Lines Matching refs:lhs
51 int ShadowText::compare(const ShadowText& lhs, const ShadowText& rhs) {
52 int deltaInt = int(lhs.glyphCount) - int(rhs.glyphCount);
55 deltaInt = lhs.flags - rhs.flags;
58 if (lhs.radius < rhs.radius) return -1;
59 if (lhs.radius > rhs.radius) return +1;
61 if (lhs.typeface < rhs.typeface) return -1;
62 if (lhs.typeface > rhs.typeface) return +1;
64 if (lhs.textSize < rhs.textSize) return -1;
65 if (lhs.textSize > rhs.textSize) return +1;
67 if (lhs.italicStyle < rhs.italicStyle) return -1;
68 if (lhs.italicStyle > rhs.italicStyle) return +1;
70 if (lhs.scaleX < rhs.scaleX) return -1;
71 if (lhs.scaleX > rhs.scaleX) return +1;
73 if (lhs.glyphs != rhs.glyphs) {
74 if (!lhs.glyphs) return -1;
77 deltaInt = memcmp(lhs.glyphs, rhs.glyphs, lhs.glyphCount * sizeof(glyph_t));
81 if (lhs.positions != rhs.positions) {
82 if (!lhs.positions) return -1;
85 return memcmp(lhs.positions, rhs.positions, lhs.glyphCount * sizeof(float) * 2);