public class Viewport extends Object
| 构造器和说明 |
|---|
Viewport() |
Viewport(int width,
int height) |
Viewport(int width,
int height,
Double deviceScaleFactor,
boolean isMobile,
boolean hasTouch,
boolean isLandscape) |
| 限定符和类型 | 方法和说明 |
|---|---|
Double |
getDeviceScaleFactor() |
boolean |
getHasTouch() |
int |
getHeight() |
boolean |
getIsLandscape() |
boolean |
getIsMobile() |
int |
getWidth() |
void |
setDeviceScaleFactor(Double deviceScaleFactor) |
void |
setHasTouch(boolean hasTouch) |
void |
setHeight(int height) |
void |
setIsLandscape(boolean isLandscape) |
void |
setIsMobile(boolean isMobile) |
void |
setWidth(int width) |
String |
toString() |
public Viewport()
public Viewport(int width,
int height)
public Viewport(int width,
int height,
Double deviceScaleFactor,
boolean isMobile,
boolean hasTouch,
boolean isLandscape)
public int getWidth()
public void setWidth(int width)
public int getHeight()
public void setHeight(int height)
public Double getDeviceScaleFactor()
public void setDeviceScaleFactor(Double 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–2025. All rights reserved.