#[repr(i32)]pub enum ChangesLsb {
Show 28 variants
EChangesLsbNone = 0,
EPositionChanged = 1,
ELayerChanged = 2,
EAlphaChanged = 8,
EMatrixChanged = 16,
ETransparentRegionChanged = 32,
EFlagsChanged = 64,
ELayerStackChanged = 128,
EReleaseBufferListenerChanged = 1_024,
EShadowRadiusChanged = 2_048,
EBufferCropChanged = 8_192,
ERelativeLayerChanged = 16_384,
EReparent = 32_768,
EColorChanged = 65_536,
EBufferTransformChanged = 262_144,
ETransformToDisplayInverseChanged = 524_288,
ECropChanged = 1_048_576,
EBufferChanged = 2_097_152,
EAcquireFenceChanged = 4_194_304,
EDataspaceChanged = 8_388_608,
EHdrMetadataChanged = 16_777_216,
ESurfaceDamageRegionChanged = 33_554_432,
EApiChanged = 67_108_864,
ESidebandStreamChanged = 134_217_728,
EColorTransformChanged = 268_435_456,
EHasListenerCallbacksChanged = 536_870_912,
EInputInfoChanged = 1_073_741_824,
ECornerRadiusChanged = -2_147_483_648,
}
Expand description
Changes are split into ChangesLsb and ChangesMsb. First 32 bits are in ChangesLsb and the next 32 bits are in ChangesMsb. This is needed because enums have to be 32 bits and there’s no nice way to put 64bit constants into .proto files.
Variants§
EChangesLsbNone = 0
EPositionChanged = 1
ELayerChanged = 2
EAlphaChanged = 8
unused = 0x00000004;
EMatrixChanged = 16
ETransparentRegionChanged = 32
EFlagsChanged = 64
ELayerStackChanged = 128
EReleaseBufferListenerChanged = 1_024
EShadowRadiusChanged = 2_048
EBufferCropChanged = 8_192
ERelativeLayerChanged = 16_384
EReparent = 32_768
EColorChanged = 65_536
EBufferTransformChanged = 262_144
ETransformToDisplayInverseChanged = 524_288
ECropChanged = 1_048_576
EBufferChanged = 2_097_152
EAcquireFenceChanged = 4_194_304
EDataspaceChanged = 8_388_608
EHdrMetadataChanged = 16_777_216
ESurfaceDamageRegionChanged = 33_554_432
EApiChanged = 67_108_864
ESidebandStreamChanged = 134_217_728
EColorTransformChanged = 268_435_456
EHasListenerCallbacksChanged = 536_870_912
EInputInfoChanged = 1_073_741_824
ECornerRadiusChanged = -2_147_483_648
0x80000000; (proto stores enums as signed int)
Implementations§
Source§impl ChangesLsb
impl ChangesLsb
Source§impl ChangesLsb
impl ChangesLsb
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for ChangesLsb
impl Clone for ChangesLsb
Source§fn clone(&self) -> ChangesLsb
fn clone(&self) -> ChangesLsb
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ChangesLsb
impl Debug for ChangesLsb
Source§impl Default for ChangesLsb
impl Default for ChangesLsb
Source§fn default() -> ChangesLsb
fn default() -> ChangesLsb
Returns the “default value” for a type. Read more
Source§impl From<ChangesLsb> for i32
impl From<ChangesLsb> for i32
Source§fn from(value: ChangesLsb) -> i32
fn from(value: ChangesLsb) -> i32
Converts to this type from the input type.
Source§impl Hash for ChangesLsb
impl Hash for ChangesLsb
Source§impl Ord for ChangesLsb
impl Ord for ChangesLsb
Source§fn cmp(&self, other: &ChangesLsb) -> Ordering
fn cmp(&self, other: &ChangesLsb) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ChangesLsb
impl PartialEq for ChangesLsb
Source§impl PartialOrd for ChangesLsb
impl PartialOrd for ChangesLsb
Source§impl TryFrom<i32> for ChangesLsb
impl TryFrom<i32> for ChangesLsb
Source§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<ChangesLsb, DecodeError>
fn try_from(value: i32) -> Result<ChangesLsb, DecodeError>
Performs the conversion.
impl Copy for ChangesLsb
impl Eq for ChangesLsb
impl StructuralPartialEq for ChangesLsb
Auto Trait Implementations§
impl Freeze for ChangesLsb
impl RefUnwindSafe for ChangesLsb
impl Send for ChangesLsb
impl Sync for ChangesLsb
impl Unpin for ChangesLsb
impl UnwindSafe for ChangesLsb
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
Mutably borrows from an owned value. Read more