public class Viewport extends Object
| 构造器和说明 |
|---|
Viewport() |
Viewport(int width,
int height,
Number deviceScaleFactor,
boolean isMobile,
boolean hasTouch,
boolean isLandscape) |
| 限定符和类型 | 方法和说明 |
|---|---|
Number |
getDeviceScaleFactor() |
boolean |
getHasTouch() |
int |
getHeight() |
boolean |
getIsLandscape() |
boolean |
getIsMobile() |
int |
getWidth() |
void |
setDeviceScaleFactor(Number deviceScaleFactor) |
void |
setHasTouch(boolean hasTouch) |
void |
setHeight(int height) |
void |
setIsLandscape(boolean isLandscape) |
void |
setIsMobile(boolean isMobile) |
void |
setWidth(int width) |
public Viewport()
public Viewport(int width,
int height,
Number deviceScaleFactor,
boolean isMobile,
boolean hasTouch,
boolean isLandscape)
public int getWidth()
public void setWidth(int width)
public int getHeight()
public void setHeight(int height)
public Number getDeviceScaleFactor()
public void setDeviceScaleFactor(Number deviceScaleFactor)
public boolean getIsMobile()
public void setIsMobile(boolean isMobile)
public boolean getHasTouch()
public void setHasTouch(boolean hasTouch)
public boolean getIsLandscape()
public void setIsLandscape(boolean isLandscape)
Copyright © 2020. All rights reserved.