1 /* 2 * DOMRect.java 3 * 4 * Copyright (C) 2021 by RStudio, PBC 5 * 6 * Unless you have received this program directly from RStudio pursuant 7 * to the terms of a commercial license agreement with RStudio, then 8 * this program is licensed to you under the terms of version 3 of the 9 * GNU Affero General Public License. This program is distributed WITHOUT 10 * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT, 11 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the 12 * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details. 13 * 14 */ 15 package org.rstudio.core.client.dom; 16 17 import com.google.gwt.core.client.JavaScriptObject; 18 19 public class DOMRect extends JavaScriptObject 20 { DOMRect()21 protected DOMRect() 22 { 23 } 24 getLeft()25 public final native int getLeft() /*-{ 26 return this.left; 27 }-*/; 28 getRight()29 public final native int getRight() /*-{ 30 return this.right; 31 }-*/; 32 getTop()33 public final native int getTop() /*-{ 34 return this.top; 35 }-*/; 36 getBottom()37 public final native int getBottom() /*-{ 38 return this.bottom; 39 }-*/; 40 getWidth()41 public final native int getWidth() /*-{ 42 return this.width; 43 }-*/; 44 getHeight()45 public final native int getHeight() /*-{ 46 return this.height; 47 }-*/; 48 } 49