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)
 
 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)
 

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
 

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 
)

Definition at line 13 of file viewport_metrics.cc.

16  : device_pixel_ratio(p_device_pixel_ratio),
17  physical_width(p_physical_width),
18  physical_height(p_physical_height) {}

◆ 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 
)

Definition at line 20 of file viewport_metrics.cc.

35  : device_pixel_ratio(p_device_pixel_ratio),
36  physical_width(p_physical_width),
37  physical_height(p_physical_height),
38  physical_padding_top(p_physical_padding_top),
39  physical_padding_right(p_physical_padding_right),
40  physical_padding_bottom(p_physical_padding_bottom),
41  physical_padding_left(p_physical_padding_left),
42  physical_view_inset_top(p_physical_view_inset_top),
43  physical_view_inset_right(p_physical_view_inset_right),
44  physical_view_inset_bottom(p_physical_view_inset_bottom),
45  physical_view_inset_left(p_physical_view_inset_left),
46  physical_system_gesture_inset_top(p_physical_system_gesture_inset_top),
48  p_physical_system_gesture_inset_right),
50  p_physical_system_gesture_inset_bottom),
51  physical_system_gesture_inset_left(p_physical_system_gesture_inset_left) {
52 }

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_view_inset_bottom

double flutter::ViewportMetrics::physical_view_inset_bottom = 0

◆ 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: