michael@0: /* -*- Mode: Java; c-basic-offset: 4; tab-width: 20; indent-tabs-mode: nil; -*- michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: package org.mozilla.gecko.gfx; michael@0: michael@0: import org.mozilla.gecko.mozglue.generatorannotations.WrapEntireClassForJNI; michael@0: michael@0: @WrapEntireClassForJNI michael@0: public class ViewTransform { michael@0: public float x; michael@0: public float y; michael@0: public float scale; michael@0: public float fixedLayerMarginLeft; michael@0: public float fixedLayerMarginTop; michael@0: public float fixedLayerMarginRight; michael@0: public float fixedLayerMarginBottom; michael@0: public float offsetX; michael@0: public float offsetY; michael@0: michael@0: public ViewTransform(float inX, float inY, float inScale) { michael@0: x = inX; michael@0: y = inY; michael@0: scale = inScale; michael@0: fixedLayerMarginLeft = 0; michael@0: fixedLayerMarginTop = 0; michael@0: fixedLayerMarginRight = 0; michael@0: fixedLayerMarginBottom = 0; michael@0: offsetX = 0; michael@0: offsetY = 0; michael@0: } michael@0: } michael@0: