2012-02-04 00:39:15 +00:00
|
|
|
/* -*- Mode: Java; c-basic-offset: 4; tab-width: 20; indent-tabs-mode: nil; -*-
|
2012-05-21 11:12:37 +00: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-04 00:39:15 +00:00
|
|
|
|
|
|
|
package org.mozilla.gecko.gfx;
|
|
|
|
|
2015-08-07 06:09:08 +00:00
|
|
|
import org.mozilla.gecko.annotation.WrapForJNI;
|
2013-11-12 18:41:00 +00:00
|
|
|
|
2015-08-07 06:09:08 +00:00
|
|
|
@WrapForJNI
|
2012-02-04 00:39:15 +00:00
|
|
|
public class ViewTransform {
|
|
|
|
public float x;
|
|
|
|
public float y;
|
2015-08-18 18:27:20 +00:00
|
|
|
public float width;
|
|
|
|
public float height;
|
2012-02-04 00:39:15 +00:00
|
|
|
public float scale;
|
2013-03-07 10:17:33 +00:00
|
|
|
public float fixedLayerMarginLeft;
|
|
|
|
public float fixedLayerMarginTop;
|
|
|
|
public float fixedLayerMarginRight;
|
|
|
|
public float fixedLayerMarginBottom;
|
2012-02-04 00:39:15 +00:00
|
|
|
|
|
|
|
public ViewTransform(float inX, float inY, float inScale) {
|
|
|
|
x = inX;
|
|
|
|
y = inY;
|
|
|
|
scale = inScale;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|