pub type cef_display_t = _cef_display_t;Expand description
This structure typically, but not always, corresponds to a physical display connected to the system. A fake Display may exist on a headless system, or a Display may correspond to a remote, virtual display. All size and position values are in density independent pixel (DIP) coordinates unless otherwise indicated. Methods must be called on the browser process UI thread unless otherwise indicated.
For details on coordinate systems and usage see https://bitbucket.org/chromiumembedded/cef/wiki/GeneralUsage#markdown- header-coordinate-systems
NOTE: This struct is allocated DLL-side.
Aliased Type§
#[repr(C)]pub struct cef_display_t {
pub base: _cef_base_ref_counted_t,
pub get_id: Option<unsafe extern "C" fn(*mut _cef_display_t) -> i64>,
pub get_device_scale_factor: Option<unsafe extern "C" fn(*mut _cef_display_t) -> f32>,
pub convert_point_to_pixels: Option<unsafe extern "C" fn(*mut _cef_display_t, *mut _cef_point_t)>,
pub convert_point_from_pixels: Option<unsafe extern "C" fn(*mut _cef_display_t, *mut _cef_point_t)>,
pub get_bounds: Option<unsafe extern "C" fn(*mut _cef_display_t) -> _cef_rect_t>,
pub get_work_area: Option<unsafe extern "C" fn(*mut _cef_display_t) -> _cef_rect_t>,
pub get_rotation: Option<unsafe extern "C" fn(*mut _cef_display_t) -> i32>,
}Fields§
§base: _cef_base_ref_counted_tBase structure.
get_id: Option<unsafe extern "C" fn(*mut _cef_display_t) -> i64>Returns the unique identifier for this Display.
get_device_scale_factor: Option<unsafe extern "C" fn(*mut _cef_display_t) -> f32>Returns this Display’s device pixel scale factor. This specifies how much
the UI should be scaled when the actual output has more pixels than
standard displays (which is around 100~120dpi). The potential return
values differ by platform. Windowed browsers with 1.0 zoom will have a
JavaScript window.devicePixelRatio value matching the associated
Display’s get_device_scale_factor() value.
convert_point_to_pixels: Option<unsafe extern "C" fn(*mut _cef_display_t, *mut _cef_point_t)>Convert |point| from DIP coordinates to pixel coordinates using this Display’s device scale factor.
convert_point_from_pixels: Option<unsafe extern "C" fn(*mut _cef_display_t, *mut _cef_point_t)>Convert |point| from pixel coordinates to DIP coordinates using this Display’s device scale factor.
get_bounds: Option<unsafe extern "C" fn(*mut _cef_display_t) -> _cef_rect_t>Returns this Display’s bounds in DIP screen coordinates. This is the full size of the display.
get_work_area: Option<unsafe extern "C" fn(*mut _cef_display_t) -> _cef_rect_t>Returns this Display’s work area in DIP screen coordinates. This excludes areas of the display that are occupied with window manager toolbars, etc.
get_rotation: Option<unsafe extern "C" fn(*mut _cef_display_t) -> i32>Returns this Display’s rotation in degrees.