Flutter Engine
 
Loading...
Searching...
No Matches
FlutterEngineDisplay Struct Reference

#include <embedder.h>

Public Attributes

size_t struct_size
 The size of this struct. Must be sizeof(FlutterEngineDisplay).
 
FlutterEngineDisplayId display_id
 
bool single_display
 
double refresh_rate
 
size_t width
 The width of the display, in physical pixels.
 
size_t height
 The height of the display, in physical pixels.
 
double device_pixel_ratio
 

Detailed Description

Definition at line 2289 of file embedder.h.

Member Data Documentation

◆ device_pixel_ratio

double FlutterEngineDisplay::device_pixel_ratio

The pixel ratio of the display, which is used to convert physical pixels to logical pixels.

Definition at line 2313 of file embedder.h.

Referenced by notify_display_update().

◆ display_id

◆ height

size_t FlutterEngineDisplay::height

The height of the display, in physical pixels.

Definition at line 2309 of file embedder.h.

Referenced by notify_display_update().

◆ refresh_rate

double FlutterEngineDisplay::refresh_rate

This represents the refresh period in frames per second. This value may be zero if the device is not running or unavailable or unknown.

Definition at line 2303 of file embedder.h.

Referenced by notify_display_update(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), and flutter::testing::TEST_F().

◆ single_display

bool FlutterEngineDisplay::single_display

This is set to true if the embedder only has one display. In cases where this is set to true, the value of display_id is ignored. In cases where this is not set to true, it is expected that a valid display_id be provided.

Definition at line 2299 of file embedder.h.

Referenced by notify_display_update(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), and flutter::testing::TEST_F().

◆ struct_size

size_t FlutterEngineDisplay::struct_size

The size of this struct. Must be sizeof(FlutterEngineDisplay).

Definition at line 2291 of file embedder.h.

Referenced by notify_display_update(), TEST(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), and flutter::testing::TEST_F().

◆ width

size_t FlutterEngineDisplay::width

The width of the display, in physical pixels.

Definition at line 2306 of file embedder.h.

Referenced by notify_display_update().


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