pub struct LayerState {Show 43 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>,
}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>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.
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§fn default() -> LayerState
fn default() -> LayerState
Source§impl Message for LayerState
impl Message for LayerState
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for LayerState
impl PartialEq for LayerState
impl StructuralPartialEq for LayerState
Auto Trait Implementations§
impl Freeze for LayerState
impl RefUnwindSafe for LayerState
impl Send for LayerState
impl Sync for LayerState
impl Unpin for LayerState
impl UnwindSafe for LayerState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].