Class FlutterRenderer.ViewportMetrics
java.lang.Object
io.flutter.embedding.engine.renderer.FlutterRenderer.ViewportMetrics
- Enclosing class:
- FlutterRenderer
Mutable data structure that holds all viewport metrics properties that Flutter cares about.
All distance measurements, e.g., width, height, padding, viewInsets, are measured in device pixels, not logical pixels.
-
Field Summary
Modifier and TypeFieldDescriptionfloat
int
int
int
int
int
int
static final int
A value that indicates the setting has not been set.int
int
int
int
int
int
int
int
int
-
Constructor Summary
-
Method Summary
-
Field Details
-
unsetValue
public static final int unsetValueA value that indicates the setting has not been set.- See Also:
-
devicePixelRatio
public float devicePixelRatio -
width
public int width -
height
public int height -
viewPaddingTop
public int viewPaddingTop -
viewPaddingRight
public int viewPaddingRight -
viewPaddingBottom
public int viewPaddingBottom -
viewPaddingLeft
public int viewPaddingLeft -
viewInsetTop
public int viewInsetTop -
viewInsetRight
public int viewInsetRight -
viewInsetBottom
public int viewInsetBottom -
viewInsetLeft
public int viewInsetLeft -
systemGestureInsetTop
public int systemGestureInsetTop -
systemGestureInsetRight
public int systemGestureInsetRight -
systemGestureInsetBottom
public int systemGestureInsetBottom -
systemGestureInsetLeft
public int systemGestureInsetLeft -
physicalTouchSlop
public int physicalTouchSlop -
displayFeatures
-
-
Constructor Details
-
ViewportMetrics
public ViewportMetrics()
-