Searched refs:ScrollOffset (Results 1 – 5 of 5) sorted by relevance
21 class GFX_EXPORT ScrollOffset {23 ScrollOffset() : x_(0), y_(0) {} in ScrollOffset() function24 ScrollOffset(float x, float y) : x_(x), y_(y) {} in ScrollOffset() function25 explicit ScrollOffset(const Vector2dF& v) : x_(v.x()), y_(v.y()) {} in ScrollOffset() function26 explicit ScrollOffset(const Vector2d& v) : x_(v.x()), y_(v.y()) {} in ScrollOffset() function40 void Add(const ScrollOffset& other) { in Add()47 void Subtract(const ScrollOffset& other) { in Subtract()52 Vector2dF DeltaFrom(const ScrollOffset& v) const { in DeltaFrom()56 void operator+=(const ScrollOffset& other) { Add(other); }57 void operator-=(const ScrollOffset& other) { Subtract(other); }[all …]
11 std::string ScrollOffset::ToString() const { in ToString()
146 struct StructTraits<gfx::mojom::ScrollOffsetDataView, gfx::ScrollOffset> {147 static float x(const gfx::ScrollOffset& v) { return v.x(); }148 static float y(const gfx::ScrollOffset& v) { return v.y(); }150 gfx::ScrollOffset* out) {
33 "gfx.mojom.ScrollOffset=gfx::ScrollOffset",
72 struct ScrollOffset {