pub struct LayerState {Show 49 fields
pub layer_id: Option<u32>,
pub what: Option<u64>,
pub x: Option<f32>,
pub y: Option<f32>,
pub z: Option<i32>,
pub w: Option<u32>,
pub h: Option<u32>,
pub layer_stack: Option<u32>,
pub flags: Option<u32>,
pub mask: Option<u32>,
pub matrix: Option<Matrix22>,
pub corner_radius: Option<f32>,
pub background_blur_radius: Option<u32>,
pub parent_id: Option<u32>,
pub relative_parent_id: Option<u32>,
pub alpha: Option<f32>,
pub color: Option<Color3>,
pub transparent_region: Option<RegionProto>,
pub transform: Option<u32>,
pub transform_to_display_inverse: Option<bool>,
pub crop: Option<RectProto>,
pub buffer_data: Option<BufferData>,
pub api: Option<i32>,
pub has_sideband_stream: Option<bool>,
pub color_transform: Option<ColorTransformProto>,
pub blur_regions: Vec<BlurRegion>,
pub window_info_handle: Option<WindowInfo>,
pub bg_color_alpha: Option<f32>,
pub bg_color_dataspace: Option<i32>,
pub color_space_agnostic: Option<bool>,
pub shadow_radius: Option<f32>,
pub frame_rate_selection_priority: Option<i32>,
pub frame_rate: Option<f32>,
pub frame_rate_compatibility: Option<i32>,
pub change_frame_rate_strategy: Option<i32>,
pub fixed_transform_hint: Option<u32>,
pub frame_number: Option<u64>,
pub auto_refresh: Option<bool>,
pub is_trusted_overlay: Option<bool>,
pub buffer_crop: Option<RectProto>,
pub destination_frame: Option<RectProto>,
pub drop_input_mode: Option<i32>,
pub trusted_overlay: Option<i32>,
pub background_blur_scale: Option<f32>,
pub corner_radii: Option<CornerRadii>,
pub client_drawn_corner_radii: Option<CornerRadii>,
pub system_content_priority: Option<i32>,
pub box_shadow_settings: Option<BoxShadowSettings>,
pub border_settings: Option<BorderSettings>,
}Expand description
Keep insync with layer_state_t
Fields§
§layer_id: Option<u32>§what: Option<u64>§x: Option<f32>§y: Option<f32>§z: Option<i32>§w: Option<u32>§h: Option<u32>§layer_stack: Option<u32>§flags: Option<u32>§mask: Option<u32>§matrix: Option<Matrix22>§corner_radius: Option<f32>background_blur_radius: Option<u32>§parent_id: Option<u32>§relative_parent_id: Option<u32>§alpha: Option<f32>§color: Option<Color3>§transparent_region: Option<RegionProto>§transform: Option<u32>§transform_to_display_inverse: Option<bool>§crop: Option<RectProto>§buffer_data: Option<BufferData>§api: Option<i32>§has_sideband_stream: Option<bool>§color_transform: Option<ColorTransformProto>§blur_regions: Vec<BlurRegion>§window_info_handle: Option<WindowInfo>§bg_color_alpha: Option<f32>§bg_color_dataspace: Option<i32>§color_space_agnostic: Option<bool>§shadow_radius: Option<f32>§frame_rate_selection_priority: Option<i32>§frame_rate: Option<f32>§frame_rate_compatibility: Option<i32>§change_frame_rate_strategy: Option<i32>§fixed_transform_hint: Option<u32>§frame_number: Option<u64>§auto_refresh: Option<bool>§is_trusted_overlay: Option<bool>unused
buffer_crop: Option<RectProto>§destination_frame: Option<RectProto>§drop_input_mode: Option<i32>§trusted_overlay: Option<i32>§background_blur_scale: Option<f32>§corner_radii: Option<CornerRadii>§client_drawn_corner_radii: Option<CornerRadii>§system_content_priority: Option<i32>§box_shadow_settings: Option<BoxShadowSettings>§border_settings: Option<BorderSettings>Implementations§
Source§impl LayerState
impl LayerState
Sourcepub fn layer_id(&self) -> u32
pub fn layer_id(&self) -> u32
Returns the value of layer_id, or the default value if layer_id is unset.
Sourcepub fn layer_stack(&self) -> u32
pub fn layer_stack(&self) -> u32
Returns the value of layer_stack, or the default value if layer_stack is unset.
Sourcepub fn corner_radius(&self) -> f32
pub fn corner_radius(&self) -> f32
Returns the value of corner_radius, or the default value if corner_radius is unset.
Sourcepub fn background_blur_radius(&self) -> u32
pub fn background_blur_radius(&self) -> u32
Returns the value of background_blur_radius, or the default value if background_blur_radius is unset.
Sourcepub fn parent_id(&self) -> u32
pub fn parent_id(&self) -> u32
Returns the value of parent_id, or the default value if parent_id is unset.
Sourcepub fn relative_parent_id(&self) -> u32
pub fn relative_parent_id(&self) -> u32
Returns the value of relative_parent_id, or the default value if relative_parent_id is unset.
Sourcepub fn transform(&self) -> u32
pub fn transform(&self) -> u32
Returns the value of transform, or the default value if transform is unset.
Sourcepub fn transform_to_display_inverse(&self) -> bool
pub fn transform_to_display_inverse(&self) -> bool
Returns the value of transform_to_display_inverse, or the default value if transform_to_display_inverse is unset.
Sourcepub fn has_sideband_stream(&self) -> bool
pub fn has_sideband_stream(&self) -> bool
Returns the value of has_sideband_stream, or the default value if has_sideband_stream is unset.
Sourcepub fn bg_color_alpha(&self) -> f32
pub fn bg_color_alpha(&self) -> f32
Returns the value of bg_color_alpha, or the default value if bg_color_alpha is unset.
Sourcepub fn bg_color_dataspace(&self) -> i32
pub fn bg_color_dataspace(&self) -> i32
Returns the value of bg_color_dataspace, or the default value if bg_color_dataspace is unset.
Sourcepub fn color_space_agnostic(&self) -> bool
pub fn color_space_agnostic(&self) -> bool
Returns the value of color_space_agnostic, or the default value if color_space_agnostic is unset.
Sourcepub fn shadow_radius(&self) -> f32
pub fn shadow_radius(&self) -> f32
Returns the value of shadow_radius, or the default value if shadow_radius is unset.
Sourcepub fn frame_rate_selection_priority(&self) -> i32
pub fn frame_rate_selection_priority(&self) -> i32
Returns the value of frame_rate_selection_priority, or the default value if frame_rate_selection_priority is unset.
Sourcepub fn frame_rate(&self) -> f32
pub fn frame_rate(&self) -> f32
Returns the value of frame_rate, or the default value if frame_rate is unset.
Sourcepub fn frame_rate_compatibility(&self) -> i32
pub fn frame_rate_compatibility(&self) -> i32
Returns the value of frame_rate_compatibility, or the default value if frame_rate_compatibility is unset.
Sourcepub fn change_frame_rate_strategy(&self) -> i32
pub fn change_frame_rate_strategy(&self) -> i32
Returns the value of change_frame_rate_strategy, or the default value if change_frame_rate_strategy is unset.
Sourcepub fn fixed_transform_hint(&self) -> u32
pub fn fixed_transform_hint(&self) -> u32
Returns the value of fixed_transform_hint, or the default value if fixed_transform_hint is unset.
Sourcepub fn frame_number(&self) -> u64
pub fn frame_number(&self) -> u64
Returns the value of frame_number, or the default value if frame_number is unset.
Sourcepub fn auto_refresh(&self) -> bool
pub fn auto_refresh(&self) -> bool
Returns the value of auto_refresh, or the default value if auto_refresh is unset.
Sourcepub fn is_trusted_overlay(&self) -> bool
pub fn is_trusted_overlay(&self) -> bool
Returns the value of is_trusted_overlay, or the default value if is_trusted_overlay is unset.
Sourcepub fn drop_input_mode(&self) -> DropInputMode
pub fn drop_input_mode(&self) -> DropInputMode
Returns the enum value of drop_input_mode, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_drop_input_mode(&mut self, value: DropInputMode)
pub fn set_drop_input_mode(&mut self, value: DropInputMode)
Sets drop_input_mode to the provided enum value.
Sourcepub fn trusted_overlay(&self) -> TrustedOverlay
pub fn trusted_overlay(&self) -> TrustedOverlay
Returns the enum value of trusted_overlay, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_trusted_overlay(&mut self, value: TrustedOverlay)
pub fn set_trusted_overlay(&mut self, value: TrustedOverlay)
Sets trusted_overlay to the provided enum value.
Sourcepub fn background_blur_scale(&self) -> f32
pub fn background_blur_scale(&self) -> f32
Returns the value of background_blur_scale, or the default value if background_blur_scale is unset.
Sourcepub fn system_content_priority(&self) -> i32
pub fn system_content_priority(&self) -> i32
Returns the value of system_content_priority, or the default value if system_content_priority is unset.
Trait Implementations§
Source§impl Clone for LayerState
impl Clone for LayerState
Source§fn clone(&self) -> LayerState
fn clone(&self) -> LayerState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LayerState
impl Debug for LayerState
Source§impl Default for LayerState
impl Default for LayerState
Source§impl Message for LayerState
impl Message for LayerState
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self.