pub struct DisplaySettings {
pub auto_brightness: Option<bool>,
pub brightness_value: Option<f32>,
pub low_light_mode: Option<LowLightMode>,
pub screen_enabled: Option<bool>,
pub theme: Option<Theme>,
pub adjusted_auto_brightness: Option<f32>,
/* private fields */
}
Expand description
DisplaySettings are used to determine the output state of the display. The display can be toggled between two modes, auto-brightness on and auto-brightness off.
Adjusted_auto_brightness is used to set a specific brightness level for the current lighting conditions. Auto-brightness will continue to make the screen darker and brighter as the surrounding light changes.
Brightness_value is used in manual mode to set a specific brightness level for the screen. This level will be maintained while in manual mode.
Fields§
§auto_brightness: Option<bool>
Auto brightness enabled.
brightness_value: Option<f32>
Manually set brightness value [0.0 - 1.0]. Not a number, infinity or negative infinity will cause SetDisplayInfo to fail with INVALID_VALUE.
low_light_mode: Option<LowLightMode>
The low light mode state of the device.
screen_enabled: Option<bool>
Whether the screen is enabled.
theme: Option<Theme>
Theme to be used for the device’s user interface.
adjusted_auto_brightness: Option<f32>
Brightness value to adjust auto-brightness to [0.0 - 1.0].
Trait Implementations§
Source§impl Clone for DisplaySettings
impl Clone for DisplaySettings
Source§fn clone(&self) -> DisplaySettings
fn clone(&self) -> DisplaySettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DisplaySettings
impl Debug for DisplaySettings
Source§impl<D: ResourceDialect> Decode<DisplaySettings, D> for DisplaySettings
impl<D: ResourceDialect> Decode<DisplaySettings, D> for DisplaySettings
Source§impl Default for DisplaySettings
impl Default for DisplaySettings
Source§fn default() -> DisplaySettings
fn default() -> DisplaySettings
Source§impl<D: ResourceDialect> Encode<DisplaySettings, D> for &DisplaySettings
impl<D: ResourceDialect> Encode<DisplaySettings, D> for &DisplaySettings
Source§impl PartialEq for DisplaySettings
impl PartialEq for DisplaySettings
Source§impl TypeMarker for DisplaySettings
impl TypeMarker for DisplaySettings
Source§type Owned = DisplaySettings
type Owned = DisplaySettings
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for DisplaySettings
impl ValueTypeMarker for DisplaySettings
Source§type Borrowed<'a> = &'a DisplaySettings
type Borrowed<'a> = &'a DisplaySettings
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more