Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
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, size_t display_id)
 
 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, const std::vector< double > &p_physical_display_features_bounds, const std::vector< int > &p_physical_display_features_type, const std::vector< int > &p_physical_display_features_state, size_t p_display_id)
 

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
 
std::vector< double > physical_display_features_bounds
 
std::vector< intphysical_display_features_type
 
std::vector< intphysical_display_features_state
 
size_t display_id = 0
 

Detailed Description

Definition at line 13 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,
size_t  display_id 
)

Definition at line 13 of file viewport_metrics.cc.

18 : device_pixel_ratio(p_device_pixel_ratio),
19 physical_width(p_physical_width),
20 physical_height(p_physical_height),
21 physical_touch_slop(p_physical_touch_slop),
22 display_id(p_display_id) {}

◆ 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,
const std::vector< double > &  p_physical_display_features_bounds,
const std::vector< int > &  p_physical_display_features_type,
const std::vector< int > &  p_physical_display_features_state,
size_t  p_display_id 
)

Definition at line 24 of file viewport_metrics.cc.

45 : device_pixel_ratio(p_device_pixel_ratio),
46 physical_width(p_physical_width),
47 physical_height(p_physical_height),
48 physical_padding_top(p_physical_padding_top),
49 physical_padding_right(p_physical_padding_right),
50 physical_padding_bottom(p_physical_padding_bottom),
51 physical_padding_left(p_physical_padding_left),
52 physical_view_inset_top(p_physical_view_inset_top),
53 physical_view_inset_right(p_physical_view_inset_right),
54 physical_view_inset_bottom(p_physical_view_inset_bottom),
55 physical_view_inset_left(p_physical_view_inset_left),
56 physical_system_gesture_inset_top(p_physical_system_gesture_inset_top),
58 p_physical_system_gesture_inset_right),
60 p_physical_system_gesture_inset_bottom),
61 physical_system_gesture_inset_left(p_physical_system_gesture_inset_left),
62 physical_touch_slop(p_physical_touch_slop),
63 physical_display_features_bounds(p_physical_display_features_bounds),
64 physical_display_features_type(p_physical_display_features_type),
65 physical_display_features_state(p_physical_display_features_state),
66 display_id(p_display_id) {}
std::vector< int > physical_display_features_type
std::vector< double > physical_display_features_bounds
std::vector< int > physical_display_features_state

Member Data Documentation

◆ device_pixel_ratio

double flutter::ViewportMetrics::device_pixel_ratio = 1.0

Definition at line 41 of file viewport_metrics.h.

◆ display_id

size_t flutter::ViewportMetrics::display_id = 0

Definition at line 60 of file viewport_metrics.h.

◆ physical_display_features_bounds

std::vector<double> flutter::ViewportMetrics::physical_display_features_bounds

Definition at line 57 of file viewport_metrics.h.

◆ physical_display_features_state

std::vector<int> flutter::ViewportMetrics::physical_display_features_state

Definition at line 59 of file viewport_metrics.h.

◆ physical_display_features_type

std::vector<int> flutter::ViewportMetrics::physical_display_features_type

Definition at line 58 of file viewport_metrics.h.

◆ physical_height

double flutter::ViewportMetrics::physical_height = 0

Definition at line 43 of file viewport_metrics.h.

◆ physical_padding_bottom

double flutter::ViewportMetrics::physical_padding_bottom = 0

Definition at line 46 of file viewport_metrics.h.

◆ physical_padding_left

double flutter::ViewportMetrics::physical_padding_left = 0

Definition at line 47 of file viewport_metrics.h.

◆ physical_padding_right

double flutter::ViewportMetrics::physical_padding_right = 0

Definition at line 45 of file viewport_metrics.h.

◆ physical_padding_top

double flutter::ViewportMetrics::physical_padding_top = 0

Definition at line 44 of file viewport_metrics.h.

◆ physical_system_gesture_inset_bottom

double flutter::ViewportMetrics::physical_system_gesture_inset_bottom = 0

Definition at line 54 of file viewport_metrics.h.

◆ physical_system_gesture_inset_left

double flutter::ViewportMetrics::physical_system_gesture_inset_left = 0

Definition at line 55 of file viewport_metrics.h.

◆ physical_system_gesture_inset_right

double flutter::ViewportMetrics::physical_system_gesture_inset_right = 0

Definition at line 53 of file viewport_metrics.h.

◆ physical_system_gesture_inset_top

double flutter::ViewportMetrics::physical_system_gesture_inset_top = 0

Definition at line 52 of file viewport_metrics.h.

◆ physical_touch_slop

double flutter::ViewportMetrics::physical_touch_slop = -1.0

Definition at line 56 of file viewport_metrics.h.

◆ physical_view_inset_bottom

double flutter::ViewportMetrics::physical_view_inset_bottom = 0

Definition at line 50 of file viewport_metrics.h.

◆ physical_view_inset_left

double flutter::ViewportMetrics::physical_view_inset_left = 0

Definition at line 51 of file viewport_metrics.h.

◆ physical_view_inset_right

double flutter::ViewportMetrics::physical_view_inset_right = 0

Definition at line 49 of file viewport_metrics.h.

◆ physical_view_inset_top

double flutter::ViewportMetrics::physical_view_inset_top = 0

Definition at line 48 of file viewport_metrics.h.

◆ physical_width

double flutter::ViewportMetrics::physical_width = 0

Definition at line 42 of file viewport_metrics.h.


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