Flutter Engine
flutter::ViewportMetrics Struct Reference

#include <viewport_metrics.h>

Public Member Functions

 ViewportMetrics ()
 
 ViewportMetrics (double p_device_pixel_ratio, double p_physical_width, double p_physical_height, double p_physical_touch_slop)
 
 ViewportMetrics (double p_device_pixel_ratio, double p_physical_width, double p_physical_height, double p_physical_padding_top, double p_physical_padding_right, double p_physical_padding_bottom, double p_physical_padding_left, double p_physical_view_inset_top, double p_physical_view_inset_right, double p_physical_view_inset_bottom, double p_physical_view_inset_left, double p_physical_system_gesture_inset_top, double p_physical_system_gesture_inset_right, double p_physical_system_gesture_inset_bottom, double p_physical_system_gesture_inset_left, double p_physical_touch_slop)
 

Public Attributes

double device_pixel_ratio = 1.0
 
double physical_width = 0
 
double physical_height = 0
 
double physical_padding_top = 0
 
double physical_padding_right = 0
 
double physical_padding_bottom = 0
 
double physical_padding_left = 0
 
double physical_view_inset_top = 0
 
double physical_view_inset_right = 0
 
double physical_view_inset_bottom = 0
 
double physical_view_inset_left = 0
 
double physical_system_gesture_inset_top = 0
 
double physical_system_gesture_inset_right = 0
 
double physical_system_gesture_inset_bottom = 0
 
double physical_system_gesture_inset_left = 0
 
double physical_touch_slop = -1.0
 

Detailed Description

Definition at line 12 of file viewport_metrics.h.

Constructor & Destructor Documentation

◆ ViewportMetrics() [1/3]

flutter::ViewportMetrics::ViewportMetrics ( )
default

◆ ViewportMetrics() [2/3]

flutter::ViewportMetrics::ViewportMetrics ( double  p_device_pixel_ratio,
double  p_physical_width,
double  p_physical_height,
double  p_physical_touch_slop 
)

Definition at line 13 of file viewport_metrics.cc.

17  : device_pixel_ratio(p_device_pixel_ratio),
18  physical_width(p_physical_width),
19  physical_height(p_physical_height),
20  physical_touch_slop(p_physical_touch_slop) {}

◆ ViewportMetrics() [3/3]

flutter::ViewportMetrics::ViewportMetrics ( double  p_device_pixel_ratio,
double  p_physical_width,
double  p_physical_height,
double  p_physical_padding_top,
double  p_physical_padding_right,
double  p_physical_padding_bottom,
double  p_physical_padding_left,
double  p_physical_view_inset_top,
double  p_physical_view_inset_right,
double  p_physical_view_inset_bottom,
double  p_physical_view_inset_left,
double  p_physical_system_gesture_inset_top,
double  p_physical_system_gesture_inset_right,
double  p_physical_system_gesture_inset_bottom,
double  p_physical_system_gesture_inset_left,
double  p_physical_touch_slop 
)

Definition at line 22 of file viewport_metrics.cc.

38  : device_pixel_ratio(p_device_pixel_ratio),
39  physical_width(p_physical_width),
40  physical_height(p_physical_height),
41  physical_padding_top(p_physical_padding_top),
42  physical_padding_right(p_physical_padding_right),
43  physical_padding_bottom(p_physical_padding_bottom),
44  physical_padding_left(p_physical_padding_left),
45  physical_view_inset_top(p_physical_view_inset_top),
46  physical_view_inset_right(p_physical_view_inset_right),
47  physical_view_inset_bottom(p_physical_view_inset_bottom),
48  physical_view_inset_left(p_physical_view_inset_left),
49  physical_system_gesture_inset_top(p_physical_system_gesture_inset_top),
51  p_physical_system_gesture_inset_right),
53  p_physical_system_gesture_inset_bottom),
54  physical_system_gesture_inset_left(p_physical_system_gesture_inset_left),
55  physical_touch_slop(p_physical_touch_slop) {}

Member Data Documentation

◆ device_pixel_ratio

◆ physical_height

◆ physical_padding_bottom

double flutter::ViewportMetrics::physical_padding_bottom = 0

◆ physical_padding_left

double flutter::ViewportMetrics::physical_padding_left = 0

◆ physical_padding_right

double flutter::ViewportMetrics::physical_padding_right = 0

◆ physical_padding_top

double flutter::ViewportMetrics::physical_padding_top = 0

◆ physical_system_gesture_inset_bottom

double flutter::ViewportMetrics::physical_system_gesture_inset_bottom = 0

◆ physical_system_gesture_inset_left

double flutter::ViewportMetrics::physical_system_gesture_inset_left = 0

◆ physical_system_gesture_inset_right

double flutter::ViewportMetrics::physical_system_gesture_inset_right = 0

◆ physical_system_gesture_inset_top

double flutter::ViewportMetrics::physical_system_gesture_inset_top = 0

◆ physical_touch_slop

double flutter::ViewportMetrics::physical_touch_slop = -1.0

◆ physical_view_inset_bottom

◆ physical_view_inset_left

double flutter::ViewportMetrics::physical_view_inset_left = 0

◆ physical_view_inset_right

double flutter::ViewportMetrics::physical_view_inset_right = 0

◆ physical_view_inset_top

double flutter::ViewportMetrics::physical_view_inset_top = 0

◆ physical_width


The documentation for this struct was generated from the following files: