2012-02-03 16:39:15 -08:00
|
|
|
/* -*- Mode: Java; c-basic-offset: 4; tab-width: 20; indent-tabs-mode: nil; -*-
|
2012-05-21 04:12:37 -07:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2012-02-03 16:39:15 -08:00
|
|
|
|
|
|
|
package org.mozilla.gecko.gfx;
|
|
|
|
|
2013-11-12 10:41:00 -08:00
|
|
|
import org.mozilla.gecko.mozglue.generatorannotations.WrapEntireClassForJNI;
|
|
|
|
|
|
|
|
@WrapEntireClassForJNI
|
2012-02-03 16:39:15 -08:00
|
|
|
public class ViewTransform {
|
|
|
|
public float x;
|
|
|
|
public float y;
|
|
|
|
public float scale;
|
2013-03-07 02:17:33 -08:00
|
|
|
public float fixedLayerMarginLeft;
|
|
|
|
public float fixedLayerMarginTop;
|
|
|
|
public float fixedLayerMarginRight;
|
|
|
|
public float fixedLayerMarginBottom;
|
2013-04-25 10:47:08 -07:00
|
|
|
public float offsetX;
|
|
|
|
public float offsetY;
|
2012-02-03 16:39:15 -08:00
|
|
|
|
|
|
|
public ViewTransform(float inX, float inY, float inScale) {
|
|
|
|
x = inX;
|
|
|
|
y = inY;
|
|
|
|
scale = inScale;
|
2013-03-07 02:17:33 -08:00
|
|
|
fixedLayerMarginLeft = 0;
|
|
|
|
fixedLayerMarginTop = 0;
|
|
|
|
fixedLayerMarginRight = 0;
|
|
|
|
fixedLayerMarginBottom = 0;
|
2013-04-25 10:47:08 -07:00
|
|
|
offsetX = 0;
|
|
|
|
offsetY = 0;
|
2012-02-03 16:39:15 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|