pub struct Change {
pub mode: Option<i32>,
pub layer_id: Option<i32>,
pub window_id: Option<i32>,
pub flags: Option<i32>,
pub start_display_id: Option<i32>,
pub end_display_id: Option<i32>,
pub start_rotation: Option<i32>,
pub end_rotation: Option<i32>,
pub start_absolute_bounds: Option<RectProto>,
pub end_absolute_bounds: Option<RectProto>,
}Expand description
Contains the information about the windows changed in a transition.
Fields§
§mode: Option<i32>The transition mode of this change (e.g. TO_FRONT, CLOSE…)
layer_id: Option<i32>The layer id of this change.
window_id: Option<i32>The window id of this change.
flags: Option<i32>The flags set on this change.
start_display_id: Option<i32>The display id the change is transitioning on before the transition.
end_display_id: Option<i32>The display id the change is transitioning on after the transition.
start_rotation: Option<i32>The rotation of the change before the transition.
end_rotation: Option<i32>The rotation of the change after the transition.
start_absolute_bounds: Option<RectProto>The absolute screen bounds of the change before the transition.
end_absolute_bounds: Option<RectProto>The absolute screen bounds of the change after the transition.
Implementations§
Source§impl Change
impl Change
Sourcepub fn layer_id(&self) -> i32
pub fn layer_id(&self) -> i32
Returns the value of layer_id, or the default value if layer_id is unset.
Sourcepub fn window_id(&self) -> i32
pub fn window_id(&self) -> i32
Returns the value of window_id, or the default value if window_id is unset.
Sourcepub fn start_display_id(&self) -> i32
pub fn start_display_id(&self) -> i32
Returns the value of start_display_id, or the default value if start_display_id is unset.
Sourcepub fn end_display_id(&self) -> i32
pub fn end_display_id(&self) -> i32
Returns the value of end_display_id, or the default value if end_display_id is unset.
Sourcepub fn start_rotation(&self) -> i32
pub fn start_rotation(&self) -> i32
Returns the value of start_rotation, or the default value if start_rotation is unset.
Sourcepub fn end_rotation(&self) -> i32
pub fn end_rotation(&self) -> i32
Returns the value of end_rotation, or the default value if end_rotation is unset.
Trait Implementations§
Source§impl Message for Change
impl Message for Change
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.